geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GERONIMODEVTOOLS-719) NPE if delete a project which is deployed on geronimo server
Date Wed, 22 Jun 2011 05:41:47 GMT

     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jarek Gawor resolved GERONIMODEVTOOLS-719.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

In revision 1138309 I committed fixes for this issue. I changed the ModuleArtifactMapper to
map configuration ids based on the module id instead of the project name (since project might
not be 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
>             Fix For: 3.0
>
>         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

        

Mime
View raw message