0 Replies Latest reply on Apr 11, 2005 9:19 PM by dayjah

    javax.naming.CommunicationException

    dayjah

      Hi,

      I have a weird situation.

      I have two jboss instances;

      Instance 1 = jboss 4.0.0
      Instance 2 = jboss 4.0.2RC1

      Instance two supports my chosen DS as the default DS so it is my preference to use this (at least whilst I work on getting Instance 1 to support postgresql as the defaultds). However at the moment preference is not important - I have sucessfully deployed some code - no errors in deployment on either instance.

      However when letting a client connect to Instance 2 I get the following set of exceptions;

      javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
       java.io.InvalidClassException: org.jnp.interfaces.MarshalledValuePair; local class incompatible: stream classdesc serialVersionUID = -3403843515711139134, local class serialVersionUID = -6485622724173581497]
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:648)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
       at javax.naming.InitialContext.lookup(InitialContext.java:347)
       at styejb21.day05.client.SignOnClient.main(SignOnClient.java:35)
      Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
       java.io.InvalidClassException: org.jnp.interfaces.MarshalledValuePair; local class incompatible: stream classdesc serialVersionUID = -3403843515711139134, local class serialVersionUID = -6485622724173581497
       at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:164)
       at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529)
       ... 3 more
      Caused by: java.io.InvalidClassException: org.jnp.interfaces.MarshalledValuePair; local class incompatible: stream classdesc serialVersionUID = -3403843515711139134, local class serialVersionUID = -6485622724173581497
       at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
       at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:297)
       at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:146)
       ... 5 more
      


      Some reading showed up that it is an issue with the jbossall-client.jar that I am using - however it is the version that shipped with this jboss not some older version. If I try the client code connecting to instance 1 with either the client.jar from instance1 or instance2 there is absolutely no problem.

      Does anyone know why the client.jar distributed with 4.0.2RC1 cannot talk to jnp on jboss 4.0.2RC1?

      Thanks,