Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-170

SerialUnarshaller fails with Java 8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 1.4.9.Final
    • 1.4.8.Final
    • Serial
    • None

    Description

      SerialUnmarshaller produces the error :

      testConcurrentHashMap(org.jboss.test.marshalling.SimpleMarshallerTests) Time elapsed: 7 sec <<< FAILURE!
      java.io.StreamCorruptedException: Unexpected lead byte 0
      at org.jboss.marshalling.serial.SerialUnmarshaller.badLeadByte(SerialUnmarshaller.java:526)
      at org.jboss.marshalling.serial.SerialUnmarshaller.doReadObject(SerialUnmarshaller.java:335)
      at org.jboss.marshalling.serial.BlockUnmarshaller.readObject(BlockUnmarshaller.java:136)
      at org.jboss.marshalling.serial.BlockUnmarshaller.readObject(BlockUnmarshaller.java:122)
      at org.jboss.marshalling.MarshallerObjectInputStream.readObjectOverride(MarshallerObjectInputStream.java:53)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
      at java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1443)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:320)
      at org.jboss.marshalling.serial.PlainDescriptor.doReadObject(PlainDescriptor.java:94)
      at org.jboss.marshalling.serial.PlainDescriptor.readSerial(PlainDescriptor.java:68)
      at org.jboss.marshalling.serial.SerialUnmarshaller.doReadSerialObject(SerialUnmarshaller.java:348)
      at org.jboss.marshalling.serial.SerialUnmarshaller.doReadObject(SerialUnmarshaller.java:288)
      at org.jboss.marshalling.serial.SerialUnmarshaller.doReadObject(SerialUnmarshaller.java:74)
      at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
      at org.jboss.test.marshalling.SimpleMarshallerTests$46.runRead(SimpleMarshallerTests.java:1350)
      at org.jboss.test.marshalling.TestBase.runReadWriteTest(TestBase.java:116)
      at org.jboss.test.marshalling.SimpleMarshallerTests.testConcurrentHashMap(SimpleMarshallerTests.java:1342)

      when using Java 8

      Attachments

        Issue Links

          Activity

            People

              psotirop@redhat.com Panagiotis Sotiropoulos
              psotirop@redhat.com Panagiotis Sotiropoulos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: