[Geoserver-devel] [jira] (GEOS-5587) Exception in WMS GetLegendGraphic WMS on a layer with a geometry type of GEOMETRY

Mauro Bartolomeoli created BugGEOS-5587
Exception in WMS GetLegendGraphic WMS on a layer with a geometry type of GEOMETRY

Issue Type:

BugBug

Affects Versions:

2.2.x, 2.3-beta1

Assignee:

Andrea Aime

Components:

WMS

Created:

21/Jan/13 5:03 AM

Description:

An exception was thrown using GetLegendGraphic WMS operation on a layer with a geometry type of GEOMETRY:

java.lang.IllegalArgumentException: class com.vividsolutions.jts.geom.Geometry is not supported by this method
at org.geotools.data.DataUtilities.defaultValue(DataUtilities.java:997)
at org.geotools.feature.simple.SimpleFeatureBuilder.convert(SimpleFeatureBuilder.java:316)
at org.geotools.feature.simple.SimpleFeatureBuilder.set(SimpleFeatureBuilder.java:297)
at org.geotools.feature.simple.SimpleFeatureBuilder.add(SimpleFeatureBuilder.java:220)
at org.geotools.feature.simple.SimpleFeatureBuilder.template(SimpleFeatureBuilder.java:502)
at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuilder.createSampleFeature(BufferedImageLegendGraphicBuilder.java:534

Fix Versions:

2.3-beta1

Project:

GeoServer

Priority:

MinorMinor

Reporter:

Mauro Bartolomeoli

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

Mauro Bartolomeoli reopened BugGEOS-5587
Exception in WMS GetLegendGraphic WMS on a layer with a geometry type of GEOMETRY

Change By:

Mauro Bartolomeoli (25/Jan/13 7:18 AM)

Assignee:

Andrea Aime Mauro Bartolomeoli

Status:

Closed Reopened

Resolution:

Fixed

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