J2EE Application Client deployment fails with NPE
-------------------------------------------------

                 Key: GERONIMO-2732
                 URL: https://issues.apache.org/jira/browse/GERONIMO-2732
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: application client
    Affects Versions: 2.0-M2
            Reporter: Jarek Gawor


The following exception is generated when a standalone J2EE application client 
is deployed (in trunk):

Caused by: java.lang.NullPointerException
        at org.apache.geronimo.client.builder.AppClientModuleBuilder.createModul
e(AppClientModuleBuilder.java:256)
        at org.apache.geronimo.client.builder.AppClientModuleBuilder.createModul
e(AppClientModuleBuilder.java:190)
        at org.apache.geronimo.client.builder.AppClientModuleBuilder$$FastClassB
yCGLIB$$93137659.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.

This error can be replicated by deploying 
'applications/magicGball/magicGball-client' jar file.

The code fails in the following line:

earName = naming.createRootName(earEnvironment.getConfigId(), NameFactory.NULL, 
NameFactory.J2EE_APPLICATION);

which assumes earEnvironment variable is non-null. However, it is null in such 
deployment.

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

        

Reply via email to