java.lang.Exception: JUnit test failure

JDK Bug System | Calvin Cheung | 4 months ago
  1. 0

    Observed during JPRT testing of current jdk9/dev TEST: compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java TEST JDK: /opt/jprt/T/T1/221737.daholme/testproduct/solaris_sparcv9_5.11-fastdebug # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/opt/jprt/T/P1/221737.daholme/s/hotspot/src/share/vm/runtime/sharedRuntime.cpp:1781), pid=25354, tid=41 # assert(sig_bt[member_arg_pos] == T_OBJECT) failed: dispatch argument must be an object # # JRE version: Java(TM) SE Runtime Environment (9.0) (fastdebug build 9-internal+0-2016-07-17-221737.daholme.jdk9-dev) # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 9-internal+0-2016-07-17-221737.daholme.jdk9-dev, mixed mode, tiered, jvmci, compressed oops, g1 gc, solaris-sparc) # Core dump will be written. Default location: /opt/jprt/T/T1/221737.daholme/s/hotspot/testoutput/hotspot_fast_compiler_2/JTwork/scratch/core or core.25354 # Crash occurs on Solaris x86, Solaris sparc, Windows x64. On Linux x64 test fails with out crash: TEST: compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java TEST JDK: /opt/jprt/T/P1/221737.daholme/testproduct/linux_x64_3.8-fastdebug JavaTest Message: JUnit Failure: resolveConcreteMethodTest(jdk.vm.ci.runtime.test.TestResolvedJavaType): expected:<HotSpotMethod<MethodHandle.invoke(Object[])>> but was:<null> java.lang.Exception: JUnit test failure at com.sun.javatest.regtest.JUnitAction$JUnitRunner.main(JUnitAction.java:128) at com.sun.javatest.regtest.JUnitAction$JUnitRunner.main(JUnitAction.java:87) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:533) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) No failures seen on 32-bit.

    JDK Bug System | 5 months ago | David Holmes
    java.lang.Exception: JUnit test failure
  2. 0

    This failure was seen during jdk9/hs nightly test on Aug 3, 2016. ----------System.err:(131/8965)---------- Looks like we're stuck running test: testWriteAfterReadLock(StampedLockTest) ------ stacktrace dump start ------ "Thread-2101" daemon prio=5 Id=2887 RUNNABLE at java.util.concurrent.locks.StampedLock.acquireWrite(java.base@9-internal/StampedLock.java:1165) at java.util.concurrent.locks.StampedLock.writeLock(java.base@9-internal/StampedLock.java:385) at StampedLockTest$8.realRun(StampedLockTest.java:468) at JSR166TestCase$CheckedRunnable.run(JSR166TestCase.java:1389) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) "ForkJoinPool.commonPool-worker-1" daemon prio=5 Id=2657 WAITING on java.util.concurrent.ForkJoinPool@d26478 at jdk.internal.misc.Unsafe.park(java.base@9-internal/Native Method) - waiting on java.util.concurrent.ForkJoinPool@d26478 at java.util.concurrent.locks.LockSupport.park(java.base@9-internal/LockSupport.java:192) at java.util.concurrent.ForkJoinPool.runWorker(java.base@9-internal/ForkJoinPool.java:1645) at java.util.concurrent.ForkJoinWorkerThread.run(java.base@9-internal/ForkJoinWorkerThread.java:158) "CompletableFutureDelayScheduler" daemon prio=5 Id=1612 TIMED_WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@d3897d at jdk.internal.misc.Unsafe.park(java.base@9-internal/Native Method) - waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@d3897d at java.util.concurrent.locks.LockSupport.parkNanos(java.base@9-internal/LockSupport.java:232) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@9-internal/AbstractQueuedSynchronizer.java:2104) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-internal/ScheduledThreadPoolExecutor.java:1131) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-internal/ScheduledThreadPoolExecutor.java:848) at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@9-internal/ThreadPoolExecutor.java:1083) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPoolExecutor.java:1143) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadPoolExecutor.java:632) ... "MainThread" prio=5 Id=13 TIMED_WAITING on java.lang.Thread@9496ca at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.Thread@9496ca at java.lang.Thread.join(java.base@9-internal/Thread.java:1360) at JSR166TestCase.awaitTermination(JSR166TestCase.java:1362) at JSR166TestCase.awaitTermination(JSR166TestCase.java:1379) at StampedLockTest.testWriteAfterReadLock(StampedLockTest.java:476) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) ... "Common-Cleaner" daemon prio=8 Id=10 TIMED_WAITING on java.lang.ref.ReferenceQueue$Lock@18581f3 at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.ref.ReferenceQueue$Lock@18581f3 at java.lang.ref.ReferenceQueue.remove(java.base@9-internal/ReferenceQueue.java:151) at jdk.internal.ref.CleanerImpl.run(java.base@9-internal/CleanerImpl.java:148) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) at jdk.internal.misc.InnocuousThread.run(java.base@9-internal/InnocuousThread.java:122) "Attach Listener" daemon prio=5 Id=5 RUNNABLE "main" prio=5 Id=1 WAITING on java.lang.Thread@a8b614 at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.Thread@a8b614 at java.lang.Thread.join(java.base@9-internal/Thread.java:1352) at java.lang.Thread.join(java.base@9-internal/Thread.java:1426) at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:74) ------ stacktrace dump end ------ junit.framework.AssertionFailedError: timed out waiting for thread to terminate ------ stacktrace dump start ------ "Thread-2101" daemon prio=5 Id=2887 RUNNABLE at java.lang.Thread.interrupted(java.base@9-internal/Thread.java:1043) at java.util.concurrent.locks.StampedLock.acquireWrite(java.base@9-internal/StampedLock.java:1158) at java.util.concurrent.locks.StampedLock.writeLock(java.base@9-internal/StampedLock.java:385) at StampedLockTest$8.realRun(StampedLockTest.java:468) at JSR166TestCase$CheckedRunnable.run(JSR166TestCase.java:1389) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) "ForkJoinPool.commonPool-worker-1" daemon prio=5 Id=2657 WAITING on java.util.concurrent.ForkJoinPool@d26478 at jdk.internal.misc.Unsafe.park(java.base@9-internal/Native Method) - waiting on java.util.concurrent.ForkJoinPool@d26478 at java.util.concurrent.locks.LockSupport.park(java.base@9-internal/LockSupport.java:192) at java.util.concurrent.ForkJoinPool.runWorker(java.base@9-internal/ForkJoinPool.java:1645) at java.util.concurrent.ForkJoinWorkerThread.run(java.base@9-internal/ForkJoinWorkerThread.java:158) "CompletableFutureDelayScheduler" daemon prio=5 Id=1612 TIMED_WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@d3897d at jdk.internal.misc.Unsafe.park(java.base@9-internal/Native Method) - waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@d3897d at java.util.concurrent.locks.LockSupport.parkNanos(java.base@9-internal/LockSupport.java:232) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@9-internal/AbstractQueuedSynchronizer.java:2104) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-internal/ScheduledThreadPoolExecutor.java:1131) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-internal/ScheduledThreadPoolExecutor.java:848) at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@9-internal/ThreadPoolExecutor.java:1083) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPoolExecutor.java:1143) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadPoolExecutor.java:632) ... "MainThread" prio=5 Id=13 RUNNABLE at sun.management.ThreadImpl.dumpThreads0(java.management@9-internal/Native Method) at sun.management.ThreadImpl.dumpAllThreads(java.management@9-internal/ThreadImpl.java:479) at JSR166TestCase.dumpTestThreads(JSR166TestCase.java:1032) at JSR166TestCase.threadRecordFailure(JSR166TestCase.java:686) at JSR166TestCase.threadFail(JSR166TestCase.java:765) at JSR166TestCase.awaitTermination(JSR166TestCase.java:1368) at JSR166TestCase.awaitTermination(JSR166TestCase.java:1379) at StampedLockTest.testWriteAfterReadLock(StampedLockTest.java:476) ... "Common-Cleaner" daemon prio=8 Id=10 TIMED_WAITING on java.lang.ref.ReferenceQueue$Lock@18581f3 at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.ref.ReferenceQueue$Lock@18581f3 at java.lang.ref.ReferenceQueue.remove(java.base@9-internal/ReferenceQueue.java:151) at jdk.internal.ref.CleanerImpl.run(java.base@9-internal/CleanerImpl.java:148) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) at jdk.internal.misc.InnocuousThread.run(java.base@9-internal/InnocuousThread.java:122) "Attach Listener" daemon prio=5 Id=5 RUNNABLE "main" prio=5 Id=1 WAITING on java.lang.Thread@a8b614 at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.Thread@a8b614 at java.lang.Thread.join(java.base@9-internal/Thread.java:1352) at java.lang.Thread.join(java.base@9-internal/Thread.java:1426) at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:74) ------ stacktrace dump end ------ JavaTest Message: JUnit Failure: testWriteAfterReadLock(StampedLockTest): timed out waiting for thread to terminate java.lang.Exception: JUnit test failure at com.sun.javatest.regtest.JUnitAction$JUnitRunner.main(JUnitAction.java:128) at com.sun.javatest.regtest.JUnitAction$JUnitRunner.main(JUnitAction.java:87) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:533) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) JavaTest Message: Test threw exception: java.lang.Exception: JUnit test failure JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.Exception: JUnit test failure

    JDK Bug System | 4 months ago | Calvin Cheung
    java.lang.Exception: JUnit test failure
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Bug ID: JDK-4476687 java.net.SocketException: Too many open files

    java.com | 5 months ago
    java.lang.Exception: Failure

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Exception

      JUnit test failure

      at com.sun.javatest.regtest.JUnitAction$JUnitRunner.main()
    2. com.sun.javatest
      JUnitAction$JUnitRunner.main
      1. com.sun.javatest.regtest.JUnitAction$JUnitRunner.main(JUnitAction.java:128)
      2. com.sun.javatest.regtest.JUnitAction$JUnitRunner.main(JUnitAction.java:87)
      2 frames