Hi All,

It seems that the classes which deal with the OGC functions within the SLD are 
not properly handling situations where there is no label to add.

There may be a record received from the query, but no label within that result. 
 Running performance tests (with about 350,000 samples, I receive hundreds of 
NPE errors in the GS logs)

2011-03-11 08:24:24,781 ERROR [renderer.label] - Error adding label to the 
label cache
java.lang.NullPointerException
                at 
org.geotools.filter.function.StaticGeometry.strToUpperCase(StaticGeometry.java:430)
                at 
org.geotools.filter.function.FilterFunction_strToUpperCase.evaluate(FilterFunction_strToUpperCase.java:49)
                at 
org.geotools.filter.expression.ExpressionAbstract.evaluate(ExpressionAbstract.java:63)
                at 
org.geotools.renderer.label.LabelCacheImpl.put(LabelCacheImpl.java:264)
                at 
org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:2252)
                at 
org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:2158)
                at 
org.geotools.renderer.lite.StreamingRenderer.drawOptimized(StreamingRenderer.java:2061)
                at 
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1931)
                at 
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:766)

Has anyone else come across this?

Thanks,
Steve

________________________________
DISCLAIMER:

This email may contain confidential information and is intended only for the 
use of the specific individual(s) to which it is addressed. If you are not the 
intended recipient of this email, you are hereby notified that any unauthorized 
use, dissemination or copying of this email or the information contained in it 
or attached to it is strictly prohibited. If you received this message in 
error, please immediately notify the sender at Infotech or 
mail.ad...@infotech-enterprises.com and delete the original message.
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to