Bug 1074546
| Summary: | SimpleMarshallerTests.testConcurrentHashMap fails on Java 8 | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Ladislav Thon <lthon> |
| Component: | Remoting | Assignee: | Panagiotis Sotiropoulos <psotirop> |
| Status: | CLOSED WONTFIX | QA Contact: | Ladislav Thon <lthon> |
| Severity: | unspecified | Docs Contact: | Russell Dickenson <rdickens> |
| Priority: | unspecified | ||
| Version: | 6.3.0 | CC: | cdewolf, psotirop |
| Target Milestone: | --- | ||
| Target Release: | EAP 6.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-02-25 11:39:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1104190 | ||
|
Description
Ladislav Thon
2014-03-10 14:18:38 UTC
Is there an upstream bug? It is now: https://issues.jboss.org/browse/JBMAR-160 This problem does not affect EAP or any other internal consumers of jboss-marshalling, including WildFly (upstream) and JDG/Infinispan. This only affects building of jboss-marshalling itself on JDK 8. SimpleMarshallerTests.testConcurrentHashMap passes the test with openjdk version 1.8.0_11 Failing test is SimpleMarshallerTests.testExternalizableWithFollowingObjects Error : testExternalizableWithFollowingObjects(org.jboss.test.marshalling.SimpleMarshallerTests) Time elapsed: 0.007 sec <<< FAILURE! java.io.StreamCorruptedException: Unexpected byte found when reading an object: 10 at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:755) at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) at org.jboss.test.marshalling.SimpleMarshallerTests$65.runRead(SimpleMarshallerTests.java:2696) at org.jboss.test.marshalling.TestBase.runReadWriteTest(TestBase.java:116) at org.jboss.test.marshalling.SimpleMarshallerTests.testExternalizableWithFollowingObjects(SimpleMarshallerTests.java:2673) Root of issue found. Not a Java 8 issue. Tested with java version "1.8.0_20" (build 1.8.0_20-b26) and openjdk version 1.8.0_11 testConcurrentHashMap still fails. testExternalizableWithFollowingObjects is fixed. testConcurrentHashMap using riverTestMarshallerProvider pass testConcurrentHashMap using serialTestMarshallerProvider fail Two issues: 1. Error produced during the Serial Marshalling (FIXED) : 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 2. Error produced during the Serial Unmarshalling (NOT FIXED YET - Related to JDK 8) : 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) Panagiotis Sotiropoulos <panossot> updated the status of jira JBMAR-170 to Closed PR sent also against JBOSS marshalling master branch: https://github.com/jboss-remoting/jboss-marshalling/pull/27 |