I'm fairly sure that class [B is a byte array, can you add the featuretype
info?
Ian
On 25 April 2018 at 19:16, Martin Davis <[email protected]> wrote:
> We are seeing an error when issuing GetLegendGraphic against an Oracle
> view containing POINT geometries.
>
> The error trace is below.
>
> The styling is straightforward - uses a PNG as the icon for the point.
> The layer displays the point feature icons correctly - it's just the legend
> that doesn't work. SLD is attached.
>
> Is this a known issue with Oracle? (Is this possibly an issue with trying
> to synthesize a layer feature in order to render the legend graphic?)
>
> Any idea why or what "class [B" refers to?
> Is there a workaround?
>
> GeoServer version 2.9.2 - yes I know this is old, but perhaps someone
> knows if this is an issue that has been fixed in a newer release?
>
>
> 2018-04-25 11:07:41,463 DEBUG
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Matched Path: /wms, QueryString: SERVICE=WMS&VERSION=1.1.1&
> REQUEST=getlegendgraphic&FORMAT=image/png&layer=CAMP_COMPLEX_POINT_SVW
> with /**
> 2018-04-25 11:07:41,463 TRACE [ows.OWSHandlerMapping] - No handler mapping
> found for [/wms]
> 2018-04-25 11:07:41,463 TRACE [ows.OWSHandlerMapping] - No handler mapping
> found for [/wms]
> 2018-04-25 11:07:41,463 TRACE [ows.OWSHandlerMapping] - No handler mapping
> found for [/wms]
> 2018-04-25 11:07:41,463 TRACE [ows.OWSHandlerMapping] - No handler mapping
> found for [/wms]
> 2018-04-25 11:07:41,463 TRACE [ows.OWSHandlerMapping] - No handler mapping
> found for [/wms]
> 2018-04-25 11:07:41,463 DEBUG [ows.OWSHandlerMapping] - Mapping [/wms] to
> HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@6cb1726a]
> and 1 interceptor
> 2018-04-25 11:07:41,463 INFO [geoserver.wms] -
> Request: getServiceInfo
> 2018-04-25 11:07:41,463 TRACE [sqlserver.jtds] - No JTDS jar on classpath
> 2018-04-25 11:07:41,463 DEBUG [geotools.util] - CRSConverterFactory can be
> applied from Strings to CRS only.
> 2018-04-25 11:07:41,463 DEBUG [sqlserver.jtds] - Failed to find JTDS jar
> 2018-04-25 11:07:41,463 DEBUG [geotools.util] -
> InterpolationConverterFactory can be applied from Strings to Interpolation
> only.
> 2018-04-25 11:07:41,463 DEBUG [wms.legendgraphic] - looking for styles
> 2018-04-25 11:07:41,463 ERROR [geoserver.ows] -
> java.lang.IllegalArgumentException: class [B is not supported by this
> method
> at org.geotools.data.DataUtilities.defaultValue(DataUtilities.java:1016)
> at org.geotools.feature.simple.SimpleFeatureBuilder.convert(
> SimpleFeatureBuilder.java:323)
> at org.geotools.feature.simple.SimpleFeatureBuilder.set(
> SimpleFeatureBuilder.java:310)
> at org.geotools.feature.simple.SimpleFeatureBuilder.add(
> SimpleFeatureBuilder.java:233)
> at org.geotools.feature.simple.SimpleFeatureBuilder.template(
> SimpleFeatureBuilder.java:482)
> at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuil
> der.createSampleFeature(BufferedImageLegendGraphicBuilder.java:1020)
> at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuil
> der.createSampleFeature(BufferedImageLegendGraphicBuilder.java:942)
> at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuil
> der.getSampleFeatureForRule(BufferedImageLegendGraphicBuilder.java:569)
> at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuil
> der.calcSymbolScale(BufferedImageLegendGraphicBuilder.java:488)
> at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuil
> der.buildLegendGraphic(BufferedImageLegendGraphicBuilder.java:356)
> at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat.
> produceLegendGraphic(PNGLegendOutputFormat.java:41)
> at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat.
> produceLegendGraphic(PNGLegendOutputFormat.java:22)
> at org.geoserver.wms.GetLegendGraphic.run(GetLegendGraphic.java:49)
> at org.geoserver.wms.DefaultWebMapService.getLegendGraphic(
> DefaultWebMapService.java:349)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection
> (AopUtils.java:302)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> invokeJoinpoint(ReflectiveMethodInvocation.java:190)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:157)
> at org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(
> WebMapServiceKmlInterceptor.java:34)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:179)
> at org.geoserver.ows.util.RequestObjectLogger.invoke(
> RequestObjectLogger.java:55)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:179)
> at org.springframework.aop.framework.JdkDynamicAopProxy.
> invoke(JdkDynamicAopProxy.java:208)
> at com.sun.proxy.$Proxy63.getLegendGraphic(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:840)
> at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:268)
> at org.springframework.web.servlet.mvc.AbstractController.handleRequest(
> AbstractController.java:147)
> at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter
> .handle(SimpleControllerHandlerAdapter.java:50)
> at org.springframework.web.servlet.DispatcherServlet.
> doDispatch(DispatcherServlet.java:959)
> at org.springframework.web.servlet.DispatcherServlet.
> doService(DispatcherServlet.java:893)
> at org.springframework.web.servlet.FrameworkServlet.processRequest(
> FrameworkServlet.java:968)
> at org.springframework.web.servlet.FrameworkServlet.
> doGet(FrameworkServlet.java:859)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
> at org.springframework.web.servlet.FrameworkServlet.
> service(FrameworkServlet.java:844)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:303)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:209)
> at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:244)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(
> ThreadLocalsCleanupFilter.java:28)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(
> SpringDelegatingFilter.java:75)
> at org.geoserver.wms.animate.AnimatorFilter.doFilter(
> AnimatorFilter.java:71)
> at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(
> SpringDelegatingFilter.java:71)
> at org.geoserver.filters.SpringDelegatingFilter.doFilter(
> SpringDelegatingFilter.java:46)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.geoserver.platform.AdvancedDispatchFilter.doFilter(
> AdvancedDispatchFilter.java:50)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:316)
> at org.geoserver.security.filter.GeoServerCompositeFilter$
> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
> at org.geoserver.security.filter.GeoServerCompositeFilter$
> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(
> GeoServerCompositeFilter.java:92)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> at org.geoserver.security.filter.GeoServerCompositeFilter$
> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
> at org.springframework.security.web.access.ExceptionTranslationFilter.
> doFilter(ExceptionTranslationFilter.java:114)
> at org.geoserver.security.filter.GeoServerCompositeFilter$
> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(
> GeoServerCompositeFilter.java:92)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> at org.geoserver.security.filter.GeoServerAnonymousAuthenticati
> onFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> at org.geoserver.security.filter.GeoServerCompositeFilter$
> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
> at org.springframework.security.web.authentication.www.
> BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.
> java:158)
> at org.springframework.web.filter.OncePerRequestFilter.
> doFilter(OncePerRequestFilter.java:107)
> at org.geoserver.security.filter.GeoServerCompositeFilter$
> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(
> GeoServerCompositeFilter.java:92)
> at org.geoserver.security.filter.GeoServerBasicAuthenticationFi
> lter.doFilter(GeoServerBasicAuthenticationFilter.java:84)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> at org.geoserver.security.filter.GeoServerCompositeFilter$
> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
> at org.springframework.security.web.context.SecurityContextPersistenceFilt
> er.doFilter(SecurityContextPersistenceFilter.java:91)
> at org.geoserver.security.filter.GeoServerSecurityContextPersis
> tenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
> at org.geoserver.security.filter.GeoServerCompositeFilter$
> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(
> GeoServerCompositeFilter.java:92)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> at org.springframework.security.web.FilterChainProxy.doFilterInternal(
> FilterChainProxy.java:213)
> at org.springframework.security.web.FilterChainProxy.doFilter(
> FilterChainProxy.java:176)
> at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(
> GeoServerSecurityFilterChainProxy.java:152)
> at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(
> DelegatingFilterProxy.java:346)
> at org.springframework.web.filter.DelegatingFilterProxy.doFilter(
> DelegatingFilterProxy.java:262)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:87)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.geoserver.filters.SessionDebugFilter.doFilter(
> SessionDebugFilter.java:48)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.springframework.web.filter.CharacterEncodingFilter.
> doFilterInternal(CharacterEncodingFilter.java:121)
> at org.springframework.web.filter.OncePerRequestFilter.
> doFilter(OncePerRequestFilter.java:107)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:218)
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:122)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:614)
> at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:169)
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:103)
> at org.apache.catalina.valves.AccessLogValve.invoke(
> AccessLogValve.java:956)
> at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:116)
> at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:442)
> at org.apache.coyote.http11.AbstractHttp11Processor.process(
> AbstractHttp11Processor.java:1083)
> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
> process(AbstractProtocol.java:640)
> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.
> run(JIoEndpoint.java:318)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
> TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/comm/
> userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-
> requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Ian Turton
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users