Dear List,

I've got a very strange problem and can't figure out what's going on. I'm
relatively new to Geoserver and to Java, so I don't really know what to do.

After a server start, with WFS requests like this :

http://127.0.0.1/geoserver/wfs?srsName=EPSG%3A4326&typename=
geonode%3Ane_110m_populated_places&outputFormat=json&
version=1.0.0&service=WFS&request=GetFeature

I get the following exception (full stack below):

java.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter
overrides final method visit.(IILjava/lang/String;Lja
va/lang/String;Ljava/lang/String;[Ljava/lang/String;)V

When I subsequently retry, I then get this error :

java.lang.NoClassDefFoundError: Could not initialize class
net.sf.cglib.proxy.Enhancer
Could not initialize class net.sf.cglib.proxy.Enhancer

The rest of geoserver seems to work well (for example WMS requests).

I use the following plugins (just unzipped in WEB-INF/lib):

geoserver-2.12.2-printing-plugin.zip
geoserver-2.12-SNAPSHOT-geofence-server-plugin.zip
geoserver-2.12-SNAPSHOT-authkey-plugin.zip

Under this environment :

Geoserver 2.12.2 (installed from binary archive)
openjdk:8-jre-alpine

<https://stackoverflow.com/questions/9366403/java-lang-verifyerror-class-net-sf-cglib-core-debuggingclasswriter>
Googling the exception
<https://stackoverflow.com/questions/9366403/java-lang-verifyerror-class-net-sf-cglib-core-debuggingclasswriter>indicates
it could be because of mismatching versions of cglib and ASM.

I saw both the geofence plugin and geoserver contain cglib-nodep-2.2.jar
which seems to be involved in the problem, but it's supposed to be the same
library. I tried unzipping the extensions in different order, thinking
there maybe some overwriting issue, but that didn't fix the problem.

Any idea what's going on ? Could this be a bug in the geofence server
plugin (no exception if I don't install geofence) ? Or in my brain ?

Thank you !!

Olivier


Here's the full stack trace :

java.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter
overrides final method
visit.(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
     at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
     at
org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510)
     at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441)
     at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
     at
net.sf.cglib.core.AbstractClassGenerator.<init>(AbstractClassGenerator.java:38)
     at net.sf.cglib.core.KeyFactory$Generator.<init>(KeyFactory.java:127)
     at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:112)
     at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
     at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
     at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
     at org.geoserver.wfs.GetFeature.run(GetFeature.java:628)
     at
org.geoserver.wfs.DefaultWebFeatureService.getFeature(DefaultWebFeatureService.java:122)
     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:333)
     at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
     at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
     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:213)
     at com.sun.proxy.$Proxy138.getFeature(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:857)
     at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:268)
     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:963)
     at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
     at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
     at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
     at
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
     at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
     at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
     at
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
     at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     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.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at
org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
     at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     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.GeoServerAnonymousAuthenticationFilter.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.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:84)
     at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at
org.geoserver.security.GeoServerAuthenticationKeyFilter.doFilter(GeoServerAuthenticationKeyFilter.java:104)
     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.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
     at
org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$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.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:88)
     at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at
org.geoserver.filters.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:89)
     at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
     at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at
org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
     at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at
org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
     at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
     at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
     at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
     at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
     at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
     at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
     at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
     at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
     at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
     at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
     at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
     at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
     at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
     at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
     at org.eclipse.jetty.server.Server.handle(Server.java:499)
     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
     at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
     at
org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
     at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
     at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
     at java.lang.Thread.run(Thread.java:748)
------------------------------------------------------------------------------
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to