You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jacky Liu (JIRA)" <ji...@apache.org> on 2011/05/31 09:50:49 UTC

[jira] [Created] (GERONIMODEVTOOLS-756) java.lang.NullPointerException: Module config Id not found for undeployment

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
            Priority: Minor
         Attachments: 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

[jira] [Updated] (GERONIMODEVTOOLS-756) java.lang.NullPointerException: Module config Id not found for undeployment

Posted by "Yi Xiao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yi Xiao updated GERONIMODEVTOOLS-756:
-------------------------------------

    Attachment: 756.patch

The patch is available.

> 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
>            Priority: Minor
>         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

[jira] [Commented] (GERONIMODEVTOOLS-756) java.lang.NullPointerException: Module config Id not found for undeployment

Posted by "Yi Xiao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048245#comment-13048245 ] 

Yi Xiao commented on GERONIMODEVTOOLS-756:
------------------------------------------

I just record the exception in the log, but do not throw the exception to the higher level. Because the WST adds the modules that will be removed to a deletedList, so the error dialog pops up, actually, the modules will be removed successfully after the WST execute the next removed loop.

> 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
>            Priority: Minor
>         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

        

[jira] [Assigned] (GERONIMODEVTOOLS-756) java.lang.NullPointerException: Module config Id not found for undeployment

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor reassigned GERONIMODEVTOOLS-756:
--------------------------------------------

    Assignee: Jarek Gawor

> 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
>         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

        

[jira] [Resolved] (GERONIMODEVTOOLS-756) java.lang.NullPointerException: Module config Id not found for undeployment

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor resolved GERONIMODEVTOOLS-756.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

> 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

        

[jira] [Commented] (GERONIMODEVTOOLS-756) java.lang.NullPointerException: Module config Id not found for undeployment

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Updated] (GERONIMODEVTOOLS-756) java.lang.NullPointerException: Module config Id not found for undeployment

Posted by "Jacky Liu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacky Liu updated GERONIMODEVTOOLS-756:
---------------------------------------

    Attachment: test-web.war
                test-ejb.jar

> 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
>            Priority: Minor
>         Attachments: 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