0 Replies Latest reply on Mar 16, 2006 3:38 PM by Nidhi Sobti

    error in SerializableToByteArrayConverter

    Nidhi Sobti Newbie

      Hello,

      I am inserting a serializable object into the ContextInstance. However, I get the following error when trying to read off this variable off the context.

      java.lang.RuntimeException: couldn't deserialize object
       at org.jbpm.context.exe.converter.SerializableToByteArrayConverter.revert(SerializableToByteArrayConverter.java:59)
       at org.jbpm.context.exe.VariableInstance.getValue(VariableInstance.java:123)
       at org.jbpm.context.exe.TokenVariableMap.getVariable(TokenVariableMap.java:221)
       at org.jbpm.context.exe.TokenVariableMap.getVariable(TokenVariableMap.java:92)
       at org.jbpm.context.exe.ContextInstance.getVariable(ContextInstance.java:125)
       at org.jbpm.context.exe.ContextInstance.getVariable(ContextInstance.java:113)
       at
      .
      .
      .
      .
      Caused by: java.io.EOFException
       at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2435)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1424)
       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.defaultReadFields(ObjectInputStream.java:1845)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
       at org.jbpm.context.exe.converter.SerializableToByteArrayConverter.revert(SerializableToByteArrayConverter.java:57)
       ... 48 more


      Has anyone seen this before, or fixed it?

      Thanks.