JDK-8316593 : java/lang/System/LoggerFinder/ tests fail with java.lang.RuntimeException: Received: null
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 22
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux_oracle
  • CPU: x86_64
  • Submitted: 2023-09-20
  • Updated: 2023-09-25
Related Reports
Relates :  
Relates :  
Description
log extract

----------messages:(6/247)----------
command: main RecursiveLoadingTest
reason: User specified action: run main/othervm RecursiveLoadingTest 
started: Tue Sep 19 00:20:40 UTC 2023
Mode: othervm [/othervm specified]
finished: Tue Sep 19 00:20:41 UTC 2023
elapsed time (seconds): 0.464
----------configuration:(0/0)----------
----------System.out:(2/462)----------
SimpleLogRecord[message=Logger finder service load sleep value: 86, instant=2023-09-19T00:20:41.106346556Z, loggerName=dummy, level=INFO, params=null, resourceBundleName=null, seqNumber=0, sourceClassName=null, methodName=null, thrown=null]
SimpleLogRecord[message=in main, instant=2023-09-19T00:20:41.106446826Z, loggerName=main, level=INFO, params=null, resourceBundleName=null, seqNumber=1, sourceClassName=RecursiveLoadingTest, methodName=main, thrown=null]
----------System.err:(28/1813)----------
Sep 19, 2023 12:20:41 AM RecursiveLoadingTest main
INFO: in main
Sep 19, 2023 12:20:41 AM dummy
INFO: Logger finder service load sleep value: 86
Sep 19, 2023 12:20:41 AM jdk.internal.logger.BootstrapLogger$LogEvent log
INFO: Logger finder service created
java.lang.RuntimeException: Received: null
	at RecursiveLoadingTest.assertEquals(RecursiveLoadingTest.java:85)
	at RecursiveLoadingTest$SimpleLogRecord.check(RecursiveLoadingTest.java:72)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at RecursiveLoadingTest.main(RecursiveLoadingTest.java:50)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1570)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Received: null
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Received: null
Comments
JDK22 b14
25-09-2023

It looks as if the build on which this was observed didn't have JDK-8315696 (and thus probably JDK-8316087 either) - but this particular failure points more at JDK-8315696. The line numbers in the stack trace don't match the latest version of the test present in the mainline.
25-09-2023