[Geoserver-devel] [jira] (GEOS-5196) JTS processes returning empty geometry collections fail due to NPE in coordinate dimension handling

Andrea Aime created BugGEOS-5196
JTS processes returning empty geometry collections fail due to NPE in coordinate dimension handling

Issue Type:

BugBug

Assignee:

Andrea Aime

Created:

29/Jun/12 5:54 AM

Description:

This is a regression due to the recent Z encoding support code, the stack trace is:

Caused by: java.lang.RuntimeException: Failed to get property: srsDimension
at org.geotools.xml.impl.GetPropertyExecutor.visit(GetPropertyExecutor.java:104)
at org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:215)
at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:181)
at org.geotools.xml.impl.BindingVisitorDispatch.walk(BindingVisitorDispatch.java:46)
at org.geotools.xml.impl.BindingVisitorDispatch.walk(BindingVisitorDispatch.java:31)
at org.geotools.xml.Encoder.encode(Encoder.java:861)
at org.geoserver.wps.ppio.GMLPPIO.encode(GMLPPIO.java:43)
at org.geoserver.wps.ppio.GMLPPIO$GML3$Geometry.encode(GMLPPIO.java:127)
at org.geoserver.wps.XMLEncoderDelegate.encode(XMLEncoderDelegate.java:30)
at org.geoserver.wps.response.ExecuteProcessResponse.writeComplex(ExecuteProcessResponse.java:201)
… 63 more
Caused by: java.lang.NullPointerException
at org.geotools.geometry.jts.coordinatesequence.CoordinateSequences.coordinateDimension(CoordinateSequences.java:175)
at org.geotools.geometry.jts.coordinatesequence.CoordinateSequences.coordinateDimension(CoordinateSequences.java:156)
at org.geotools.gml3.bindings.AbstractGeometryTypeBinding.getProperty(AbstractGeometryTypeBinding.java:124)
at org.geotools.xml.impl.GetPropertyExecutor.visit(GetPropertyExecutor.java:102)
… 72 more

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Andrea Aime

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)