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.
-
Using GeoServer 2.8.3
-
I used http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/vector-formats.html to draw and generate GeoJson for a line string
-
Opened the WPS Demo page in my local GeoServer and filled in the values [1]
-
Received an error below [2]
-
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"}]}
- 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