|
I tried to use the GetLegendGraphic function to get an image of one of my sld styles.
The style works, it is validated and it displays features (lines) as it is supposed to do when using WMS.
This is the url of the request (generated using the Demo Requests tool):
http://localhost:8080/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=mylayer&STYLE=mystyle
This is the content of the answer:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://localhost/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1" >
<ServiceException>
java.lang.NullPointerException: request.getStyle()
request.getStyle()
</ServiceException>
</ServiceExceptionReport>
I attach the geoserver log and the sld.
Build Information Version 2.5-SNAPSHOT Git Revision be9561453b9208377cbdcfb3a0841140eb45e95 Build Date 25-Jun-2014 00:38 GeoTools Version 11-SNAPSHOT (rev c3ab16a384370cff7de5b0c60782901852ed4fbd) GeoWebCache Version 1.5-SNAPSHOT (rev 1.5.x/43e483712cf25e6ae4d5a271df6c5f30b65dc354)
|