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

Dacapo24H.java failed "NullPointerException: Cannot invoke "java.io.OutputStream.flush()" because "this.log" is null"

    Details

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

      Description

      The following test failed in the JDK16 CI:

      applications/dacapo/Dacapo24H.java

      Here's a snippet from the log file:

      [stress.process.err] DacapoRunner: Finished and group destroyed for benchmark: eclipse
      [stress.process.err] DacapoRunner: java.awt.Toolkit.getDefaultToolkit(): sun.awt.HeadlessToolkit@341b210c
      [stress.process.err] DacapoRunner: javax.xml.transform.TransformerFactory.newInstance(): com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl@7c2b6282
      [stress.process.err] DacapoRunner: Started benchmark: graphchi
      [stress.process.err] DacapoRunner: Still running after interruption for benchmark: graphchi
      [stress.process.err] DacapoRunner: java.awt.Toolkit.getDefaultToolkit(): sun.awt.HeadlessToolkit@341b210c
      [stress.process.err] DacapoRunner: javax.xml.transform.TransformerFactory.newInstance(): com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl@21cb89c9
      [stress.process.err] DacapoRunner: Started benchmark: biojava
      [stress.process.err] --------------------------------------------------------------------------------
      [stress.process.err] MBeanStressModule got uncaught exception in execute at Fri Jul 17 21:37:45 UTC 2020 (1595021865637)
       stdout: [];
       stderr: [jfr summary: file is empty '/opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a915416d-2475-446c-9ec5-de1a6631acf1/runs/f2e93ead-0220-4e2f-92dd-798a7b5f6c1a/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/jfr-files/external/ks_external12360268540928895634.jfr'
      ]
       exitValue = 1

      [Fri Jul 17 21:38:00 UTC 2020] (1595021880721) Picker module is about to shutdown
      Picker module expected time before shutdown for: Jcmd: 30s
      Picker module expected time before shutdown for: Jfr: 3m 20s
      Picker module expected time before shutdown for: Jstat: 5m
      Picker module expected time before shutdown for: Monitor: 1m
      Picker module expected time before shutdown for: NMT: 1m
      Picker module expected time before shutdown for: Perfmon: 5m
      Picker module finished at [Fri Jul 17 21:38:00 UTC 2020]: Jfr
      Picker module finished at [Fri Jul 17 21:38:00 UTC 2020]: Jcmd
      Picker module finished at [Fri Jul 17 21:38:00 UTC 2020]: Jstat
      Picker module finished at [Fri Jul 17 21:38:00 UTC 2020]: Monitor
      Picker module finished at [Fri Jul 17 21:38:00 UTC 2020]: Perfmon
      Picker module finished at [Fri Jul 17 21:38:00 UTC 2020]: NMT
      [Fri Jul 17 21:38:00 UTC 2020] (1595021880735) Picker module has been shutdown
      [Fri Jul 17 21:38:00 UTC 2020] (1595021880736) Stress process is about to shutdown
      WARNING: The process 22430 has already finished
      [Fri Jul 17 21:38:00 UTC 2020] (1595021880737) Stress process has been shutdown
      [Fri Jul 17 21:38:00 UTC 2020] Execution finished.
      [Fri Jul 17 21:38:00 UTC 2020] Analyzer failed with: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.flush()" because "this.log" is null
      at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:92)
      Caused by: java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.flush()" because "this.log" is null
      at org.dacapo.harness.TeeOutputStream.write(TeeOutputStream.java:106)
      at java.base/java.io.FilterOutputStream.write(FilterOutputStream.java:137)
      at java.base/java.io.PrintStream.write(PrintStream.java:568)
      at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:242)
      at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:321)
      at java.base/sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:110)
      at java.base/java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:181)
      at java.base/java.io.PrintStream.write(PrintStream.java:699)
      at java.base/java.io.PrintStream.print(PrintStream.java:863)
      at java.base/java.io.PrintStream.println(PrintStream.java:1031)
      at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:82)

      java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.flush()" because "this.log" is null
      at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:92)
      Caused by: java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.flush()" because "this.log" is null
      at org.dacapo.harness.TeeOutputStream.write(TeeOutputStream.java:106)
      at java.base/java.io.FilterOutputStream.write(FilterOutputStream.java:137)
      at java.base/java.io.PrintStream.write(PrintStream.java:568)
      at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:242)
      at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:321)
      at java.base/sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:110)
      at java.base/java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:181)
      at java.base/java.io.PrintStream.write(PrintStream.java:699)
      at java.base/java.io.PrintStream.print(PrintStream.java:863)
      at java.base/java.io.PrintStream.println(PrintStream.java:1031)
      at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:82)

      at applications.kitchensink.process.glue.Main.analyzeResults(Main.java:391)
      at applications.kitchensink.process.glue.Main.main(Main.java:198)
      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)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.flush()" because "this.log" is null
      at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:92)
      Caused by: java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.flush()" because "this.log" is null
      at org.dacapo.harness.TeeOutputStream.write(TeeOutputStream.java:106)
      at java.base/java.io.FilterOutputStream.write(FilterOutputStream.java:137)
      at java.base/java.io.PrintStream.write(PrintStream.java:568)
      at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:242)
      at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:321)
      at java.base/sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:110)
      at java.base/java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:181)
      at java.base/java.io.PrintStream.write(PrintStream.java:699)
      at java.base/java.io.PrintStream.print(PrintStream.java:863)
      at java.base/java.io.PrintStream.println(PrintStream.java:1031)
      at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:82)

      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.flush()" because "this.log" is null at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:92) Caused by: java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.flush()" because "this.log" is null at org.dacapo.harness.TeeOutputStream.write(TeeOutputStream.java:106) at java.base/java.io.FilterOutputStream.write(FilterOutputStream.java:137) at java.base/java.io.PrintStream.write(PrintStream.java:568) at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:242) at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:321) at java.base/sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:110) at java.base/java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:181) at java.base/java.io.PrintStream.write(PrintStream.java:699) at java.base/java.io.PrintStream.print(PrintStream.java:863) at java.base/java.io.PrintStream.println(PrintStream.java:1031) at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:82)
      ----------rerun:(39/7740)*----------

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dcubed Daniel Daugherty
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: