[Geoserver-devel] [jira] (GEOS-6401) Regression for WPS testInlineGeoJSON

Jody Garnett created an issue

GeoServer / BugGEOS-6401

Regression for WPS testInlineGeoJSON

Issue Type:

BugBug

Assignee:

Andrea Aime

Components:

WPS

Created:

16/Mar/14 7:38 AM

Priority:

MajorMajor

Reporter:

Jody Garnett

Okay this seems to be a straight up regression due to FeatureJSON changing in GeoTools.

junit.framework.ComparisonFailure: expected:<application/[json]> but was:<application/[xml]>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.Assert.assertEquals(Assert.java:107)
	at org.geoserver.wps.ExecuteTest.testInlineGeoJSON(ExecuteTest.java:489)

The xml being of course an service exception:

org.geoserver.wps.WPSException: An error occurred while encoding the results of the process
	at org.geoserver.wps.response.ExecuteProcessResponse.writeComplex(ExecuteProcessResponse.java:210)
..
Caused by: java.lang.NullPointerException
	at org.geotools.referencing.CRS.lookupIdentifier(CRS.java:1029)
	at org.geotools.geojson.feature.FeatureJSON.createCRS(FeatureJSON.java:445)
	at org.geotools.geojson.feature.FeatureJSON.writeFeatureCollection(FeatureJSON.java:303)
	at org.geotools.geojson.feature.FeatureJSON.writeFeatureCollection(FeatureJSON.java:337)
	at org.geoserver.wps.ppio.GeoJSONPPIO.encode(GeoJSONPPIO.java:32)

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo