[GeoNode-users] Geonode 2.10 rc4 and problems with Geoserver hatch

Jorge Gustavo Rocha jgr at geomaster.pt
Thu Nov 8 02:42:18 PST 2018


Ciao Matteo,

The style is OK and it works well on my Geoserver.

I suspect that you need to install libbatik-java.

Try on the server:

sudo apt install libbatik-java

Some additional packages will be installed.

Report back if this is enough.

Good luck,

Jorge

Às 09:15 de 08/11/18, Matteo Conte escreveu:
> Hi all, 
>   I've installed Geoserver 2.14 (inside Geonode 2.10 rc4). When I try to 
> create a style with a polygon hatch I get an error on preview. This is my 
> style: 
> <?xml version="1.0" encoding="ISO-8859-1"?> 
> <StyledLayerDescriptor version="1.0.0" 
>     xsi:schemaLocation="http://www.opengis.net/sld
> StyledLayerDescriptor.xsd" 
>     xmlns="http://www.opengis.net/sld>     xmlns:ogc="http://www.opengis.net/ogc>     xmlns:xlink="http://www.w3.org/1999/xlink>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
>   <NamedLayer> 
>     <Name>Hatching fill</Name> 
>     <UserStyle> 
>       <Title>SLD Cook Book: Hatching fill</Title> 
>       <FeatureTypeStyle> 
>         <Rule> 
>           <PolygonSymbolizer> 
>             <Fill> 
>               <GraphicFill> 
>                 <Graphic> 
>                   <Mark> 
>                     <WellKnownName>shape://horline</WellKnownName>                     <Stroke> 
>                       <CssParameter name="stroke">#0000ff</CssParameter> 
>                       <CssParameter name="stroke-width">1</CssParameter> 
>                     </Stroke> 
>                   </Mark> 
>                   <Size>16</Size> 
>                 </Graphic> 
>               </GraphicFill> 
>             </Fill> 
>           </PolygonSymbolizer> 
>         </Rule> 
>       </FeatureTypeStyle> 
>     </UserStyle> 
>   </NamedLayer> 
> </StyledLayerDescriptor> 
>
> And this is the error: 
> org.apache.wicket.WicketRuntimeException: Method onRequest of interface 
> org.apache.wicket.behavior.IBehaviorListener targeted at 
> org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1 at 2223b377 on 
> component [GeoServerAjaxFormLink [Component id = preview]] threw an 
> exception at 
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268) 
> at 
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241) 
> at 
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248) 
> at 
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234) 
> at 
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895) 
> at 
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) 
> at 
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265) 
> at 
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222) 
> at 
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293) 
> at 
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261) 
> at 
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203) 
> at 
> org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159) 
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at 
> org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:157) 
> at 
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:174) 
> at 
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50) 
> at 
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) 
> at 
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) 
> at 
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) 
> at 
> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) 
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) at 
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) 
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at 
> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:26) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at 
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:69) 
> at 
> org.geoserver.flow.controller.IpBlacklistFilter.doFilter(IpBlacklistFilter.java:89) 
> at 
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66) 
> at org.geoserver.monitor.MonitorFilter.doFilter(MonitorFilter.java:83) at 
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66) 
> at 
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) 
> at 
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 
> at 
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66) 
> at
> org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:73) 
> at 
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66) 
> at 
> org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:41) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at 
> org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:37) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70) 
> at 
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) 
> at 
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91) 
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70) 
> at 
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91) 
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 
> at 
> org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:51) 
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70) 
> at 
> org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91) 
> at 
> org.geoserver.security.filter.GeoServerUserNamePasswordAuthenticationFilter.doFilter(GeoServerUserNamePasswordAuthenticationFilter.java:112) 
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70) 
> at 
> org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:158) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91) 
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 
> at 
> org.geoserver.security.oauth2.GeoServerOAuthAuthenticationFilter.doFilter(GeoServerOAuthAuthenticationFilter.java:176) 
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70) 
> at 
> org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) 
> at 
> org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:52) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91) 
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 
> at 
> org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214) 
> at 
> org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177) 
> at 
> org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:141) 
> at 
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347) 
> at 
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:90) at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42) at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at 
> org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:46) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at
> org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:42) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at 
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) 
> at 
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) 
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) 
> at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) 
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) 
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) 
> at 
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668) 
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) 
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) 
> at 
> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) 
> at 
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) 
> at 
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770) 
> at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415) 
> at 
> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
> at 
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 
> at java.lang.Thread.run(Thread.java:748) Caused by: 
> java.lang.reflect.InvocationTargetException at 
> sun.reflect.GeneratedMethodAccessor1496.invoke(Unknown Source) at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
> at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258) 
> ... 120 more Caused by: java.lang.NoClassDefFoundError: 
> org/apache/batik/anim/dom/SAXSVGDocumentFactory at 
> org.geotools.renderer.style.RenderableSVGCache.getRenderableSVG(RenderableSVGCache.java:92) 
> at 
> org.geotools.renderer.style.SVGMarkFactory.getShape(SVGMarkFactory.java:35) 
> at 
> org.geotools.renderer.style.SLDStyleFactory.getShape(SLDStyleFactory.java:1419) 
> at 
> org.geotools.renderer.style.SLDStyleFactory.getTexturePaint(SLDStyleFactory.java:1130) 
> at 
> org.geotools.renderer.style.SLDStyleFactory.getPaint(SLDStyleFactory.java:1087) 
> at 
> org.geotools.renderer.style.SLDStyleFactory.setPolygonStyleFill(SLDStyleFactory.java:427) 
> at 
> org.geotools.renderer.style.SLDStyleFactory.createPolygonStyle(SLDStyleFactory.java:383) 
> at 
> org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:337) 
> at 
> org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:295) 
> at 
> org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuilder.buildLegendGraphic(BufferedImageLegendGraphicBuilder.java:454) 
> at 
> org.geoserver.wms.web.data.StyleAdminPanel$7.onClick(StyleAdminPanel.java:409) 
> at 
> org.geoserver.web.wicket.GeoServerAjaxFormLink.onSubmit(GeoServerAjaxFormLink.java:45) 
> at 
> org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:111) 
> at 
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$AjaxFormSubmitter.onSubmit(AjaxFormSubmitBehavior.java:215) 
> at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:787) at 
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:171) 
> at 
> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:155) 
> at 
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:601) 
> ... 124 more 
>
> Can you help me? 
> Kind regards 
> Matteo 
>
> //
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181108/a27a591a/attachment-0001.html>


More information about the geonode-users mailing list