-
Bug
-
Resolution: Not a Bug
-
Medium
-
Frankfurt Release
-
None
-
None
After moving to OpenJDK 11 and other associated upgrades, two of the unit tests fail in an odd way. There is one test in DR_PubResourceTest.java and DR_NodeResourceTest.java.
In both cases the following error is generated:
Exception in thread "HTTP-Dispatcher" java.lang.AssertionError: State is not RESPONSE (REQUEST)
at jdk.httpserver/sun.net.httpserver.ServerImpl.responseCompleted(ServerImpl.java:814)
at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.handleEvent(ServerImpl.java:297)
at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:356)
at java.base/java.lang.Thread.run(Thread.java:830)
When I try to debug this, it appears that the actual test is successful. i.e. the expected value used in the assertEquals() function is correct. But upon return from the Test function, something seems to go wrong. Likely some incompatibility in the test framework libraries.
Until somebody can figure it out, I've commented out the test cases.