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

java.lang.ArrayIndexOutOfBoundsException thrown for /demo/management/FullThreadDump

XMLWordPrintable

    • x86
    • linux_suse_sles_9

      Target platform: SLES 9 sp3 beta 1. It can reproduce on Windows and Solaris platforms.
                build: J2SE 6.0-build 59 beta
                bundle: rpm package

      Problem: This is a regression. JDK 6 defines a new API to dump the information about monitors and java.util.concurrent ownable synchronizers.

      Steps to reproduce:
      - Install JDK 6.0-beta build 59 with the rpm package onto the system test

      Note: Assume that we don't know about the new API to dump the information about monitors and concurrent ownable synchronizers that JDK 6.0-beta defines and execute the command with Local Monitoring as we ussually did in JDK 6.0 build 58 or before.
      - <installed_JDK-b59-dir>/demo/management/FullThreadDump # java -jar FullThreadDump.jar

      Expect result:
      Print out the usage message: "Usage: java FullThreadDump <hostname>:<port>"

      Actual result:
      Print out the usage message above AND the exception:
      "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
      at FullThreadDump.main(FullThreadDump.java:96)"

      Note: It seems that the usage "Usage: java FullThreadDump <hostname>:<port>" is the incorrect usage for Local Monitoring because to run the demo as a Local Monitoring, the correct command is "java -cp <JDK_HOME>/demo/management/FullThreadDump/FullThreadDump.jar Deadlock"

      Detail Log:
      =====================
      rio:/usr/java/jdk1.6.0/demo/management/FullThreadDump # uname -a
      Linux rio 2.6.5-7.216-smp #1 SMP Wed Sep 28 11:44:19 UTC 2005 i686 i686 i386 GNU/Linux

      rio:/usr/java/jdk1.6.0/demo/management/FullThreadDump # cat /etc/*rel*
      SUSE LINUX Enterprise Server 9 (i586)
      VERSION = 9
      PATCHLEVEL = 3
      LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32"
      cat: /etc/lsb-release.d: Is a directory

      rio:/usr/java/jdk1.6.0/demo/management/FullThreadDump # java -version
      java version "1.6.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b59)
      Java HotSpot(TM) Client VM (build 1.6.0-beta-b59, mixed mode, sharing)

      rio:/usr/java/jdk1.6.0/demo/management/FullThreadDump # java -jar FullThreadDump.jar
      Usage: java FullThreadDump <hostname>:<port>
      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
      at FullThreadDump.main(FullThreadDump.java:96)

            Unassigned Unassigned
            mtvo Hang Vo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: