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

REGRESSION: JCK1.5 api/java_lang/management/ThreadMBean/index.html#TrdMBean fail

    Details

      Description



      Name: iaR10016 Date: 10/01/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b21
                       (not reproducible with JDK1.5.0-b20,
                        the test is not valid for JDK1.4.2)
      JCK : JCK1.5-runtime (b04)
      Platform[s] : all
      switch/Mode : default
      JCK test owner: http://javaweb.eng/jck/usr/owners.jto
      Falling test : api/java_lang/management/ThreadMBean/index.html#TrdMBean[getThreadMBean0012]

      JCK1.5-runtime api/java_lang/management/ThreadMBean/index.html#TrdMBean test fails
      with java.lang.IllegalArgumentException using JDK1.5.0-b21.

      Please, see also bug 4911671.

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15/tests/api/java_lang/management/ThreadMBean/TrdMBeanTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b21/jck15/sparc/sol10_sparc_gnome_client_d64_enablesystemassertions_linux-8/workDir/api/java_lang/management/ThreadMBean/index_TrdMBean.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables):
      --- script start ---
      #!/bin/bash
      #KOORI_ONESTOP is your path to koori.sfbay/onestop (/net/koori/onestop, /java/re)
      KOORI_ONESTOP="/java/re"
      #JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
      JCK="$KOORI_ONESTOP/jck/1.5/promoted/beta/b04/binaries/JCK-runtime-15"
      #JDK="/net/linux-15/export/home/java/jdk1.5.0/sparc"
      JDK="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b21/binaries/solaris-sparc"
      export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
      $JDK/bin/java -showversion javasoft.sqe.tests.api.java.lang.management.ThreadMBean.TrdMBeanTests -TestCaseID getThreadMBean0012
      --- script end ---

      Test output:
      ============
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b21)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b21, mixed mode)

      java.lang.IllegalArgumentException: Invalid thread ID
           at sun.management.ThreadImpl.getThreadCpuTime0(Native Method)
           at sun.management.ThreadImpl.getThreadCpuTime(ThreadImpl.java:209)
           at javasoft.sqe.tests.api.java.lang.management.ThreadMBean.TrdMBeanTests$3.run(TrdMBeanTests.java:295)
           at javasoft.sqe.jck.lib.SecurityTestRunner.runTestWithAllPermissions(SecurityTestRunner.java:216)
           at javasoft.sqe.tests.api.java.lang.management.ThreadMBean.TrdMBeanTests.getThreadMBean0012(TrdMBeanTests.java:308)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
           at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
           at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
           at javasoft.sqe.tests.api.java.lang.management.ThreadMBean.TrdMBeanTests.main(TrdMBeanTests.java:45)
      getThreadMBean0012: Failed. Test case throws exception: java.lang.IllegalArgumentException: Invalid thread ID
      Using AllPermissionSM.
      STATUS:Failed.test cases: 1; all failed; first test case failure: getThreadMBean0012

      Specific machine info:
      ======================
      Hostname: linux-19
      OS: Windows 2003
      Hostname: linux-2
      OS: Suse Linux 8.2 (GNOME2)
      Hostname: linux-8
      OS: Solaris 10 (sparc) (GNOME)

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                irasunw Ira Ira (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: