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

IndexOutOfBoundsException in serviceability/sa/ClhsdbFindPC.java#id0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 16
    • hotspot

      ----------System.err:(17/1221)----------
      java.lang.RuntimeException: Test ERROR java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
      at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:155)
      at ClhsdbFindPC.main(ClhsdbFindPC.java:167)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
      at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:118)
      ... 7 more

      From this code:

                  String[] parts = output.split("LingeredAppWithTrivialMain.main");
                  String[] tokens = parts[1].split(" ");

      so looks like the split failed, most likely due to the output being empty.

            Unassigned Unassigned
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: