1 Reply Latest reply on Apr 5, 2009 7:32 AM by Ales Justin

    CL's GlobalCapabilities have a bug

    Ales Justin Master

      Kabir's GlobalCapabilities cause a NPE in current Deployers trunk.

      A bit of background on how this NPE was exposed. :-)

      I've released temp 2.2.0 Milestone1 releases of MC sub-projects:
      * VFS
      * Kernel
      * CL

      This is off the trunk, since currently most of the branches look exactly the same as trunk,
      hence I don't expect any big diff when I do proper 2.0.x releases.
      This is just to get Alexey and Remy to move fwd with their work on XB and Metadata.

      I've also committed Deployers with all the updates,
      although the current build fails, hence exposing the bug.

      516 ERROR [MockClassLoaderDescribeDeployer] Error during undeploy: A
      java.lang.NullPointerException
       at org.jboss.classloading.spi.dependency.Module.getCapabilities(Module.java:661)
       at org.jboss.classloading.spi.dependency.Module.determinePackageNames(Module.java:716)
       at org.jboss.classloading.spi.dependency.ClassLoadingSpace.unjoin(ClassLoadingSpace.java:283)
       at org.jboss.classloading.spi.dependency.ClassLoadingSpace.split(ClassLoadingSpace.java:190)
       at org.jboss.classloading.spi.dependency.Domain.removeModule(Domain.java:186)
       at org.jboss.classloading.spi.dependency.Module.release(Module.java:922)
       at org.jboss.deployers.plugins.classloading.AbstractDeploymentClassLoaderPolicyModule.release(AbstractDeploymentClassLoaderPolicyModule.java:147)
       at org.jboss.classloading.spi.dependency.ClassLoading.removeModule(ClassLoading.java:126)
       at org.jboss.deployers.plugins.classloading.AbstractClassLoaderDescribeDeployer.undeploy(AbstractClassLoaderDescribeDeployer.java:120)
       at org.jboss.deployers.plugins.classloading.AbstractClassLoaderDescribeDeployer.undeploy(AbstractClassLoaderDescribeDeployer.java:39)
       at org.jboss.deployers.spi.deployer.helpers.AbstractOptionalRealDeployer.internalUndeploy(AbstractOptionalRealDeployer.java:91)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:112)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:196)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1469)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1376)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1331)
       at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:354)
       at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1664)
       at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1275)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:827)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:694)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.undeploy(MainDeployerImpl.java:601)
       at org.jboss.test.deployers.AbstractDeployerTest.assertUndeploy(AbstractDeployerTest.java:207)
       at org.jboss.test.deployers.classloading.test.MockClassLoaderDependenciesUnitTestCase.testSimpleClassLoader(MockClassLoaderDependenciesUnitTestCase.java:67)
      


      Once this is fixed I'll do a new CL release + Deployers 2.2.0.M1.