[Geoserver-users] errors in WMS

Hi

I have geoserver (app-schema) 2.1snapshot, but only using simple features for about 9000 points in postgis [EPSG:28355] and am trying to render it via WMS as an overlay in googleMaps.

On more than one occasion I get a tile returning blank (while other tiles render) and this exception

19 May 13:16:34 ERROR [geotools.rendering] -

java.lang.NullPointerException

at org.geotools.geometry.jts.LiteShape2.(LiteShape2.java:157)

at org.geotools.renderer.lite.StreamingRenderer$RenderableFeature.getTransformedShape(StreamingRenderer.java:2621)

at org.geotools.renderer.lite.StreamingRenderer$RenderableFeature.getShape(StreamingRenderer.java:2567)

at org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:2055)

at org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1988)

at org.geotools.renderer.lite.StreamingRenderer.drawOptimized(StreamingRenderer.java:1882)

at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1795)

at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:700)

at org.vfny.geoserver.wms.responses.DefaultRasterMapProducer.produceMap(DefaultRasterMapProducer.java:468)

at org.vfny.geoserver.wms.responses.GetMapResponse.execute(GetMapResponse.java:495)

at org.geoserver.ows.adapters.ResponseAdapter.getMimeType(ResponseAdapter.java:49)

at org.geoserver.ows.Dispatcher.response(Dispatcher.java:761)

Followed by

19 May 13:16:34 ERROR [geoserver.ows] -

org.vfny.geoserver.wms.WmsException: org.vfny.geoserver.wms.WmsException: Rendering process failed

at org.vfny.geoserver.wms.responses.GetMapResponse.execute(GetMapResponse.java:516)

at org.geoserver.ows.adapters.ResponseAdapter.getMimeType(ResponseAdapter.java:49)

at org.geoserver.ows.Dispatcher.response(Dispatcher.java:761)

at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:233)

At different zoom levels – it acts differently.

I will be happy to proved the URL for the WMS (just not on the public mailing list).

I also seem to be getting exceptions on GetFeatureInfo (which I don’t understand):

19 May 13:29:22 ERROR [geoserver.ows] -

java.lang.ClassCastException: org.geoserver.security.decorators.ReadOnlyFeatureCollection cannot be cast to org.geotools.data.simple.SimpleFeatureCollection

at org.vfny.geoserver.wms.responses.featureInfo.HTMLTableFeatureInfoResponse.writeTo(HTMLTableFeatureInfoResponse.java:99)

at org.vfny.geoserver.wms.responses.GetFeatureInfoResponse.writeTo(GetFeatureInfoResponse.java:184)

at org.geoserver.ows.adapters.ResponseAdapter.write(ResponseAdapter.java:61)

at org.geoserver.ows.Dispatcher.response(Dispatcher.java:775)

at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:233)

at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

I have not set any ‘data access rules’ i can see in the gui and don’t know why I am getting this error.

If you have any suggestions – please let me know

Terry,

do you have any null geometries? I had a peek in the code and it looks like a geometry is null; this could be because it is being broken by a transformation, so it might not be caused by null in your input date.

Kind regards,
Ben.

On 19/05/10 13:43, Terry.Rankine@anonymised.com wrote:

Hi
I have geoserver (app-schema) 2.1snapshot, but only using simple features for about 9000 points in postgis [EPSG:28355] and am trying to render it via WMS as an overlay in googleMaps.
On more than one occasion I get a tile returning blank (while other tiles render) and this exception
19 May 13:16:34 ERROR [geotools.rendering] -
java.lang.NullPointerException
         at org.geotools.geometry.jts.LiteShape2.<init>(LiteShape2.java:157)
         at org.geotools.renderer.lite.StreamingRenderer$RenderableFeature.getTransformedShape(StreamingRenderer.java:2621)

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

Ben Caradoc-Davies ha scritto:

Terry,

do you have any null geometries? I had a peek in the code and it looks like a geometry is null; this could be because it is being broken by a transformation, so it might not be caused by null in your input date.

I've committed a fix for a similar issue a couple of days ago.
How old is your build?

If it's still reproducable I would like to have the data set and the
request that makes it fail for further investigation

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

I can try a rebuild - it's about 3-4 weeks old now?

As for the null-geometries, the DB has a constraint on no-null geoms, and I had a look at the dataset, and its complete.

What order did you want to proceed?

Terry

-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Wednesday, 19 May 2010 2:33 PM
To: Caradoc-Davies, Ben (CESRE, Kensington)
Cc: Rankine, Terry (CESRE, Kensington); geoserver-users@anonymised.comet
Subject: Re: [Geoserver-users] [ExternalEmail] errors in WMS

Ben Caradoc-Davies ha scritto:

Terry,

do you have any null geometries? I had a peek in the code and it looks
like a geometry is null; this could be because it is being broken by a
transformation, so it might not be caused by null in your input date.

I've committed a fix for a similar issue a couple of days ago.
How old is your build?

If it's still reproducable I would like to have the data set and the
request that makes it fail for further investigation

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Terry.Rankine@anonymised.com ha scritto:

I can try a rebuild - it's about 3-4 weeks old now?

As for the null-geometries, the DB has a constraint on no-null geoms, and I had a look at the dataset, and its complete.

What order did you want to proceed?

Check the latest nightly, if that does not fix it, package
the data, style and request :slight_smile:

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,

I want to set up a big dataset today for testing purposes (400.000+ features, road system of germany from osm data). If i finish soon enough i can look for null geometries and test a nightly build against it if there are none.

I had some mysterious NPEs 2-3 weeks ago and switched back to 2.0.1. I thought i messed up the code or the datastore myself back then and didn't report the problem.

If you are interested in the results (and a JDWP connection if it's reproduceable?) i can set you up. Otherwise i'll spare myself from setting up another GeoServer instance.

Regards,
Lennart

Am 19.05.2010 um 08:35 schrieb <Terry.Rankine@anonymised.com> <Terry.Rankine@anonymised.com367...>:

I can try a rebuild - it's about 3-4 weeks old now?

As for the null-geometries, the DB has a constraint on no-null geoms, and I had a look at the dataset, and its complete.

What order did you want to proceed?

Terry

-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Wednesday, 19 May 2010 2:33 PM
To: Caradoc-Davies, Ben (CESRE, Kensington)
Cc: Rankine, Terry (CESRE, Kensington); geoserver-users@anonymised.com.net
Subject: Re: [Geoserver-users] [ExternalEmail] errors in WMS

Ben Caradoc-Davies ha scritto:

Terry,

do you have any null geometries? I had a peek in the code and it looks
like a geometry is null; this could be because it is being broken by a
transformation, so it might not be caused by null in your input date.

I've committed a fix for a similar issue a couple of days ago.
How old is your build?

If it's still reproducable I would like to have the data set and the
request that makes it fail for further investigation

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------

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

Lennart Jütte ha scritto:

Hi,

I want to set up a big dataset today for testing purposes (400.000+
features, road system of germany from osm data). If i finish soon
enough i can look for null geometries and test a nightly build
against it if there are none.

I had some mysterious NPEs 2-3 weeks ago and switched back to 2.0.1.
I thought i messed up the code or the datastore myself back then and
didn't report the problem.

Were they NPE or exception related to array index access ones? The
latter have been fixed in nightly builds as well

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.