[Geoserver-devel] [jira] (GEOS-6773) GetLegendGraphic

Massimo Conter created an issue

GeoServer / BugGEOS-6773

GetLegendGraphic

Issue Type:

BugBug

Affects Versions:

2.5

Assignee:

Andrea Aime

Attachments:

error.log, jira.sld

Created:

19/Nov/14 12:09 PM

Environment:

amazon redhat 6 instance

Priority:

MinorMinor

Reporter:

Massimo Conter

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)

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo