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

sun/tools/jstatd/TestJstatdUsage.java failed due to java.io.IOException: Stream Closed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • 9
    • 9
    • core-svc

      sun/tools/jstatd/TestJstatdUsage.java failed due to java.io.IOException: Stream Closed

      This is probably due to nightly test server being restarted, but reporting just in case.

      ----------System.err:(34/1840)----------
      java.io.IOException: Stream Closed
      at java.io.FileInputStream.readBytes(Native Method)
      at java.io.FileInputStream.read(FileInputStream.java:255)
      at java.lang.UNIXProcess$DeferredCloseInputStream.read(UNIXProcess.java:660)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      at java.io.FilterInputStream.read(FilterInputStream.java:107)
      at jdk.testlibrary.StreamPumper.run(StreamPumper.java:112)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:265)
      at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:191)
      at java.lang.Thread.run(Thread.java:745)
       stdout: [];
       stderr: []
       exitValue = 1

      java.lang.RuntimeException: 'usage: jstatd [-nr] [-p port] [-n rminame]' missing from stdout/stderr

      at jdk.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:104)
      at TestJstatdUsage.testUsage(TestJstatdUsage.java:48)
      at TestJstatdUsage.main(TestJstatdUsage.java:38)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:745)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: 'usage: jstatd [-nr] [-p port] [-n rminame]' missing from stdout/stderr

      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'usage: jstatd [-nr] [-p port] [-n rminame]' missing from stdout/stderr

            jbachorik Jaroslav BachorĂ­k
            gziemski Gerard Ziemski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: