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] [Commented] (GERONIMODEVTOOLS-756) java.lang.NullPointerException: Module config Id not found for undeployment
Date Wed, 22 Jun 2011 02:08:47 GMT

    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053000#comment-13053000
] 

Jarek Gawor commented on GERONIMODEVTOOLS-756:
----------------------------------------------

First of all, with the latest GEP code I see the NPE exception in the log but no indication
of an error from Eclipse. And I only saw the exception when the WAR module was undeployed.
However, the module does get undeployed correctly as you stated. 
The problem I ran into was that when WAR module was undeployed, the doRemoved() call was invoked
twice. Since the WAR module has a dependency on a EJB module, Eclipse generated a remove call
on two modules. The root module (WAR) and the child module (WAR:EJB). The GEP code translated
that into two doRemoved() calls. First on the root module (which was successful) and second
on the child module (which failed with the NPE).

In revision 1138277 I ensured that doRemoved() is called in such case only once on the root
module.


> java.lang.NullPointerException: Module config Id not found for undeployment
> ---------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-756
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-756
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 3.0
>         Environment: Windows XP SP3 x86
> IBM jdk Java60
> Geronimo build on 20110525
> GEP Version: 3.0.0-20110328111526
>            Reporter: Jacky Liu
>            Assignee: Jarek Gawor
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: 756.patch, test-ejb.jar, test-web.war
>
>
> 1. start Geronimo v3.0 through GEP
> 2. import EJB JAR file
> 3. import WAR file
> 4. select the EJB project and make it run on server 
> 5. select the WAR project and make it run on server 
> 6. remove EJB from Geronimo  --> ERROR OCCURS!!
> 7. remove WAR from Geronimo  --> ERROR OCCURS!! 
> Module config Id not found for undeployment
> java.lang.NullPointerException
> But the two module were actually removed from Geronimo

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message