2 Replies Latest reply on May 24, 2005 5:12 AM by lihua kuo

    javax.naming.CommunicationException

    lihua kuo Newbie

      hi,All:
      I have one problem that puzzled me several days.Please help me!
      client code(HA-JNDI properties):
      Properties p = new Properties();
      p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
      p.put(Context.URL_PKG_PREFIXES,"jboss.naming:org.jnp.interfaces");
      p.put(Context.PROVIDER_URL,"localhost:1100"); //HA-JNDI port


      I got errors as follows:
      [java] test
      [java] javax.naming.InitialContext@19ee1ac
      [java] Begin lookup EJBjndiName =MapSession.JDBCSession
      [java] javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.util.id.GUID; local class incompatible: stream classdesc serialVersionUID = 6926421946503004889, local class serialVersionUID = 3289509836244263718]
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
      [java] at javax.naming.InitialContext.lookup(Unknown Source)
      [java] at MapSession.TestClustering.test(Unknown Source)
      [java] at MapSession.TestClustering.main(Unknown Source)
      [java] Caused by: java.io.InvalidClassException: org.jboss.util.id.GUID; local class incompatible: stream classdesc serialVersionUID = 6926421946503004889, local class serialVersionUID = 3289509836244263718
      [java] at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
      [java] at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
      [java] at java.io.ObjectInputStream.readClassDesc(Unknown Source)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject0(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject(Unknown Source)
      [java] at org.jboss.invocation.InvokerInterceptor.readExternal(InvokerInterceptor.java:125)
      [java] at java.io.ObjectInputStream.readExternalData(Unknown Source)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject0(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject(Unknown Source)
      [java] at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:66)
      [java] at java.io.ObjectInputStream.readExternalData(Unknown Source)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject0(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject(Unknown Source)
      [java] at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:66)
      [java] at java.io.ObjectInputStream.readExternalData(Unknown Source)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject0(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject(Unknown Source)
      [java] at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:66)
      [java] at java.io.ObjectInputStream.readExternalData(Unknown Source)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject0(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject(Unknown Source)
      [java] at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:111)
      [java] at java.io.ObjectInputStream.readExternalData(Unknown Source)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject0(Unknown Source)
      [java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
      [java] at java.io.ObjectInputStream.readSerialData(Unknown Source)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject0(Unknown Source)
      [java] at java.io.ObjectInputStream.readObject(Unknown Source)
      [java] at java.rmi.MarshalledObject.get(Unknown Source)
      [java] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:552)
      [java] ... 4 more

      I appreciate very much for your help!