Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests to show that de/serialization of ConcurrentHashMap fails #130

Closed
wants to merge 3 commits into from

Conversation

pzygielo
Copy link
Contributor

@pzygielo pzygielo commented Nov 19, 2022

This results in

  <testcase classname="javax.rmi.CORBA.serialization.SerializationTest" name="readRandom" time="0.0" />
  <testcase classname="javax.rmi.CORBA.serialization.SerializationTest" name="readHashMap" time="0.001" />
  <testcase classname="javax.rmi.CORBA.serialization.SerializationTest" name="readConcurrentHashMap" time="0.01">
    <error message="WARNING: 00810011: Exception from readValue on ValueHandler in CDRInputStream" type="org.omg.CORBA.MARSHAL">org.omg.CORBA.MARSHAL: WARNING: 00810011: Exception from readValue on ValueHandler in CDRInputStream  vmcid: OMG  minor code: 11 completed: Maybe
	at com.sun.proxy.$Proxy3.valuehandlerReadException(Unknown Source)
	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:797)
	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:892)
	at com.sun.corba.ee.impl.encoding.CDRInputObject.read_value(CDRInputObject.java:497)
	at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:2085)
	at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2327)
	at com.sun.corba.ee.impl.io.IIOPInputStream.defaultReadObjectDelegate(IIOPInputStream.java:493)
	at com.sun.corba.ee.impl.io.InputStreamHook.defaultReadObject(InputStreamHook.java:205)
	at java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1438)
	at com.sun.corba.ee.impl.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1758)
	at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1112)
	at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:322)
	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:283)
	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:249)
	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:790)
	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:892)
	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:710)
	at com.sun.corba.ee.impl.encoding.CDRInputObject.read_value(CDRInputObject.java:491)
	at javax.rmi.CORBA.serialization.SerializationTest.run(SerializationTest.java:764)
	at test.Test.runTestClass(Test.java:1110)
	at test.Test.run(Test.java:827)
	at test.Test.runTestFile(Test.java:1017)
	at test.Test.run(Test.java:834)
	at test.Test.main(Test.java:308)
Caused by: java.lang.NullPointerException
	at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:949)
	at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:322)
	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:283)
	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:249)
	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:790)
</error>
  </testcase>

@pzygielo pzygielo closed this Nov 19, 2022
@pzygielo pzygielo deleted the chm branch November 19, 2022 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant