You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Forrest Xia (JIRA)" <ji...@apache.org> on 2011/05/04 04:38:03 UTC

[jira] [Created] (GERONIMO-5945) GBean startup NPE when en EJB module includes two EJB associated with the same IOR object

GBean startup NPE when en EJB module includes two EJB associated with the same IOR object
-----------------------------------------------------------------------------------------

                 Key: GERONIMO-5945
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5945
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: CORBA, OpenEJB
    Affects Versions: 3.0
         Environment: Oracle JDK 1.6.0_23 32bit
Ubuntu 10.04.2 LTS
            Reporter: Forrest Xia


When deploying the attached sample EJB to the latest geronimo server with proper corba IOR installed, you will see an error in server.log like this:
2011-05-04 09:56:25,794 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/corbahellobean_ejb_ear/1.0/car?EJBModule=corbahellobean_ejb.jar,J2EEApplication=default/corbahellobean_ejb_ear/1.0/car,StatefulSessionBean=ExceptionBeanEJB,j2eeType=TSSLink,name=IOR3"
java.lang.NullPointerException
	at org.apache.geronimo.openejb.EjbDeployment.getContainer(EjbDeployment.java:263)
	at org.apache.geronimo.corba.AdapterWrapper.start(AdapterWrapper.java:41)
	at org.apache.geronimo.corba.TSSBean.registerContainer(TSSBean.java:182)
	at org.apache.geronimo.corba.TSSLink.doStart(TSSLink.java:68)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
	at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
	at java.lang.Thread.run(Thread.java:662)

Seems to me that the EJBs cannot share the same IOR object, while this should be OK, geronimo 2.x handles that well. 

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

[jira] [Updated] (GERONIMO-5945) GBean startup NPE when en EJB module includes two EJB associated with the same IOR object

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

Forrest Xia updated GERONIMO-5945:
----------------------------------

    Priority: Minor  (was: Major)

> GBean startup NPE when en EJB module includes two EJB associated with the same IOR object
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5945
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5945
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: CORBA, OpenEJB
>    Affects Versions: 3.0
>         Environment: Oracle JDK 1.6.0_23 32bit
> Ubuntu 10.04.2 LTS
>            Reporter: Forrest Xia
>            Assignee: Shawn Jiang
>            Priority: Minor
>              Labels: corba, openejb, yoko
>         Attachments: corbahellobean_ejb_ear2_jdk5.ear
>
>
> When deploying the attached sample EJB to the latest geronimo server with proper corba IOR installed, you will see an error in server.log like this:
> 2011-05-04 09:56:25,794 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/corbahellobean_ejb_ear/1.0/car?EJBModule=corbahellobean_ejb.jar,J2EEApplication=default/corbahellobean_ejb_ear/1.0/car,StatefulSessionBean=ExceptionBeanEJB,j2eeType=TSSLink,name=IOR3"
> java.lang.NullPointerException
> 	at org.apache.geronimo.openejb.EjbDeployment.getContainer(EjbDeployment.java:263)
> 	at org.apache.geronimo.corba.AdapterWrapper.start(AdapterWrapper.java:41)
> 	at org.apache.geronimo.corba.TSSBean.registerContainer(TSSBean.java:182)
> 	at org.apache.geronimo.corba.TSSLink.doStart(TSSLink.java:68)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
> 	at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
> 	at java.lang.Thread.run(Thread.java:662)
> Seems to me that the EJBs cannot share the same IOR object, while this should be OK, geronimo 2.x handles that well. 

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

[jira] [Closed] (GERONIMO-5945) GBean startup NPE when en EJB module includes two EJB associated with the same IOR object

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

Forrest Xia closed GERONIMO-5945.
---------------------------------


The NPE is hidden now, EJB could link with IOR objects.

> GBean startup NPE when en EJB module includes two EJB associated with the same IOR object
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5945
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5945
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: CORBA, OpenEJB
>    Affects Versions: 3.0
>         Environment: Oracle JDK 1.6.0_23 32bit
> Ubuntu 10.04.2 LTS
>            Reporter: Forrest Xia
>            Assignee: Shawn Jiang
>            Priority: Minor
>              Labels: corba, openejb, yoko
>         Attachments: corbahellobean_ejb_ear2_jdk5.ear
>
>
> When deploying the attached sample EJB to the latest geronimo server with proper corba IOR installed, you will see an error in server.log like this:
> 2011-05-04 09:56:25,794 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/corbahellobean_ejb_ear/1.0/car?EJBModule=corbahellobean_ejb.jar,J2EEApplication=default/corbahellobean_ejb_ear/1.0/car,StatefulSessionBean=ExceptionBeanEJB,j2eeType=TSSLink,name=IOR3"
> java.lang.NullPointerException
> 	at org.apache.geronimo.openejb.EjbDeployment.getContainer(EjbDeployment.java:263)
> 	at org.apache.geronimo.corba.AdapterWrapper.start(AdapterWrapper.java:41)
> 	at org.apache.geronimo.corba.TSSBean.registerContainer(TSSBean.java:182)
> 	at org.apache.geronimo.corba.TSSLink.doStart(TSSLink.java:68)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
> 	at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
> 	at java.lang.Thread.run(Thread.java:662)
> Seems to me that the EJBs cannot share the same IOR object, while this should be OK, geronimo 2.x handles that well. 

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

        

[jira] [Resolved] (GERONIMO-5945) GBean startup NPE when en EJB module includes two EJB associated with the same IOR object

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

Shawn Jiang resolved GERONIMO-5945.
-----------------------------------

    Resolution: Fixed

Sure it could be resolved since all the ejb related to same IOR could be started correctly now.

> GBean startup NPE when en EJB module includes two EJB associated with the same IOR object
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5945
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5945
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: CORBA, OpenEJB
>    Affects Versions: 3.0
>         Environment: Oracle JDK 1.6.0_23 32bit
> Ubuntu 10.04.2 LTS
>            Reporter: Forrest Xia
>            Assignee: Shawn Jiang
>            Priority: Minor
>              Labels: corba, openejb, yoko
>         Attachments: corbahellobean_ejb_ear2_jdk5.ear
>
>
> When deploying the attached sample EJB to the latest geronimo server with proper corba IOR installed, you will see an error in server.log like this:
> 2011-05-04 09:56:25,794 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/corbahellobean_ejb_ear/1.0/car?EJBModule=corbahellobean_ejb.jar,J2EEApplication=default/corbahellobean_ejb_ear/1.0/car,StatefulSessionBean=ExceptionBeanEJB,j2eeType=TSSLink,name=IOR3"
> java.lang.NullPointerException
> 	at org.apache.geronimo.openejb.EjbDeployment.getContainer(EjbDeployment.java:263)
> 	at org.apache.geronimo.corba.AdapterWrapper.start(AdapterWrapper.java:41)
> 	at org.apache.geronimo.corba.TSSBean.registerContainer(TSSBean.java:182)
> 	at org.apache.geronimo.corba.TSSLink.doStart(TSSLink.java:68)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
> 	at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
> 	at java.lang.Thread.run(Thread.java:662)
> Seems to me that the EJBs cannot share the same IOR object, while this should be OK, geronimo 2.x handles that well. 

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

        

[jira] [Assigned] (GERONIMO-5945) GBean startup NPE when en EJB module includes two EJB associated with the same IOR object

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

Shawn Jiang reassigned GERONIMO-5945:
-------------------------------------

    Assignee: Shawn Jiang

> GBean startup NPE when en EJB module includes two EJB associated with the same IOR object
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5945
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5945
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: CORBA, OpenEJB
>    Affects Versions: 3.0
>         Environment: Oracle JDK 1.6.0_23 32bit
> Ubuntu 10.04.2 LTS
>            Reporter: Forrest Xia
>            Assignee: Shawn Jiang
>              Labels: corba, openejb, yoko
>         Attachments: corbahellobean_ejb_ear2_jdk5.ear
>
>
> When deploying the attached sample EJB to the latest geronimo server with proper corba IOR installed, you will see an error in server.log like this:
> 2011-05-04 09:56:25,794 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/corbahellobean_ejb_ear/1.0/car?EJBModule=corbahellobean_ejb.jar,J2EEApplication=default/corbahellobean_ejb_ear/1.0/car,StatefulSessionBean=ExceptionBeanEJB,j2eeType=TSSLink,name=IOR3"
> java.lang.NullPointerException
> 	at org.apache.geronimo.openejb.EjbDeployment.getContainer(EjbDeployment.java:263)
> 	at org.apache.geronimo.corba.AdapterWrapper.start(AdapterWrapper.java:41)
> 	at org.apache.geronimo.corba.TSSBean.registerContainer(TSSBean.java:182)
> 	at org.apache.geronimo.corba.TSSLink.doStart(TSSLink.java:68)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
> 	at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
> 	at java.lang.Thread.run(Thread.java:662)
> Seems to me that the EJBs cannot share the same IOR object, while this should be OK, geronimo 2.x handles that well. 

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

[jira] [Commented] (GERONIMO-5945) GBean startup NPE when en EJB module includes two EJB associated with the same IOR object

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031582#comment-13031582 ] 

Shawn Jiang commented on GERONIMO-5945:
---------------------------------------


The null point exception break the gbean instance's full start attempt.   Adding a NPE protection and throws a normal exception would force the tss link gbean get started again after the ejb deployment info is initiated.






> GBean startup NPE when en EJB module includes two EJB associated with the same IOR object
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5945
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5945
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: CORBA, OpenEJB
>    Affects Versions: 3.0
>         Environment: Oracle JDK 1.6.0_23 32bit
> Ubuntu 10.04.2 LTS
>            Reporter: Forrest Xia
>            Assignee: Shawn Jiang
>              Labels: corba, openejb, yoko
>         Attachments: corbahellobean_ejb_ear2_jdk5.ear
>
>
> When deploying the attached sample EJB to the latest geronimo server with proper corba IOR installed, you will see an error in server.log like this:
> 2011-05-04 09:56:25,794 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/corbahellobean_ejb_ear/1.0/car?EJBModule=corbahellobean_ejb.jar,J2EEApplication=default/corbahellobean_ejb_ear/1.0/car,StatefulSessionBean=ExceptionBeanEJB,j2eeType=TSSLink,name=IOR3"
> java.lang.NullPointerException
> 	at org.apache.geronimo.openejb.EjbDeployment.getContainer(EjbDeployment.java:263)
> 	at org.apache.geronimo.corba.AdapterWrapper.start(AdapterWrapper.java:41)
> 	at org.apache.geronimo.corba.TSSBean.registerContainer(TSSBean.java:182)
> 	at org.apache.geronimo.corba.TSSLink.doStart(TSSLink.java:68)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
> 	at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
> 	at java.lang.Thread.run(Thread.java:662)
> Seems to me that the EJBs cannot share the same IOR object, while this should be OK, geronimo 2.x handles that well. 

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

[jira] [Commented] (GERONIMO-5945) GBean startup NPE when en EJB module includes two EJB associated with the same IOR object

Posted by "Forrest Xia (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034064#comment-13034064 ] 

Forrest Xia commented on GERONIMO-5945:
---------------------------------------

Shawn, thank you for this quick fix. However, we would like to know why this NPE exception happens. However, I double check the status of module, all of the EJBs associated with a same IOR are started finally. So I would lower the severity level.

> GBean startup NPE when en EJB module includes two EJB associated with the same IOR object
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5945
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5945
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: CORBA, OpenEJB
>    Affects Versions: 3.0
>         Environment: Oracle JDK 1.6.0_23 32bit
> Ubuntu 10.04.2 LTS
>            Reporter: Forrest Xia
>            Assignee: Shawn Jiang
>              Labels: corba, openejb, yoko
>         Attachments: corbahellobean_ejb_ear2_jdk5.ear
>
>
> When deploying the attached sample EJB to the latest geronimo server with proper corba IOR installed, you will see an error in server.log like this:
> 2011-05-04 09:56:25,794 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/corbahellobean_ejb_ear/1.0/car?EJBModule=corbahellobean_ejb.jar,J2EEApplication=default/corbahellobean_ejb_ear/1.0/car,StatefulSessionBean=ExceptionBeanEJB,j2eeType=TSSLink,name=IOR3"
> java.lang.NullPointerException
> 	at org.apache.geronimo.openejb.EjbDeployment.getContainer(EjbDeployment.java:263)
> 	at org.apache.geronimo.corba.AdapterWrapper.start(AdapterWrapper.java:41)
> 	at org.apache.geronimo.corba.TSSBean.registerContainer(TSSBean.java:182)
> 	at org.apache.geronimo.corba.TSSLink.doStart(TSSLink.java:68)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
> 	at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
> 	at java.lang.Thread.run(Thread.java:662)
> Seems to me that the EJBs cannot share the same IOR object, while this should be OK, geronimo 2.x handles that well. 

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

[jira] [Updated] (GERONIMO-5945) GBean startup NPE when en EJB module includes two EJB associated with the same IOR object

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

Forrest Xia updated GERONIMO-5945:
----------------------------------

    Attachment: corbahellobean_ejb_ear2_jdk5.ear

> GBean startup NPE when en EJB module includes two EJB associated with the same IOR object
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5945
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5945
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: CORBA, OpenEJB
>    Affects Versions: 3.0
>         Environment: Oracle JDK 1.6.0_23 32bit
> Ubuntu 10.04.2 LTS
>            Reporter: Forrest Xia
>              Labels: corba, openejb, yoko
>         Attachments: corbahellobean_ejb_ear2_jdk5.ear
>
>
> When deploying the attached sample EJB to the latest geronimo server with proper corba IOR installed, you will see an error in server.log like this:
> 2011-05-04 09:56:25,794 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/corbahellobean_ejb_ear/1.0/car?EJBModule=corbahellobean_ejb.jar,J2EEApplication=default/corbahellobean_ejb_ear/1.0/car,StatefulSessionBean=ExceptionBeanEJB,j2eeType=TSSLink,name=IOR3"
> java.lang.NullPointerException
> 	at org.apache.geronimo.openejb.EjbDeployment.getContainer(EjbDeployment.java:263)
> 	at org.apache.geronimo.corba.AdapterWrapper.start(AdapterWrapper.java:41)
> 	at org.apache.geronimo.corba.TSSBean.registerContainer(TSSBean.java:182)
> 	at org.apache.geronimo.corba.TSSLink.doStart(TSSLink.java:68)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
> 	at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
> 	at java.lang.Thread.run(Thread.java:662)
> Seems to me that the EJBs cannot share the same IOR object, while this should be OK, geronimo 2.x handles that well. 

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