[Geoserver-devel] [jira] (GEOS-6292) Cascading WMS: "java.lang.NullPointerException: Unable to transform referenced envelope, crs has not yet been provided"

Jens Nachtigall created BugGEOS-6292
Cascading WMS: “java.lang.NullPointerException: Unable to transform referenced envelope, crs has not yet been provided”

Issue Type:

BugBug

Affects Versions:

2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.3.0

Assignee:

Andrea Aime

Created:

17/Jan/14 6:51 AM

Description:

This bugs only slightly relates to GEOS-5777. I sent a GEOSERVER_DATA_DIR zipfile to Andrea Aime on 2nd Dec 2012 (sorry, I cannot post the configurations here as the Cascaded WMS is password protected and I am not allowed to share this password publically here).

With the configurations, the bug should be easily reproducable. Just go to geoserver/gwc/rest/seed/lpt:Gebaeude or geoserver/gwc/rest/seed/lpt:Bodenschaetzung and reseed for layers 8 or 9, then there are tons of NullPointerExceptions in the logs. The NullPointerException seems to occur for every tile to be seeded:

08 Jan 12:30:24 WARN [org.geoserver.wms.map] - Failed to compare data and request envelopes, proceeding with rendering anyways
java.lang.NullPointerException: Unable to transform referenced envelope, crs has not yet been provided.
         at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:658)
         at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:624)
         at org.geoserver.wms.map.RenderedImageMapOutputFormat.readBestCoverage(RenderedImageMapOutputFormat.java:1197)
         at org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:851)
         at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:329)
         at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:251)
         at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:123)
         at org.geoserver.wms.GetMap.executeInternal(GetMap.java:521)
         at org.geoserver.wms.GetMap.run(GetMap.java:253)
         at org.geoserver.wms.GetMap.run(GetMap.java:124)
         at org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:328)
         at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:606)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
         at org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:34)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
         at org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:61)
         at org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:35)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
         at org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:73)
         at org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:54)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
         at org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:54)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
         at com.sun.proxy.$Proxy60.getMap(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:606)
         at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:774)
         at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
         at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
         at org.geoserver.gwc.GWC.dispatchOwsRequest(GWC.java:1138)
         at org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:567)
         at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:512)
         at org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:706)
         at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:136)
         at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76)
         at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36)
         at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at java.lang.Thread.run(Thread.java:724)

Environment:

Latest CentOS with Java7 and Tomcat7

Project:

GeoServer

Priority:

MinorMinor

Reporter:

Jens Nachtigall

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