On Thu, Oct 7, 2010 at 10:49 AM, Esben Taudorf <[email protected]> wrote:
> Hi everybody
>
>
>
> I have a layer in GeoServer which is stored in a PostGIS database. The
> geometrytype of the layer is GEOMETRY and now the table only contains
> LINESTRING. But I what to add points and polygons to the table, this is the
> reason I choose GEOMETRY as the geometrytype. My layer is working fine in
> the Layer Preview...
>
>
>
> But when I do a GetLegendGraphic request I get the following
> ServiceException:
>
>  java.lang.IllegalArgumentException: class
> com.vividsolutions.jts.geom.Geometry is not supported by this method class
> com.vividsolutions.jts.geom.Geometry is not supported by this method

This unfortunately does not tell us much. Please enable "verbose
exception reporting" in
the server configuration and then send the resulting service exception
(which should contain
a stack trace with all the references into the code that broke, files
and line numbers)

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-----------------------------------------------------

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to