[Geoserver-users] WPS call gs:feature GeoJSON

Hi,

I have been testing a WPS call built-in with a default WPS installation with GeoServer. I am attempting to call the execute function on gs:Feature.

  1. Using GeoServer 2.8.3

  2. I used http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/vector-formats.html to draw and generate GeoJson for a line string

  3. Opened the WPS Demo page in my local GeoServer and filled in the values [1]

  4. Received an error below [2]

  5. Used the WKT format produced from the OpenLayers demo page referenced in step 2 above
    LINESTRING(-115.69922089577 34.65234875679, -109.37109589577 38.16797375679, -107.96484589577 35.70703625679, -104.44922089577 36.76172375679, -104.62500214577 39.57422375679, -101.10937714577 40.98047375679, -98.47265839577 37.81641125679, -94.95703339577 38.87109875679, -95.13281464577 42.56250500679)

image001.png

image001.png

···
And it works producing GeoJSON
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"LineString","coordinates":[[-115.6992,34.6523],[-109.3711,38.168],[-107.9648,35.707],[-104.4492,36.7617],[-104.625,39.5742],[-101.1094,40.9805],[-98.4727,37.8164],[-94.957,38.8711],[-95.1328,42.5625]]},"properties":{},"id":"fid-c6e2313_157c547a1c6_-7fec"}]}
  1. Using the GeoJSON produced from the WKT input, I get the same error output

Has anyone seen this before and have a fix/workaround?

[1]

[2]

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

[Fatal Error] :2:1: Content is not allowed in prolog.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

17 Oct 08:18:14 ERROR [wps.executor] - Process execution failed

org.geoserver.wps.WPSException: Failed to retrieve value for input geometry

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:93)

at org.geoserver.wps.executor.LazyInputMap.get(LazyInputMap.java:50)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.buildProcessArguments(AnnotationDrivenProcessFactory.java:659)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:544)

at org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:51)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:130)

at org.geotools.geojson.geom.GeometryHandler.primitive(GeometryHandler.java:68)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.geotools.geojson.GeoJSONUtil.parse(GeoJSONUtil.java:236)

at org.geotools.geojson.geom.GeometryJSON.parse(GeometryJSON.java:655)

at org.geotools.geojson.geom.GeometryJSON.read(GeometryJSON.java:196)

at org.geoserver.wps.ppio.GeoJSONPPIO$Geometries.decode(GeoJSONPPIO.java:86)

at org.geoserver.wps.ppio.CDataPPIO.decode(CDataPPIO.java:25)

at org.geoserver.wps.executor.SimpleInputProvider.getValueInternal(SimpleInputProvider.java:84)

at org.geoserver.wps.executor.AbstractInputProvider.getValue(AbstractInputProvider.java:97)

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:86)

… 10 more

Caused by: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at java.lang.Class.getConstructor0(Class.java:3082)

at java.lang.Class.getConstructor(Class.java:1825)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:123)

… 21 more

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Direct (719) 452-7257

Description: Description: Description: cid:image001.png@anonymised.com

Hi Chris,

When I hit such errors, I usually end up grep’ing jars (or through the output of jar tvf foo.jar) for the class in question. For which jars have the class, I un-tar/jar them, and then use javap to see if the method listed in the stack trace is actually there or missing.

Is this a ‘vanilla’ GeoServer, or could you have some mismatched transitive dependencies?

Cheers,

Jim

···

On 10/17/2016 10:22 AM, Chris Snider wrote:

Hi,

I have been testing a WPS call built-in with a default WPS installation with GeoServer. I am attempting to call the execute function on gs:Feature.

  1. Using GeoServer 2.8.3

  2. I used http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/vector-formats.html to draw and generate GeoJson for a line string

  3. Opened the WPS Demo page in my local GeoServer and filled in the values [1]

  4. Received an error below [2]

  5. Used the WKT format produced from the OpenLayers demo page referenced in step 2 above
    LINESTRING(-115.69922089577 34.65234875679, -109.37109589577 38.16797375679, -107.96484589577 35.70703625679, -104.44922089577 36.76172375679, -104.62500214577 39.57422375679, -101.10937714577 40.98047375679, -98.47265839577 37.81641125679, -94.95703339577 38.87109875679, -95.13281464577 42.56250500679)

And it works producing GeoJSON
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"LineString","coordinates":[[-115.6992,34.6523],[-109.3711,38.168],[-107.9648,35.707],[-104.4492,36.7617],[-104.625,39.5742],[-101.1094,40.9805],[-98.4727,37.8164],[-94.957,38.8711],[-95.1328,42.5625]]},"properties":{},"id":"fid-c6e2313_157c547a1c6_-7fec"}]}
  1. Using the GeoJSON produced from the WKT input, I get the same error output

Has anyone seen this before and have a fix/workaround?

[1]

[2]

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

[Fatal Error] :2:1: Content is not allowed in prolog.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

17 Oct 08:18:14 ERROR [wps.executor] - Process execution failed

org.geoserver.wps.WPSException: Failed to retrieve value for input geometry

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:93)

at org.geoserver.wps.executor.LazyInputMap.get(LazyInputMap.java:50)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.buildProcessArguments(AnnotationDrivenProcessFactory.java:659)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:544)

at org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:51)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:130)

at org.geotools.geojson.geom.GeometryHandler.primitive(GeometryHandler.java:68)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.geotools.geojson.GeoJSONUtil.parse(GeoJSONUtil.java:236)

at org.geotools.geojson.geom.GeometryJSON.parse(GeometryJSON.java:655)

at org.geotools.geojson.geom.GeometryJSON.read(GeometryJSON.java:196)

at org.geoserver.wps.ppio.GeoJSONPPIO$Geometries.decode(GeoJSONPPIO.java:86)

at org.geoserver.wps.ppio.CDataPPIO.decode(CDataPPIO.java:25)

at org.geoserver.wps.executor.SimpleInputProvider.getValueInternal(SimpleInputProvider.java:84)

at org.geoserver.wps.executor.AbstractInputProvider.getValue(AbstractInputProvider.java:97)

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:86)

… 10 more

Caused by: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at java.lang.Class.getConstructor0(Class.java:3082)

at java.lang.Class.getConstructor(Class.java:1825)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:123)

… 21 more

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Direct (719) 452-7257

Description: Description: Description: cid:image001.png@anonymised.com

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! [http://sdm.link/slashdot](http://sdm.link/slashdot)
_______________________________________________
Geoserver-users mailing list
[Geoserver-users@lists.sourceforge.net](mailto:Geoserver-users@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)

This blog post (http://blog.ianturton.com/geotools/maven/dependencies/2015/04/15/FindingGeoToolsJars.html) might help with a quicker techinque than grep’ing jars.

Ian

···

On 17 October 2016 at 16:06, Jim Hughes <jnh5y@anonymised.com> wrote:

Hi Chris,

When I hit such errors, I usually end up grep’ing jars (or through the output of jar tvf foo.jar) for the class in question. For which jars have the class, I un-tar/jar them, and then use javap to see if the method listed in the stack trace is actually there or missing.

Is this a ‘vanilla’ GeoServer, or could you have some mismatched transitive dependencies?

Cheers,

Jim

On 10/17/2016 10:22 AM, Chris Snider wrote:

Hi,

I have been testing a WPS call built-in with a default WPS installation with GeoServer. I am attempting to call the execute function on gs:Feature.

  1. Using GeoServer 2.8.3

  2. I used http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/vector-formats.html to draw and generate GeoJson for a line string

  3. Opened the WPS Demo page in my local GeoServer and filled in the values [1]

  4. Received an error below [2]

  5. Used the WKT format produced from the OpenLayers demo page referenced in step 2 above
    LINESTRING(-115.69922089577 34.65234875679, -109.37109589577 38.16797375679, -107.96484589577 35.70703625679, -104.44922089577 36.76172375679, -104.62500214577 39.57422375679, -101.10937714577 40.98047375679, -98.47265839577 37.81641125679, -94.95703339577 38.87109875679, -95.13281464577 42.56250500679)

And it works producing GeoJSON
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"LineString","coordinates":[[-115.6992,34.6523],[-109.3711,38.168],[-107.9648,35.707],[-104.4492,36.7617],[-104.625,39.5742],[-101.1094,40.9805],[-98.4727,37.8164],[-94.957,38.8711],[-95.1328,42.5625]]},"properties":{},"id":"fid-c6e2313_157c547a1c6_-7fec"}]}
  1. Using the GeoJSON produced from the WKT input, I get the same error output

Has anyone seen this before and have a fix/workaround?

[1]

[2]

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

[Fatal Error] :2:1: Content is not allowed in prolog.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

17 Oct 08:18:14 ERROR [wps.executor] - Process execution failed

org.geoserver.wps.WPSException: Failed to retrieve value for input geometry

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:93)

at org.geoserver.wps.executor.LazyInputMap.get(LazyInputMap.java:50)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.buildProcessArguments(AnnotationDrivenProcessFactory.java:659)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:544)

at org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:51)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:130)

at org.geotools.geojson.geom.GeometryHandler.primitive(GeometryHandler.java:68)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.geotools.geojson.GeoJSONUtil.parse(GeoJSONUtil.java:236)

at org.geotools.geojson.geom.GeometryJSON.parse(GeometryJSON.java:655)

at org.geotools.geojson.geom.GeometryJSON.read(GeometryJSON.java:196)

at org.geoserver.wps.ppio.GeoJSONPPIO$Geometries.decode(GeoJSONPPIO.java:86)

at org.geoserver.wps.ppio.CDataPPIO.decode(CDataPPIO.java:25)

at org.geoserver.wps.executor.SimpleInputProvider.getValueInternal(SimpleInputProvider.java:84)

at org.geoserver.wps.executor.AbstractInputProvider.getValue(AbstractInputProvider.java:97)

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:86)

… 10 more

Caused by: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at java.lang.Class.getConstructor0(Class.java:3082)

at java.lang.Class.getConstructor(Class.java:1825)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:123)

… 21 more

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Direct (719) 452-7257

Description: Description: Description: cid:image001.png@anonymised.com

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! [http://sdm.link/slashdot](http://sdm.link/slashdot)
_______________________________________________
Geoserver-users mailing list
[Geoserver-users@anonymised.com382...sourceforge.net](mailto:Geoserver-users@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)


Check out the vibrant tech community on one of the world’s most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


Geoserver-users mailing list
Geoserver-users@anonymised.com.382…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ian Turton

Hi Chris,
the error makes one think about classpath issues, but in this case it’s actually related to a mismatch of input.
The code is trying to parse a geometry, and you’re feeding it with a feature collection, the two are not the same thing.
The parser code using reflection to do some of its work is the cause of the weird error.

I believe the call might work if you just gave it a GeoJSON geometry instead, something like:

{"type":"LineString","coordinates":[[-115.6992,34.6523],[-109.3711,38.168],[-107.9648,35.707],[-104.4492,36.7617],[-104.625,39.5742],[-101.1094,40.9805],[-98.4727,37.8164],[-94.957,38.8711],[-95.1328,42.5625]]}



Cheers
Andrea

image001.png

image001.png

···

On Mon, Oct 17, 2016 at 4:22 PM, Chris Snider <chris.snider@anonymised.com> wrote:

Hi,

I have been testing a WPS call built-in with a default WPS installation with GeoServer. I am attempting to call the execute function on gs:Feature.

  1. Using GeoServer 2.8.3

  2. I used http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/vector-formats.html to draw and generate GeoJson for a line string

  3. Opened the WPS Demo page in my local GeoServer and filled in the values [1]

  4. Received an error below [2]

  5. Used the WKT format produced from the OpenLayers demo page referenced in step 2 above
    LINESTRING(-115.69922089577 34.65234875679, -109.37109589577 38.16797375679, -107.96484589577 35.70703625679, -104.44922089577 36.76172375679, -104.62500214577 39.57422375679, -101.10937714577 40.98047375679, -98.47265839577 37.81641125679, -94.95703339577 38.87109875679, -95.13281464577 42.56250500679)

And it works producing GeoJSON
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"LineString","coordinates":[[-115.6992,34.6523],[-109.3711,38.168],[-107.9648,35.707],[-104.4492,36.7617],[-104.625,39.5742],[-101.1094,40.9805],[-98.4727,37.8164],[-94.957,38.8711],[-95.1328,42.5625]]},"properties":{},"id":"fid-c6e2313_157c547a1c6_-7fec"}]}
  1. Using the GeoJSON produced from the WKT input, I get the same error output

Has anyone seen this before and have a fix/workaround?

[1]

[2]

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

[Fatal Error] :2:1: Content is not allowed in prolog.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

17 Oct 08:18:14 ERROR [wps.executor] - Process execution failed

org.geoserver.wps.WPSException: Failed to retrieve value for input geometry

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:93)

at org.geoserver.wps.executor.LazyInputMap.get(LazyInputMap.java:50)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.buildProcessArguments(AnnotationDrivenProcessFactory.java:659)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:544)

at org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:51)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:130)

at org.geotools.geojson.geom.GeometryHandler.primitive(GeometryHandler.java:68)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.geotools.geojson.GeoJSONUtil.parse(GeoJSONUtil.java:236)

at org.geotools.geojson.geom.GeometryJSON.parse(GeometryJSON.java:655)

at org.geotools.geojson.geom.GeometryJSON.read(GeometryJSON.java:196)

at org.geoserver.wps.ppio.GeoJSONPPIO$Geometries.decode(GeoJSONPPIO.java:86)

at org.geoserver.wps.ppio.CDataPPIO.decode(CDataPPIO.java:25)

at org.geoserver.wps.executor.SimpleInputProvider.getValueInternal(SimpleInputProvider.java:84)

at org.geoserver.wps.executor.AbstractInputProvider.getValue(AbstractInputProvider.java:97)

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:86)

… 10 more

Caused by: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at java.lang.Class.getConstructor0(Class.java:3082)

at java.lang.Class.getConstructor(Class.java:1825)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:123)

… 21 more

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Direct (719) 452-7257

Description: Description: Description: cid:image001.png@anonymised.com


Check out the vibrant tech community on one of the world’s most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


Geoserver-users mailing list
Geoserver-users@anonymised.com.382…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313

fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


Hi Andrea,

I suppose it helps that I read the entire description of the function:

“Converts a geometry into a feature collection. (WPS DescribeProcess)” (emphasis added)

I made a bad assumption the function could convert a complete GeoJSON object, among the other formats, and not just the geometry portion itself.

Thanks,

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Description: Description: Description: cid:image001.png@...5633...

image001.png

image001.png

···

Hi Chris,

the error makes one think about classpath issues, but in this case it’s actually related to a mismatch of input.

The code is trying to parse a geometry, and you’re feeding it with a feature collection, the two are not the same thing.

The parser code using reflection to do some of its work is the cause of the weird error.

I believe the call might work if you just gave it a GeoJSON geometry instead, something like:

{"type":"LineString","coordinates":[[-115.6992,34.6523],[-109.3711,38.168],[-107.9648,35.707],[-104.4492,36.7617],[-104.625,39.5742],[-101.1094,40.9805],[-98.4727,37.8164],[-94.957,38.8711],[-95.1328,42.5625]]}


Cheers
Andrea

On Mon, Oct 17, 2016 at 4:22 PM, Chris Snider <chris.snider@…3225…> wrote:

Hi,

I have been testing a WPS call built-in with a default WPS installation with GeoServer. I am attempting to call the execute function on gs:Feature.

  1. Using GeoServer 2.8.3

  2. I used http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/vector-formats.html to draw and generate GeoJson for a line string

  3. Opened the WPS Demo page in my local GeoServer and filled in the values [1]

  4. Received an error below [2]

  5. Used the WKT format produced from the OpenLayers demo page referenced in step 2 above
    LINESTRING(-115.69922089577 34.65234875679, -109.37109589577 38.16797375679, -107.96484589577 35.70703625679, -104.44922089577 36.76172375679, -104.62500214577 39.57422375679, -101.10937714577 40.98047375679, -98.47265839577 37.81641125679, -94.95703339577 38.87109875679, -95.13281464577 42.56250500679)

And it works producing GeoJSON
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"LineString","coordinates":[[-115.6992,34.6523],[-109.3711,38.168],[-107.9648,35.707],[-104.4492,36.7617],[-104.625,39.5742],[-101.1094,40.9805],[-98.4727,37.8164],[-94.957,38.8711],[-95.1328,42.5625]]},"properties":{},"id":"fid-c6e2313_157c547a1c6_-7fec"}]}
  1. Using the GeoJSON produced from the WKT input, I get the same error output

Has anyone seen this before and have a fix/workaround?

[1]

[2]

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

[Fatal Error] :2:1: Content is not allowed in prolog.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘PPIOFactory’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionProvider’, but ApplicationContext is unset.

Oct 17, 2016 8:18:14 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup ‘ExtensionFilter’, but ApplicationContext is unset.

17 Oct 08:18:14 ERROR [wps.executor] - Process execution failed

org.geoserver.wps.WPSException: Failed to retrieve value for input geometry

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:93)

at org.geoserver.wps.executor.LazyInputMap.get(LazyInputMap.java:50)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.buildProcessArguments(AnnotationDrivenProcessFactory.java:659)

at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:544)

at org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:51)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)

at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:130)

at org.geotools.geojson.geom.GeometryHandler.primitive(GeometryHandler.java:68)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.json.simple.parser.JSONParser.parse(Unknown Source)

at org.geotools.geojson.GeoJSONUtil.parse(GeoJSONUtil.java:236)

at org.geotools.geojson.geom.GeometryJSON.parse(GeometryJSON.java:655)

at org.geotools.geojson.geom.GeometryJSON.read(GeometryJSON.java:196)

at org.geoserver.wps.ppio.GeoJSONPPIO$Geometries.decode(GeoJSONPPIO.java:86)

at org.geoserver.wps.ppio.CDataPPIO.decode(CDataPPIO.java:25)

at org.geoserver.wps.executor.SimpleInputProvider.getValueInternal(SimpleInputProvider.java:84)

at org.geoserver.wps.executor.AbstractInputProvider.getValue(AbstractInputProvider.java:97)

at org.geoserver.wps.executor.LazyInputMap.parseInputs(LazyInputMap.java:86)

… 10 more

Caused by: java.lang.NoSuchMethodException: org.geotools.geojson.feature.FeatureCollectionHandler.(com.vividsolutions.jts.geom.GeometryFactory)

at java.lang.Class.getConstructor0(Class.java:3082)

at java.lang.Class.getConstructor(Class.java:1825)

at org.geotools.geojson.DelegatingHandler.createDelegate(DelegatingHandler.java:123)

… 21 more

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Direct (719) 452-7257

Description: Description: Description: cid:image001.png@...5633...


Check out the vibrant tech community on one of the world’s most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/it488V for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

http://www.geo-solutions.it

http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.