0 Replies Latest reply on Dec 6, 2007 7:03 PM by Scott Stark

    Unclean class loader on shutdown

    Scott Stark Master

      I'm seeing the following error during shutdown of the server:

      15:27:45,023 INFO [TomcatDeployment] undeploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
      15:27:45,025 INFO [TomcatDeployment] undeploy, ctxPath=/, vfsUrl=ROOT.war
      15:27:45,178 ERROR [Http11Protocol] Error reading request, ignored
      java.lang.NullPointerException
       at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:549)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:225)
       at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClassFromClassLoader(UnifiedLoaderRepository3.java:317)
       at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:284)
       at org.jboss.mx.loading.UnifiedClassLoader.loadClassImpl(UnifiedClassLoader.java:290)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:441)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at org.apache.coyote.http11.Http11Processor.initializeFilters(Http11Processor.java:1621)
       at org.apache.coyote.http11.Http11Processor.<init>(Http11Processor.java:94)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.createProcessor(Http11Protocol.java:637)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:587)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:595)
      Exception in thread "http-127.0.0.1-8080-1" java.lang.NullPointerException
       at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:180)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:550)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:567)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:631)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:595)
      15:27:45,213 ERROR [AjpProtocol] Error reading request, ignored
      java.lang.NoClassDefFoundError: org/apache/coyote/ajp/AjpProcessor$SocketInputBuffer
       at org.apache.coyote.ajp.AjpProcessor.<init>(AjpProcessor.java:82)
       at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.createProcessor(AjpProtocol.java:417)
       at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:377)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:595)
      Exception in thread "ajp-127.0.0.1-8009-1" java.lang.NullPointerException
       at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:180)
       at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler$1.offer(AjpProtocol.java:340)
       at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler$1.offer(AjpProtocol.java:357)
       at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:411)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:595)
      15:27:45,276 INFO [ServerImpl] Shutdown complete
      


      The tomcat connector lifecycle is out of synch with the server class loader, which has already been unregistered with he deployment repository.

      Related to other posts about updating tomcat integration in jbossas5, we need to have proper dependencies of all the beans making up the web container so this type of lifecycle problem is handled automatically.