If at all relevant, I have some other styles that use a centroid 
function that don't throw a NullPointerException.

Thanks,
Alyssa.

On 8/18/10 10:29 AM, alyssa wright wrote:
>  Hi,
>
> I am using the strToUpperCase function in my SLD.  My SLD is valid and 
> displays appropriately in OpenLayers and the Styler module.  However, 
> if I do a GetLegendGraphic request, I get a NullPointerException.  If 
> I remove the strToUpperCase function from my SLD, I am error free.
>
> Following are the log files and TextSymbolizer.  Can someone help me 
> decode what's going on?
>
> Thanks,
> Alyssa.
>
> 445160 [btpool0-0] ERROR org.geoserver.ows  -
> java.lang.NullPointerException
>     at 
> org.geotools.filter.function.StaticGeometry.strToUpperCase(StaticGeometry.java:442)
>     at 
> org.geotools.filter.function.FilterFunction_strToUpperCase.evaluate(FilterFunction_strToUpperCase.java:49)
>     at 
> org.geotools.renderer.style.SLDStyleFactory.evalToString(SLDStyleFactory.java:1371)
>     at 
> org.geotools.renderer.style.SLDStyleFactory.createTextStyle(SLDStyleFactory.java:633)
>     at 
> org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:338)
>     at 
> org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:291)
>     at 
> org.vfny.geoserver.wms.responses.DefaultRasterLegendProducer.produceLegendGraphic(DefaultRasterLegendProducer.java:224)
>     at 
> org.vfny.geoserver.wms.responses.GetLegendGraphicResponse.execute(GetLegendGraphicResponse.java:81)
>     at 
> org.geoserver.ows.adapters.ResponseAdapter.getMimeType(ResponseAdapter.java:48)
>     at org.geoserver.ows.Dispatcher.response(Dispatcher.java:712)
>     at 
> org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:234)
>     at 
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
>     at 
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
>     at 
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
>     at 
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
>     at 
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
>     at 
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>     at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>     at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
>     at 
> org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
>     at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>     at 
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
>     at 
> org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
>     at 
> org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
>     at 
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
>     at 
> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
>     at 
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
>     at 
> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
>     at 
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
>     at 
> org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
>     at 
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
>     at 
> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
>     at 
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
>     at 
> org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
>     at 
> org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
>     at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>     at 
> org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
>     at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>     at 
> org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183)
>     at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>     at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
>     at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>     at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>     at 
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>     at 
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>     at 
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>     at 
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>     at 
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>     at 
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>     at 
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>     at org.mortbay.jetty.Server.handle(Server.java:324)
>     at 
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>     at 
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
>     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
>     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>     at 
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>     at 
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
>
> <TextSymbolizer>
> <Label>
> <ogc:Function name="strToUpperCase">
> <ogc:PropertyName>name</ogc:PropertyName>
> </ogc:Function>
> </Label>
> <Font>
> <CssParameter name="font-family">SansSerif</CssParameter>
> <CssParameter name="font-size">12</CssParameter>
> <CssParameter name="font-style">normal</CssParameter>
> <CssParameter name="font-weight">bold</CssParameter>
> </Font>
> <LabelPlacement>
> <PointPlacement>
> <AnchorPoint>
> <AnchorPointX>
> <ogc:Literal>0.5</ogc:Literal>
> </AnchorPointX>
> <AnchorPointY>
> <ogc:Literal>0.5</ogc:Literal>
> </AnchorPointY>
> </AnchorPoint>
> <Rotation>
> <ogc:Literal>0</ogc:Literal>
> </Rotation>
> </PointPlacement>
> </LabelPlacement>
> <Halo>
> <Radius>
> <ogc:Literal> 2 </ogc:Literal>
> </Radius>
> <Fill>
> <CssParameter name="fill">#ffffff</CssParameter>
> <CssParameter name="fill-opacity">0.5</CssParameter>
> </Fill>
> </Halo>
> <Fill>
> <CssParameter name="fill">#6e6e6e</CssParameter>
> </Fill>
> <VendorOption name="autoWrap">100</VendorOption>
> <VendorOption name="spaceAround">20</VendorOption>
> <VendorOption name="allowOverrun">true</VendorOption>
> </TextSymbolizer>
>
>
>


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to