While testing the labs for one of our course a week or two back, I ran into the following error. A null pointer exception when an EJB 3 client is deployed. There are no errors in the source code.
Warning: Could not find file /export/home/student/sges-v3/glassfish/domains/domain1/generated/xml/EJB31/EJB31Client.jar to copy.
Copying 1 file to /export/home/student/solutions/mod02_sessions/EJB31/dist
Copying 4 files to /export/home/student/solutions/mod02_sessions/EJB31/dist/EJB31Client
Copying 1 file to /export/home/student/solutions/mod02_sessions/EJB31/dist/EJB31Client
java.lang.NullPointerException
at org.glassfish.appclient.client.acc.ACCLogger$1.run(ACCLogger.java:149)
at java.security.AccessController.doPrivileged(Native Method)
at org.glassfish.appclient.client.acc.ACCLogger.reviseLogger(ACCLogger.java:146)
at org.glassfish.appclient.client.acc.ACCLogger.init(ACCLogger.java:93)
at org.glassfish.appclient.client.acc.ACCLogger.init(ACCLogger.java:80)
at org.glassfish.appclient.client.AppClientFacade.createBuilder(AppClientFacade.java:360)
at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:247)
at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Java Result: 1
When you look on the app server, EJB31Client.jar is, in fact, in the wrong place. It turns out that this is a bug with GlassFish V3 and Java 6 update 18. To solve the problem, drop back to Java 6 update 17 or upgrade to GlassFish 3.0.1 when it becomes available.
For more information see the following links.
No comments:
Post a Comment