1 Reply Latest reply on Sep 22, 2003 9:01 AM by tom yeh

    Undeployment cleanup failed

    tom yeh Newbie

      Since upgrading from 3.0.8 to 3.2.1, the following exception occurs when undeploying my application from the server:

      22:09:34,159 ERROR [MainDeployer] Undeployment cleanup failed: file:/F:/usr/jboss/server/potix/t
      mp/deploy/server/potix/deploy1/i3e.ear/16.i3e.ear-contents/i3lb.jar
      java.lang.NullPointerException
      at org.jboss.deployment.DeploymentInfo.cleanup(DeploymentInfo.java:328)
      at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:565)
      at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:546)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:481)
      at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:368)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java
      :284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:8
      08)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:783)
      at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:771)

      ----
      Any hint? If don't deploy my app, there is no problem to shutdown the server.

      I cleaned up my deploy directory to hold only:
      jboss-jca.sar* jbossweb-jetty.sar/ sqlexception-service.xml*
      jboss-local-jdbc.rar* mail-service.xml* transaction-service.xml*
      jboss-xa-jdbc.rar* postgres-ds.xml*

      Thansk and Regards,
      Tom

        • 1. Re: Undeployment cleanup failed
          tom yeh Newbie

          I also found, upon starting up, there are such kind of erros:

          mbeans:
          , org.jboss.deployment.DeploymentInfo@f7c1cdfa { url=file:/F:/usr/jboss/server/potix/tmp/deploy/server/potix/deploy1/i3e.ear/16.i3e.ear-contents/i3lb.jar }
          deployer: null
          status: Starting
          state: START_SUBDEPLOYMENTS
          watch: file:/F:/usr/jboss/server/potix/tmp/deploy/server/potix/deploy1/i3e.ear/16.i3e.ear-contents/i3lb.jar
          lastDeployed: 1064239652504
          lastModified: 1064239640783

          ---
          After examing the source codes, the null pointer seems caused by a null deployer, but why the deployer is null.

          In this case, i3lb.jar is simply a library -- doesn't contain EJB implements (though invoking some EJB).