You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2007/01/15 21:51:27 UTC

[jira] Commented: (GERONIMO-2732) J2EE Application Client deployment fails with NPE

    [ https://issues.apache.org/jira/browse/GERONIMO-2732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464987 ] 

Jarek Gawor commented on GERONIMO-2732:
---------------------------------------

The attached patch fixes the problem for me but I'm not sure if this is the right solution.


> 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
>         Attachments: patch
>
>
> 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