Uploaded image for project: 'Geronimo-Devtools'
  1. Geronimo-Devtools
  2. GERONIMODEVTOOLS-719

NPE if delete a project which is deployed on geronimo server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0
    • eclipse-plugin
    • None
    • WindowXP SP3 + Helios SR1

    Description

      1. Create a geronimo sever v3.0
      2. Create a dynamic web project
      3. Deploy dynamic web project via "Run As" -> "Run on Server"
      4. Delete dynamic web project

      dynamic web project is removed in server view, but several seconds an error dialog (screenshot is attached) is popuped which indicates NullPointerException. dynamic web project module is still on server, and eclipse log shows below.

      !MESSAGE Module config Id not found for undeployment
      !STACK 0
      java.lang.NullPointerException
      at org.apache.geronimo.st.v30.core.GeronimoUtils.getWebDeploymentPlanFile(GeronimoUtils.java:200)
      at org.apache.geronimo.st.v30.core.GeronimoUtils.getWebDeploymentPlan(GeronimoUtils.java:331)
      at org.apache.geronimo.st.v30.core.GeronimoUtils.getWebDeploymentPlan(GeronimoUtils.java:328)
      at org.apache.geronimo.st.v30.core.GeronimoUtils.getConfigId(GeronimoUtils.java:157)
      at org.apache.geronimo.st.v30.core.GeronimoVersionHandler.getConfigID(GeronimoVersionHandler.java:39)
      at org.apache.geronimo.st.v30.core.commands.UndeployCommand.execute(UndeployCommand.java:53)
      at org.apache.geronimo.st.v30.core.commands.SynchronizedDeploymentOp.run(SynchronizedDeploymentOp.java:84)
      at org.apache.geronimo.st.v30.core.commands.SynchronizedDeploymentOp.execute(SynchronizedDeploymentOp.java:76)
      at org.apache.geronimo.st.v30.core.GeronimoServerBehaviourDelegate.unDeploy(GeronimoServerBehaviourDelegate.java:742)
      at org.apache.geronimo.st.v30.core.GeronimoServerBehaviourDelegate.doRemoved(GeronimoServerBehaviourDelegate.java:668)
      at org.apache.geronimo.st.v30.core.GeronimoServerBehaviourDelegate.invokeCommand(GeronimoServerBehaviourDelegate.java:467)
      at org.apache.geronimo.st.v30.core.GeronimoServerBehaviourDelegate.publishModule(GeronimoServerBehaviourDelegate.java:336)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1025)
      at org.apache.geronimo.st.v30.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:291)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:948)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
      at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889)
      at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--NPE.jpg
          145 kB
          Hong Fang Han

        Activity

          People

            gawor@mcs.anl.gov Jarek Gawor
            hanhongfang Hong Fang Han
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: