[
https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053056#comment-13053056
]
Jarek Gawor commented on GERONIMODEVTOOLS-719:
----------------------------------------------
Once the project is deleted from the workspace that causes the module to be
undeployed from the server. The undeploy() method needs to know the
configuration id to undeploy. It tries to get the configuration id from the
module plan and for that it needs the project information. But at this point
the project is not there anymore.
> NPE if delete a project which is deployed on geronimo server
> ------------------------------------------------------------
>
> Key: GERONIMODEVTOOLS-719
> URL:
> https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-719
> Project: Geronimo-Devtools
> Issue Type: Bug
> Components: eclipse-plugin
> Affects Versions: 3.0
> Environment: WindowXP SP3 + Helios SR1
> Reporter: Han Hong Fang
> Assignee: Jarek Gawor
> Attachments: NPE.jpg
>
>
> 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)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira