1 Reply Latest reply on Jul 13, 2007 7:18 AM by Ron Piterman

    NPE in java.io.ObjectStreamClass.getClassSignature on lookup

    Ron Piterman Newbie

      Hi,

      I am trying to get jndi lookup to work and have the following exception on the lookup:

      java.lang.NullPointerException:
       at java.io.ObjectStreamClass.getClassSignature(ObjectStreamClass.java:1402)
       at java.io.ObjectStreamField.<init>(ObjectStreamField.java:119)
       at java.io.ObjectStreamClass.getDefaultSerialFields(ObjectStreamClass.java:1568)
       at java.io.ObjectStreamClass.getSerialFields(ObjectStreamClass.java:1484)
       at java.io.ObjectStreamClass.access$800(ObjectStreamClass.java:52)
       at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:410)
       at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
       at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:297)
       at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
       at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
       at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
       at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)


      I use jboss 4.0.5-GA with BEA JRockit 1.5.0_08

      On the client classpath are
      javassist 3.3
      jboss-ejb3-client 4.0.5-GA
      jbossall-client 4.0.5-GA

      I could not find anything similar in google or in this forum -

      The session bean I am trying to access :

      @Stateless()
      @Remote( TestSession.class )
      public class TestSessionImpl implements TestSession {
       public String test() {
       return "hello";
       }
      }


      and the remote interface:

      public interface TestSession {
       public String test();
      }


      these are deployed as a single ejb3-jar in the deploy directory of jboss.

      using the jmx console I can see the session-bean bound in the jndiview.

      Any idees ?

      Cheers,
      Ron