0 Replies Latest reply on Apr 11, 2008 9:24 AM by Adrian Brock

    Error during undeploy GeneratedClassAdvisor

    Adrian Brock Master

      The following test in JBoss 5

      ./build.sh one-test -Dtest=org.jboss.test.aop.test.MicrocontainerJMXUnitTestCase
      


      is giving the following error at undeploy
      15:13:18,430 ERROR [AspectDeployer] Error during undeploy: vfsfile:/home/ejort/jboss-head/testsuite/output/lib/aop-mc-jmxtest-has-dependency.jar
      java.lang.IllegalStateException
       at java.util.WeakHashMap$HashIterator.remove(WeakHashMap.java:757)
       at org.jboss.aop.GeneratedClassAdvisor.cleanup(GeneratedClassAdvisor.java:133)
       at org.jboss.aop.classpool.AOPClassPoolRepository.doUnregisterClassLoader(AOPClassPoolRepository.java:206)
       at org.jboss.aop.classpool.AOPClassPoolRepository.access$000(AOPClassPoolRepository.java:51)
       at org.jboss.aop.classpool.AOPClassPoolRepository$UnregisterClassLoaderAction$2.unregister(AOPClassPoolRepository.java:267)
       at org.jboss.aop.classpool.AOPClassPoolRepository.perfomUnregisterClassLoader(AOPClassPoolRepository.java:180)
       at org.jboss.aop.classpool.AOPClassPool.close(AOPClassPool.java:84)
       at org.jboss.aop.asintegration.jboss5.JBoss5ClassPool.close(JBoss5ClassPool.java:73)
       at javassist.scopedpool.ScopedClassPoolRepositoryImpl.unregisterClassLoader(ScopedClassPoolRepositoryImpl.java:172)
       at org.jboss.aop.classpool.AOPClassPoolRepository.unregisterClassLoader(AOPClassPoolRepository.java:162)
       at org.jboss.aop.AspectManager.unregisterClassLoader(AspectManager.java:754)
       at org.jboss.aop.deployers.AspectDeployer.undeploy(AspectDeployer.java:141)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalUndeploy(AbstractVFSRealDeployer.java:54)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:112)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:197)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1189)
      


      The test now passes after I fixed the xml, but there's obviously some problem
      with the aop cleanup of deployments.