NullPointerException happens if WMS casade layer is used inside LayerGroup
---------------------------------------------------------------------------
Key: GEOS-4273
URL: http://jira.codehaus.org/browse/GEOS-4273
Project: GeoServer
Issue Type: Bug
Components: WMS
Affects Versions: 2.1-beta3
Reporter: Ivan Grcic
Assignee: Andrea Aime
Priority: Minor
Attachments: wms_cascade_group.patch, wmsCascadeGroup.jpeg
Last days I gave a spin to the new WMSCascadeLayer feature, and it seems its working pretty nice when single layer is used. But what I wanted to do is combine different layers from several external WMS servers + locally configured server. Following error was thrown:
ERROR [geoserver.ows] -
java.lang.NullPointerException
at org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:318)
at org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:1)
at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1144)
at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:482)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:226)
I took a look at the error and I figured it out that in the case of LayerGroupInfo single layer wasnt handled the same way as it was in single LayerInfo request. More precisely style wasn't handled correctly if the layer in the group was instance of WMSLayerInfo
Initial patch attached as well as the resulting layergroup image request
(from two external wms sources - atlas.gc.ca & wms.jpl.nasa.gov - and locally configured one topp:states)
Regards,
Ivan
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira