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

SparkExamples24H.java failed due to "Exception: java.lang.reflect.InvocationTargetException"

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 15, 16
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux

      Description

      The following test failed in the JDK15 CI:

      applications/sparkexamples/SparkExamples24H.java

      The log file doesn't want to load via the browser.
      Downloaded the artifacts (2.8GB)...
      Unzipping workdir.zip expanded to 51GB... beware...

      Found the following error snippets in glue.process.err:

      [stress.process.err] Iteration done: Spark at Sun May 24 19:13:08 UTC 2020
      [stress.process.err] Iteration start: Spark at Sun May 24 19:13:08 UTC 2020
      [stress.process.err] --------------------------------------------------------------------------------
      [stress.process.err] SparkStressModule got uncaught exception in execute at Sun May 24 19:14:27 UTC 2020 (1590347667387)
      [stress.process.err] java.lang.reflect.InvocationTargetException
      [stress.process.err] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [stress.process.err] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      [stress.process.err] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [stress.process.err] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      [stress.process.err] at applications.kitchensink.process.stress.modules.SparkStressModule.runExample(SparkStressModule.java:112)
      [stress.process.err] at applications.kitchensink.process.stress.modules.SparkStressModule.execute(SparkStressModule.java:92)
      [stress.process.err] at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:81)
      [stress.process.err] Caused by: java.lang.NullPointerException
      [stress.process.err] at org.apache.spark.examples.JavaStatusTrackerDemo.main(JavaStatusTrackerDemo.java:66)
      [stress.process.err] ... 7 more
      [stress.process.err] --------------------------------------------------------------------------------
      [stress.process.err] Unexpected Exception in thread SparkStressModule.
      [stress.process.err] java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      [stress.process.err] at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:92)
      [stress.process.err] Caused by: java.lang.reflect.InvocationTargetException
      [stress.process.err] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [stress.process.err] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      [stress.process.err] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [stress.process.err] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      [stress.process.err] at applications.kitchensink.process.stress.modules.SparkStressModule.runExample(SparkStressModule.java:112)
      [stress.process.err] at applications.kitchensink.process.stress.modules.SparkStressModule.execute(SparkStressModule.java:92)
      [stress.process.err] at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:81)
      [stress.process.err] Caused by: java.lang.NullPointerException
      [stress.process.err] at org.apache.spark.examples.JavaStatusTrackerDemo.main(JavaStatusTrackerDemo.java:66)
      [stress.process.err] ... 7 more
      ================================================================================
      java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
              at applications.kitchensink.process.picker.modules.Toolkit.getSystemMetrics(MonitorPickerModule.java:122)
              at applications.kitchensink.process.picker.modules.MonitorPickerModule.execute(MonitorPickerModule.java:63)
              at applications.kitchensink.process.picker.modules.PickerModule.run(PickerModule.java:140)
              at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
              at java.base/java.util.Arrays$ArrayList.get(Arrays.java:4164)
              at applications.kitchensink.process.picker.modules.Toolkit$LinuxToolkit.setMetrics(MonitorPickerModule.java:231)
              at applications.kitchensink.process.picker.modules.Toolkit.getSystemMetrics(MonitorPickerModule.java:119)
              ... 3 more
      ================================================================================

      Found the following error snippets in stress.process.err:

      Iteration start: Spark at Sun May 24 19:13:08 UTC 2020
      --------------------------------------------------------------------------------
      SparkStressModule got uncaught exception in execute at Sun May 24 19:14:27 UTC 2020 (1590347667387)
      java.lang.reflect.InvocationTargetException
              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 applications.kitchensink.process.stress.modules.SparkStressModule.runExample(SparkStressModule.java:112)
              at applications.kitchensink.process.stress.modules.SparkStressModule.execute(SparkStressModule.java:92)
              at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:81)
      Caused by: java.lang.NullPointerException
              at org.apache.spark.examples.JavaStatusTrackerDemo.main(JavaStatusTrackerDemo.java:66)
              ... 7 more
      --------------------------------------------------------------------------------
      Unexpected Exception in thread SparkStressModule.
      java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
              at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:92)
      Caused by: java.lang.reflect.InvocationTargetException
              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 applications.kitchensink.process.stress.modules.SparkStressModule.runExample(SparkStressModule.java:112)
              at applications.kitchensink.process.stress.modules.SparkStressModule.execute(SparkStressModule.java:92)
              at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:81)
      Caused by: java.lang.NullPointerException
              at org.apache.spark.examples.JavaStatusTrackerDemo.main(JavaStatusTrackerDemo.java:66)
              ... 7 more

        Attachments

          Activity

            People

            • Assignee:
              lmesnik Leonid Mesnik
              Reporter:
              dcubed Daniel Daugherty
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: