users@glassfish.java.net

Re: JNDI Lookup to SessionBean fails

From: <glassfish_at_javadesktop.org>
Date: Wed, 05 May 2010 13:42:17 PDT

here is the full stack trace:

java.lang.NullPointerException
        at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:297)
        at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at Main.<init>(Main.java:46)
        at Main.main(Main.java:9)
javax.naming.NamingException: Lookup failed for 'java:global/AsyncEjbEAR/AsyncEjb/AsyncBean!de.example.asyncejb.AsyncBeanRemote' in SerialContext [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext [Root exception is java.lang.NullPointerException]]
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:442)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at Main.<init>(Main.java:46)
        at Main.main(Main.java:9)
Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext [Root exception is java.lang.NullPointerException]
        at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:276)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
        ... 3 more
Caused by: java.lang.NullPointerException
        at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:297)
        at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
        ... 4 more
Exception in thread "main" java.lang.RuntimeException: javax.naming.NamingException: Lookup failed for 'java:global/AsyncEjbEAR/AsyncEjb/AsyncBean!de.example.asyncejb.AsyncBeanRemote' in SerialContext [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext [Root exception is java.lang.NullPointerException]]
        at Main.<init>(Main.java:53)
        at Main.main(Main.java:9)
Caused by: javax.naming.NamingException: Lookup failed for 'java:global/AsyncEjbEAR/AsyncEjb/AsyncBean!de.example.asyncejb.AsyncBeanRemote' in SerialContext [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext [Root exception is java.lang.NullPointerException]]
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:442)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at Main.<init>(Main.java:46)
        ... 1 more
Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext [Root exception is java.lang.NullPointerException]
        at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:276)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
        ... 3 more
Caused by: java.lang.NullPointerException
        at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:297)
        at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
        ... 4 more

as ide i am using the bundled eclipse version (http://download.java.net/glassfish/eclipse/)
the client is a simple java class with a main method with a java project. this project references an ejb client project containing the glassfish libs and the remote interface for the session ejb.
[Message sent by forum member 'brezn8']

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