java.io.InvalidObjectException: ObjectTable org.jboss.as.ejb3.remote.protocol.versionone.ProtocolV1ObjectTable cannot find an object for object index 1

hivmr.com | 5 months ago
  1. 0

    db:: 2.89::Stackoverflow error in org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject 9a

    hivmr.com | 5 months ago
    java.io.InvalidObjectException: ObjectTable org.jboss.as.ejb3.remote.protocol.versionone.ProtocolV1ObjectTable cannot find an object for object index 1
  2. 0

    Hazelcast Serializer Error when using a ITopic<Throwable>

    Google Groups | 6 years ago | sselvia
    java.io.InvalidObjectException: cannot read back reference to unshared object
  3. 0

    Exception when submitting a distributed task via a HazelcastClient

    Google Groups | 7 years ago | sselvia
    java.lang.RuntimeException: java.io.InvalidObjectException: cannot read back ref erence to unshared object
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    It seems that when using composite-id for a class (EmbeddedComponentType), the session factory is serialized together with data read from the database. This causes a problem when the data is transported from an application server to a client, as the session factory cannot (and shouldn't) be restored on the client. The result is an InvalidObjectException, see below. The attached test case recreates the problem by reading instances from the database and storing them in serialized form. Another test method reads the serialized data, and fails with an InvalidObjectException. Two separate test runs are needed (one for writing the serialized data, and one for reading), to ensure that the previously used session factory isn't available when reading the serialized data. The class MyOrder uses a composite-id, and is one-to-many associated with the OrderLine class which is the one loaded from the database in the test case. With older versions of Hibernate (like 3.5.5) the test passes, probably because old versions was able to restore the session factory on the client. {code} java.io.InvalidObjectException: Could not find a SessionFactory [uuid=12758cfe-1277-43aa-b784-bac5915b3486,name=null] at org.hibernate.internal.SessionFactoryImpl.locateSessionFactoryOnDeserialization(SessionFactoryImpl.java:1781) at org.hibernate.internal.SessionFactoryImpl.readResolve(SessionFactoryImpl.java:1761) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1104) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1807) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at java.util.ArrayList.readObject(ArrayList.java:771) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at y.domain.TestOrderLine.testRead(TestOrderLine.java:29) {code}

    Hibernate JIRA | 3 years ago | Olav Mork Bjørnås
    java.io.InvalidObjectException: Could not find a SessionFactory [uuid=12758cfe-1277-43aa-b784-bac5915b3486,name=null]
  6. 0

    Exception when submitting a distributed task via a HazelcastClient

    Google Groups | 7 years ago | sselvia
    java.io.InvalidObjectException: cannot read back reference to unshared object

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.InvalidObjectException

      ObjectTable org.jboss.as.ejb3.remote.protocol.versionone.ProtocolV1ObjectTable cannot find an object for object index 1

      at org.jboss.as.ejb3.remote.protocol.versionone.ProtocolV1ObjectTable.readObject()
    2. JBoss Application Server: EJB Subsystem
      ProtocolV1ObjectTable.readObject
      1. org.jboss.as.ejb3.remote.protocol.versionone.ProtocolV1ObjectTable.readObject(ProtocolV1ObjectTable.java:61)
      1 frame
    3. JBoss Marshalling River
      RiverObjectInputStream.defaultReadObject
      1. org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351)
      2. org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
      3. org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1673)
      4. org.jboss.marshalling.river.RiverObjectInputStream.defaultReadObject(RiverObjectInputStream.java:73)
      4 frames
    4. JBoss EJB client
      EJBLocator.readObject
      1. org.jboss.ejb.client.EJBLocator.readObject(EJBLocator.java:209)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_b147-icedtea]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_b147-icedtea]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_b147-icedtea]
      4. java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_b147-icedtea]
      4 frames
    6. JBoss Marshalling API
      SerializableClass.callReadObject
      1. org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:211)[jboss-marshalling-1.3.4.GA.jar:1.3.4.GA]
      1 frame
    7. JBoss Marshalling River
      RiverUnmarshaller.doReadObject
      1. org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1576)
      2. org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1553)
      3. org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1231)
      4. org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
      5. org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
      5 frames
    8. JBoss Marshalling API
      AbstractObjectInput.readObject
      1. org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)[jboss-marshalling-1.3.4.GA.jar:1.3.4.GA]
      1 frame
    9. JBoss Application Server: EJB Subsystem
      VersionOneProtocolChannelReceiver.handleMessage
      1. org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.processMessage(MethodInvocationMessageHandler.java:131)
      2. org.jboss.as.ejb3.remote.protocol.versionone.VersionOneProtocolChannelReceiver.handleMessage(VersionOneProtocolChannelReceiver.java:147)
      2 frames
    10. JBoss Remoting
      RemoteConnectionChannel$5.run
      1. org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:409)[jboss-remoting-3.2.0.CR8.jar:3.2.0.CR8]
      1 frame
    11. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_b147-icedtea]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_b147-icedtea]
      3. java.lang.Thread.run(Thread.java:722)[:1.7.0_b147-icedtea]
      3 frames