Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6944188

ThreadMXBean/ThreadStateTest.java fails intermittently

XMLWordPrintable

        TESTFAIL:java/lang/management/ThreadMXBean/ThreadStateTest.java

        I was doing JDK7-B87 baseline testing on my VMware WinXP client
        and the following SDK/JDK test failed:

            java/lang/management/ThreadMXBean/ThreadStateTest.java

        Here is a snippet from the .jtr file:

        ----------System.out:(6/202)----------
        Waiting myThread to go blocked.
          myThread is going to block.
        Waiting myThread to go waiting.
          myThread is going to wait.
        Waiting myThread to go timed waiting.
          myThread is going to timed wait.
        ----------System.err:(18/1126)----------
        java version "1.7.0-ea"
        Java(TM) SE Runtime Environment (build 1.7.0-ea-b87)
        Java HotSpot(TM) Server VM (build 18.0-b01, compiled mode)

        java.lang.RuntimeException: MyThread expected to be blocked on lock [ThreadStateTest$Lock@c8f6f8] but got null.
                at ThreadStateTest.checkLockInfo(ThreadStateTest.java:177)
                at ThreadStateTest.main(ThreadStateTest.java:91)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:613)
                at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
                at java.lang.Thread.run(Thread.java:717)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: MyThread expected to be blocked on lock [ThreadStateTest$Lock@c8f6f8] but got null.
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: MyThread expected to be blocked on lock [ThreadStateTest$Lock@c8f6f8] but got null.
        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: MyThread expected to be blocked on lock [ThreadStateTest$Lock@c8f6f8] but got null.


        test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: MyThread expected to be blocked on lock [ThreadStateTest$Lock@c8f6f8] but got null.

              mchung Mandy Chung (Inactive)
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: