In the recent 3.1.1 build, GlassFish seems to be throwing NPE when it is shutdown without undeploying the remote EJB.
(This is a side effect of
It is simple to reproduce:
0. Install latest 3.1.1 nightly build of GlassFish.
1. Start GlassFish
2. Deploy the remoteejb.jar (attachment is in
3. Stop GlassFish
4. Check the server.log for exception.
Alternatively, you can also download the attached Test.java and keep it under /tmp. Also download remoteejb.jar (attachment from
GLASSFISH-16546) and keep it under /tmp/. Set S1AS_HOME to 3.1.1 installation.
Compile & run the test like this:
javac -cp $S1AS_HOME/lib/embedded/glassfish-embedded-static-shell.jar Test.java
java -cp $S1AS_HOME/lib/embedded/glassfish-embedded-static-shell.jar:. Test