1 Reply Latest reply on Jan 17, 2008 5:47 AM by Kabir Khan

    Shutdown ordering issues

    Scott Stark Master

      It looks like the jbossws.deployer is having issues with class loaders being destroyed too early during shutdown. Why would AbstractAspectManager.destroy be trying to deploy a bootstrapXml?

      [error] No classloader associated with policy therefore it is no longer registered VFSClassLoaderPolicy@54182d86{domain=null roots=[FileHandler@2136269707[path=jbossws.deployer context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/], JarHandler@1806506095[path=jbossws.deployer/jbossws-common.jar context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/jbossws-common.jar], JarHandler@1701376584[path=jbossws.deployer/jbossws-framework.jar context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/jbossws-framework.jar], JarHandler@492571793[path=jbossws.deployer/jbossws-jboss50.jar context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/jbossws-jboss50.jar], MemoryContextHandler@505871356[path=classes context=vfsmemory://5c4o22v-cikvpe-fbi3eyik-1-fbi3f1y5-9 real=vfsmemory://5c4o22v-cikvpe-fbi3eyik-1-fbi3f1y5-9/classes]] delegates=[] exported=[jbossws-framework.jar.org.jboss.wsf.framework, jbossws-common.jar.org.jboss.wsf.common.log, META-INF.services, org.jboss.wsf.framework.deployment, jbossws-framework.jar.org.jboss.wsf.framework.management, jbossws-common.jar.org.jboss.wsf.test, org.jboss.wsf.framework.management, jbossws-common.jar.META-INF, jbossws-framework.jar.org.jboss.wsf.framework.deployment, jbossws-common.jar.org.jboss.wsf.common.logging, jbossws-framework.jar.org.jboss.wsf.framework.http, org.jboss.wsf.common, org.jboss.wsf.container.jboss50, jbossws-framework.jar.META-INF, org.jboss.wsf.framework.invocation, org.jboss.wsf.framework.serviceref, org.jboss.wsf.common.transport.jms, META-INF, jbossws-common.jar.org.jboss.wsf.common, jbossws-common.jar.org.jboss.wsf.common.transport.jms, jbossws-framework.jar.org.jboss.wsf.framework.management.recording, jbossws-jboss50.jar.org.jboss.wsf.container.jboss50, org.jboss.wsf.common.management, jbossws-jboss50.jar.META-INF, jbossws-common.jar.org.jboss.wsf.common.management, jbossws-framework.jar.org.jboss.wsf.framework.serviceref, org.jboss.wsf.framework, org.jboss.wsf.framework.http, org.jboss.wsf.test, org.jboss.wsf.common.log, jbossws-jboss50.jar.META-INF.services, jbossws-framework.jar.org.jboss.wsf.framework.invocation, org.jboss.wsf.framework.management.recording, org.jboss.wsf.common.logging] <IMPORT-ALL>NON_EMPTY} null
      11:07:22,373 WARN [CreateDestroyLifecycleAction] Error during destroy for AspectManager
      java.lang.RuntimeException: Problem destroying AspectManager
       at org.jboss.aop.deployers.AbstractAspectManager.destroy(AbstractAspectManager.java:183)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:214)
       at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:108)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:69)
       at org.jboss.kernel.plugins.dependency.LifecycleAction.uninstallActionInternal(LifecycleAction.java:249)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.uninstallAction(KernelControllerContextAction.java:167)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.uninstallAction(KernelControllerContextAction.java:46)
       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleUninstallAction(SimpleControllerContextAction.java:79)
       at org.jboss.dependency.plugins.action.AccessControllerContextAction.uninstall(AccessControllerContextAction.java:131)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.uninstall(AbstractControllerContextActions.java:58)
       at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:333)
       at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1323)
       at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1009)
       at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:936)
       at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:463)
       at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:426)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.undeployBean(AbstractKernelDeployer.java:384)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.undeployBeans(AbstractKernelDeployer.java:363)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.undeploy(AbstractKernelDeployer.java:162)
       at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.undeploy(BasicKernelDeployer.java:88)
       at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.undeploy(BasicXMLDeployer.java:95)
       at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.shutdown(BasicKernelDeployer.java:102)
       at org.jboss.bootstrap.microcontainer.ServerImpl.doShutdown(ServerImpl.java:135)
       at org.jboss.bootstrap.AbstractServerImpl.shutdownServer(AbstractServerImpl.java:520)
       at org.jboss.bootstrap.AbstractServerImpl$ShutdownHook.run(AbstractServerImpl.java:824)
      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: No classloader associated with policy therefore it is no longer registered VFSClassLoaderPolicy@54182d86{domain=null roots=[FileHandler@2136269707[path=jbossws.deployer context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/], JarHandler@1806506095[path=jbossws.deployer/jbossws-common.jar context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/jbossws-common.jar], JarHandler@1701376584[path=jbossws.deployer/jbossws-framework.jar context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/jbossws-framework.jar], JarHandler@492571793[path=jbossws.deployer/jbossws-jboss50.jar context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/jbossws-jboss50.jar], MemoryContextHandler@505871356[path=classes context=vfsmemory://5c4o22v-cikvpe-fbi3eyik-1-fbi3f1y5-9 real=vfsmemory://5c4o22v-cikvpe-fbi3eyik-1-fbi3f1y5-9/classes]] delegates=[] exported=[jbossws-framework.jar.org.jboss.wsf.framework, jbossws-common.jar.org.jboss.wsf.common.log, META-INF.services, org.jboss.wsf.framework.deployment, jbossws-framework.jar.org.jboss.wsf.framework.management, jbossws-common.jar.org.jboss.wsf.test, org.jboss.wsf.framework.management, jbossws-common.jar.META-INF, jbossws-framework.jar.org.jboss.wsf.framework.deployment, jbossws-common.jar.org.jboss.wsf.common.logging, jbossws-framework.jar.org.jboss.wsf.framework.http, org.jboss.wsf.common, org.jboss.wsf.container.jboss50, jbossws-framework.jar.META-INF, org.jboss.wsf.framework.invocation, org.jboss.wsf.framework.serviceref, org.jboss.wsf.common.transport.jms, META-INF, jbossws-common.jar.org.jboss.wsf.common, jbossws-common.jar.org.jboss.wsf.common.transport.jms, jbossws-framework.jar.org.jboss.wsf.framework.management.recording, jbossws-jboss50.jar.org.jboss.wsf.container.jboss50, org.jboss.wsf.common.management, jbossws-jboss50.jar.META-INF, jbossws-common.jar.org.jboss.wsf.common.management, jbossws-framework.jar.org.jboss.wsf.framework.serviceref, org.jboss.wsf.framework, org.jboss.wsf.framework.http, org.jboss.wsf.test, org.jboss.wsf.common.log, jbossws-jboss50.jar.META-INF.services, jbossws-framework.jar.org.jboss.wsf.framework.invocation, org.jboss.wsf.framework.management.recording, org.jboss.wsf.common.logging] <IMPORT-ALL>NON_EMPTY}
       at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:993)
       at org.jboss.aop.deployers.AbstractAspectManager.destroy(AbstractAspectManager.java:170)
       ... 32 more
      Caused by: java.lang.IllegalStateException: No classloader associated with policy therefore it is no longer registered VFSClassLoaderPolicy@54182d86{domain=null roots=[FileHandler@2136269707[path=jbossws.deployer context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/], JarHandler@1806506095[path=jbossws.deployer/jbossws-common.jar context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/jbossws-common.jar], JarHandler@1701376584[path=jbossws.deployer/jbossws-framework.jar context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/jbossws-framework.jar], JarHandler@492571793[path=jbossws.deployer/jbossws-jboss50.jar context=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/ real=file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deployers/jbossws.deployer/jbossws-jboss50.jar], MemoryContextHandler@505871356[path=classes context=vfsmemory://5c4o22v-cikvpe-fbi3eyik-1-fbi3f1y5-9 real=vfsmemory://5c4o22v-cikvpe-fbi3eyik-1-fbi3f1y5-9/classes]] delegates=[] exported=[jbossws-framework.jar.org.jboss.wsf.framework, jbossws-common.jar.org.jboss.wsf.common.log, META-INF.services, org.jboss.wsf.framework.deployment, jbossws-framework.jar.org.jboss.wsf.framework.management, jbossws-common.jar.org.jboss.wsf.test, org.jboss.wsf.framework.management, jbossws-common.jar.META-INF, jbossws-framework.jar.org.jboss.wsf.framework.deployment, jbossws-common.jar.org.jboss.wsf.common.logging, jbossws-framework.jar.org.jboss.wsf.framework.http, org.jboss.wsf.common, org.jboss.wsf.container.jboss50, jbossws-framework.jar.META-INF, org.jboss.wsf.framework.invocation, org.jboss.wsf.framework.serviceref, org.jboss.wsf.common.transport.jms, META-INF, jbossws-common.jar.org.jboss.wsf.common, jbossws-common.jar.org.jboss.wsf.common.transport.jms, jbossws-framework.jar.org.jboss.wsf.framework.management.recording, jbossws-jboss50.jar.org.jboss.wsf.container.jboss50, org.jboss.wsf.common.management, jbossws-jboss50.jar.META-INF, jbossws-common.jar.org.jboss.wsf.common.management, jbossws-framework.jar.org.jboss.wsf.framework.serviceref, org.jboss.wsf.framework, org.jboss.wsf.framework.http, org.jboss.wsf.test, org.jboss.wsf.common.log, jbossws-jboss50.jar.META-INF.services, jbossws-framework.jar.org.jboss.wsf.framework.invocation, org.jboss.wsf.framework.management.recording, org.jboss.wsf.common.logging] <IMPORT-ALL>NON_EMPTY}
       at org.jboss.classloader.spi.base.BaseClassLoaderPolicy.getClassLoader(BaseClassLoaderPolicy.java:272)
       at org.jboss.classloader.spi.base.BaseClassLoader.isValid(BaseClassLoader.java:600)
       at org.jboss.aop.asintegration.jboss5.JBoss5Integration.isValidClassLoader(JBoss5Integration.java:69)
       at org.jboss.aop.AspectManager.getAdvisorFromAdvisorsKeySetIterator(AspectManager.java:2065)
       at org.jboss.aop.AspectManager.updateAdvisorsForAddedBinding(AspectManager.java:1427)
       at org.jboss.aop.AspectManager.updateAdvisorsForAddedBinding(AspectManager.java:1458)
       at org.jboss.aop.AspectManager.addBinding(AspectManager.java:1404)
       at org.jboss.aop.AspectXmlLoader.deployBinding(AspectXmlLoader.java:289)
       at org.jboss.aop.AspectXmlLoader.deployTopElements(AspectXmlLoader.java:1139)
       at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:987)
       ... 33 more
      11:07:22,415 INFO [ServerImpl] Shutdown complete
      Shutdown complete
      Halting VM