users@glassfish.java.net

NPE at AbstractModulesRegistryImpl.java:448 with appclient via javaws

From: <glassfish_at_javadesktop.org>
Date: Thu, 21 Jan 2010 03:45:54 PST

I have an EAR application consisting of a couple of EJBs, a WAR and an application client. This application deploys and works fine on Glassfish 2.1 and is a prototype for a project that I am working on. I wanted to test this on version 3 and try some of the new JEE v6 features.

However, I am unable to get the application client to work when running under glassfish 3. The EAR deploys (if I use the admin console - it won't from inside eclipse but that is a separate issue) but the application client will not start from either the admin console or using javaws.

Instead I receive the following exception which I have been unable to find any information on (I even tried locating the source for AbstractModulesRegistryImpl but could not find it anywhere).

Any ideas on what is causing this issue?

java.lang.NullPointerException
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.add(AbstractModulesRegistryImpl.java:448)
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.add(AbstractModulesRegistryImpl.java:443)
        at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:48)
        at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:30)
        at com.sun.enterprise.module.single.StaticModulesRegistry.<init>(StaticModulesRegistry.java:60)
        at org.glassfish.appclient.client.acc.ACCModulesManager.prepareHabitat(ACCModulesManager.java:147)
        at org.glassfish.appclient.client.acc.ACCModulesManager.initialize(ACCModulesManager.java:81)
        at org.glassfish.appclient.client.acc.AppClientContainerBuilder.prepareHabitatAndNaming(AppClientContainerBuilder.java:192)
        at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:152)
        at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:141)
        at org.glassfish.appclient.client.AppClientFacade.createContainerForJWSLaunch(AppClientFacade.java:469)
        at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:428)
        at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:256)
        at org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:83)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.javaws.Launcher.executeApplication(Unknown Source)
        at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
        at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
        at com.sun.javaws.Launcher.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[Message sent by forum member 'inar' (ian.jones_at_rocketsoftware.com)]

http://forums.java.net/jive/thread.jspa?messageID=382127