[Geoserver-users] "No legend passed" error?

Hi List,
Today I’ve been just panning around, zooming and querying (WMS getFeatureInfo) my small project. A couple of times now I’ve had the application fail to successfully retrieve a layer after I’ve added. There are only about 5 WMS and one WMS-C layers I’m triggering in the project, and they all work just fine most of the time, but oddly today I’ve had it fail on two different WMS layers when they’ve been added, albeit at different times. Layers that have otherwise always been just fine.

In the GeoServer logs I have this:

2013-03-14 10:55:12,677 INFO [org.geoserver.wms] -
Request: getServiceInfo
2013-03-14 10:55:12,677 DEBUG [org.geoserver.wms.legendgraphic] - looking for styles
2013-03-14 10:55:12,677 ERROR [org.geoserver.ows] -
java.lang.IllegalArgumentException: no legend passed
at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuilder.buildLegendGraphic(BufferedImageLegendGraphicBuilder.java:372)
at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat.produceLegendGraphic(PNGLegendOutputFormat.java:40)
at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat.produceLegendGraphic(PNGLegendOutputFormat.java:21)
at org.geoserver.wms.GetLegendGraphic.run(GetLegendGraphic.java:48)
at org.geoserver.wms.DefaultWebMapService.getLegendGraphic(DefaultWebMapService.java:385)
at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
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 $Proxy23.getLegendGraphic(Unknown Source)
at sun.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:774)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)

[snip]

The request.log contains this:

“GET /geoserver/wms?version=1.3.0&TRANSPARENT=TRUE&SERVICE=WMS&REQUEST=GetLegendGraphic&EXCEPTIONS =application%2Fvnd.ogc.se_xml&LAYER=Test_DB%3AEA_RIVER_NETWORK_WSHIRE&FORMAT=image%2Fpng&SCALE=299999.9999054243 HTTP/1.1” 200 259

Does anyone know what does this means or what might be inducing it? It doesn’t seem to be easily replicable (I can’t get it to happen again) and I don’t have enough information to know if it is a bug let alone to create a decent bug report.

Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.