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

SerialMarshaller fails with Java 8

XMLWordPrintable

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

      SerialMarshaller produces the error :

      java.lang.IllegalStateException: putFields() may not be called now
      at org.jboss.marshalling.serial.SerialObjectOutputStream.putFields(SerialObjectOutputStream.java:232)
      at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1404)
      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.callWriteObject(SerializableClass.java:284)
      at org.jboss.marshalling.serial.SerialMarshaller.writeSerialData(SerialMarshaller.java:293)
      at org.jboss.marshalling.serial.SerialMarshaller.doWriteObject(SerialMarshaller.java:273)
      at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58)
      at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:111)
      at org.jboss.test.marshalling.SimpleMarshallerTests$46.runWrite(SimpleMarshallerTests.java:1344)
      at org.jboss.test.marshalling.TestBase.runReadWriteTest(TestBase.java:105)
      at org.jboss.test.marshalling.SimpleMarshallerTests.testConcurrentHashMap(SimpleMarshallerTests.java:1342)
      Caused by: an exception which occurred:
      in object java.util.concurrent.ConcurrentHashMap@ca6147a4

      when using Java 8

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

                Created:
                Updated:
                Resolved: