1 Reply Latest reply on Nov 18, 2001 5:10 PM by Nitesh Varma

    Object Serialization problem

    Nitesh Varma Newbie

      Hello,

      I'm using JBoss 2.2.2. I'm experiencing object serialization problem on the client. The error says that Edge class in not serializable. However, it is serializable, and so are its associated classes (Node, Graph). I verified serialization/deserialization by writing an object to a file and reading it back. The stack-trace of the exception is as follows. Form the stack-trace, it doesn't seem like it is related to JBoss; however, I don't really know where to turn to. I'll appreciate any help/pointers.

      -------- stack-trace-----------
      java.lang.reflect.UndeclaredThrowableException: java.io.InvalidClassException: com.eidea.util.structure.Edge; is not Serializable
      at java.io.ObjectStreamClass.verifyInstanceDeserialization(ObjectStreamClass.java:1245)
      at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1192)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
      at java.util.TreeMap.buildFromSorted(TreeMap.java:1631)
      at java.util.TreeMap.buildFromSorted(TreeMap.java:1572)
      at java.util.TreeMap.readObject(TreeMap.java:1518)
      at java.lang.reflect.Method.invoke(Native Method)
      at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)
      at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
      at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
      at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
      at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:188)
      at $Proxy1.getRelated(Unknown Source)
      at com.eidea.bizmarc.util.connector.ejb.relationship.EJBRelationshipConnector.getRelated(EJBRelationshipConnector.java:315)
      at com.eidea.bizmarc.util.connector.relationship.test.BasicTest.main(BasicTest.java:136)