NPE in SimpleFeatureTypeBuilder when using ShapeFileRenderer and "complex" Style
--------------------------------------------------------------------------------
Key: GEOT-2728
URL: http://jira.codehaus.org/browse/GEOT-2728
Project: GeoTools
Issue Type: Bug
Components: core render, core styling, ext shapefilerender
Affects Versions: 2.6-M2
Reporter: Stefan Alfons Krüger
Fix For: 2.6-RC1
Attachments: NPEwithShapeAndSLDAndShapefileRenderer.tgz
The attached JUnit test shows that only the combination of a slighter more
complex SLD and the ShapefileRenderer fail with
23.09.2009 15:23:46 org.geotools.renderer.shape.ShapefileRenderer processStylers
WARNUNG: Could not prep style for rendering
java.lang.NullPointerException
at
org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType(SimpleFeatureTypeBuilder.java:819)
at
org.geotools.renderer.shape.ShapefileRenderer.createFeatureType(ShapefileRenderer.java:810)
at
org.geotools.renderer.shape.ShapefileRenderer.processStylers(ShapefileRenderer.java:308)
at
org.geotools.renderer.shape.ShapefileRenderer.paint(ShapefileRenderer.java:1427)
at
org.geotools.renderer.shape.ShapefileRenderer.paint(ShapefileRenderer.java:270)
at gtmig.org.geotools.swing.JMapPane.paintComponent(JMapPane.java:385)
JUnit test does:
example ShapeFile + default Style + StreamingRenderer = works
example ShapeFile + complex Style + StreamingRenderer = works
example ShapeFile + default Style + ShapefileRenderer = works
example ShapeFile + complex Style + ShapefileRenderer = FAILS with NPE above.
This NPE occurs for about 20% of all Shapefiles i have in one atlas projects
/all use complex SLDs). And i really don't want to miss the performance of the
ShapefileRenderer. So any help is very much appreciated!!!
The attachment contains the demo shapefile and the JUnit test patch.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel