You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org> on 2005/08/31 12:57:04 UTC

[jira] Created: (GERONIMO-960) NPE related to EJB while deploying EAR

NPE related to EJB while deploying EAR
--------------------------------------

         Key: GERONIMO-960
         URL: http://issues.apache.org/jira/browse/GERONIMO-960
     Project: Geronimo
        Type: Bug
  Components: deployment  
 Reporter: Aaron Mulder
     Fix For: 1.0-M5


Reported on the user list:

Unable to distribute Myapp.ear : Unable to initialize EJBContainer GBean: ejbName [MyAddressBean] caused by null

i have the entry in openejb-jar.xml for this bean it is as below

<ejb-local-ref>
      <ref-name>MyAddress</ref-name>
      <name>MyAddressBean</name>
</ejb-local-ref>

The XML looks wrong but that shouldn't throw an NPE...  Whatever the issue is we should try to avoid the NPE.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-960) NPE related to EJB while deploying EAR

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-960?page=all ]

Aaron Mulder updated GERONIMO-960:
----------------------------------

      Component: OpenEJB
    Fix Version: 1.1
                     (was: 1.2)
      Assign To: Aaron Mulder
       Priority: Critical  (was: Major)

The NPE appears to be coming from user code.  I guess the best we can do is provide a better error saying "encountered an unexpceted exception while calling EJBCreate on bean class foo" or whatever.

> NPE related to EJB while deploying EAR
> --------------------------------------
>
>          Key: GERONIMO-960
>          URL: http://issues.apache.org/jira/browse/GERONIMO-960
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: deployment, OpenEJB
>     Reporter: Aaron Mulder
>     Assignee: Aaron Mulder
>     Priority: Critical
>      Fix For: 1.1

>
> Reported on the user list:
> Unable to distribute Myapp.ear : Unable to initialize EJBContainer GBean: ejbName [MyAddressBean] caused by null
> i have the entry in openejb-jar.xml for this bean it is as below
> <ejb-local-ref>
>       <ref-name>MyAddress</ref-name>
>       <name>MyAddressBean</name>
> </ejb-local-ref>
> The XML looks wrong but that shouldn't throw an NPE...  Whatever the issue is we should try to avoid the NPE.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-960) NPE related to EJB while deploying EAR

Posted by "Matt Hogstrom (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-960?page=all ]

Matt Hogstrom updated GERONIMO-960:
-----------------------------------

    Fix Version: 1.x
                     (was: 1.1)

> NPE related to EJB while deploying EAR
> --------------------------------------
>
>          Key: GERONIMO-960
>          URL: http://issues.apache.org/jira/browse/GERONIMO-960
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: deployment, OpenEJB
>     Reporter: Aaron Mulder
>     Assignee: Aaron Mulder
>     Priority: Critical
>      Fix For: 1.x

>
> Reported on the user list:
> Unable to distribute Myapp.ear : Unable to initialize EJBContainer GBean: ejbName [MyAddressBean] caused by null
> i have the entry in openejb-jar.xml for this bean it is as below
> <ejb-local-ref>
>       <ref-name>MyAddress</ref-name>
>       <name>MyAddressBean</name>
> </ejb-local-ref>
> The XML looks wrong but that shouldn't throw an NPE...  Whatever the issue is we should try to avoid the NPE.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-960) NPE related to EJB while deploying EAR

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-960?page=all ]

Aaron Mulder updated GERONIMO-960:
----------------------------------

    Assign To:     (was: Aaron Mulder)

> NPE related to EJB while deploying EAR
> --------------------------------------
>
>          Key: GERONIMO-960
>          URL: http://issues.apache.org/jira/browse/GERONIMO-960
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: deployment, OpenEJB
>     Reporter: Aaron Mulder
>     Priority: Critical
>      Fix For: 1.x

>
> Reported on the user list:
> Unable to distribute Myapp.ear : Unable to initialize EJBContainer GBean: ejbName [MyAddressBean] caused by null
> i have the entry in openejb-jar.xml for this bean it is as below
> <ejb-local-ref>
>       <ref-name>MyAddress</ref-name>
>       <name>MyAddressBean</name>
> </ejb-local-ref>
> The XML looks wrong but that shouldn't throw an NPE...  Whatever the issue is we should try to avoid the NPE.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-960) NPE related to EJB while deploying EAR

Posted by "Matt Hogstrom (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-960?page=all ]

Matt Hogstrom updated GERONIMO-960:
-----------------------------------

    Fix Version: 1.1
                     (was: 1.0)

Fix in 1.1

> NPE related to EJB while deploying EAR
> --------------------------------------
>
>          Key: GERONIMO-960
>          URL: http://issues.apache.org/jira/browse/GERONIMO-960
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Reporter: Aaron Mulder
>      Fix For: 1.1

>
> Reported on the user list:
> Unable to distribute Myapp.ear : Unable to initialize EJBContainer GBean: ejbName [MyAddressBean] caused by null
> i have the entry in openejb-jar.xml for this bean it is as below
> <ejb-local-ref>
>       <ref-name>MyAddress</ref-name>
>       <name>MyAddressBean</name>
> </ejb-local-ref>
> The XML looks wrong but that shouldn't throw an NPE...  Whatever the issue is we should try to avoid the NPE.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-960) NPE related to EJB while deploying EAR

Posted by "David Blevins (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-960?page=all ]

David Blevins updated GERONIMO-960:
-----------------------------------

    Fix Version: 1.0
                     (was: 1.0-M5)

> NPE related to EJB while deploying EAR
> --------------------------------------
>
>          Key: GERONIMO-960
>          URL: http://issues.apache.org/jira/browse/GERONIMO-960
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Reporter: Aaron Mulder
>      Fix For: 1.0

>
> Reported on the user list:
> Unable to distribute Myapp.ear : Unable to initialize EJBContainer GBean: ejbName [MyAddressBean] caused by null
> i have the entry in openejb-jar.xml for this bean it is as below
> <ejb-local-ref>
>       <ref-name>MyAddress</ref-name>
>       <name>MyAddressBean</name>
> </ejb-local-ref>
> The XML looks wrong but that shouldn't throw an NPE...  Whatever the issue is we should try to avoid the NPE.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-960) NPE related to EJB while deploying EAR

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-960?page=comments#action_12320738 ] 

Aaron Mulder commented on GERONIMO-960:
---------------------------------------

17:21:13,563 DEBUG [Deployer] Deployment failed:
plan=null, module=/home/oss/deployment/work/Twe.ear
org.apache.geronimo.common.DeploymentException: Unable
to initialize EJBContainer GBean: ejbName
[MyAddressBean]
        at org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:825)
        at org.openejb.deployment.CMPEntityBuilder.buildBeans(CMPEntityBuilder.java:147)
        at org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuilder.java:499)
        at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:719)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:94)
        at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$8f46c681.addGBeans(<generated>)
        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:377)
        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
...
Caused by: java.lang.NullPointerException
        at com.myapp.twe.util.config.ConfigReader.init(ConfigReader.java:338)
        at com.myapp.twe.util.config.ConfigReader.<init>(ConfigReader.java:121)
        at com.myapp.twe.util.config.ConfigReader.getInstance(ConfigReader.java:277)
        at com.myapp.twe.common.servicelocator.factory.HomeFactory.getDBServerName(HomeFactory.java:196)
        at com.myapp.twe.common.servicelocator.factory.HomeFactory.<init>(HomeFactory.java:88)
        at com.myapp.twe.common.servicelocator.factory.HomeFactory.<clinit>(HomeFactory.java:49)

> NPE related to EJB while deploying EAR
> --------------------------------------
>
>          Key: GERONIMO-960
>          URL: http://issues.apache.org/jira/browse/GERONIMO-960
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Reporter: Aaron Mulder
>      Fix For: 1.0-M5

>
> Reported on the user list:
> Unable to distribute Myapp.ear : Unable to initialize EJBContainer GBean: ejbName [MyAddressBean] caused by null
> i have the entry in openejb-jar.xml for this bean it is as below
> <ejb-local-ref>
>       <ref-name>MyAddress</ref-name>
>       <name>MyAddressBean</name>
> </ejb-local-ref>
> The XML looks wrong but that shouldn't throw an NPE...  Whatever the issue is we should try to avoid the NPE.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira