JDK-8062320 : sun/tools/jstatd/TestJstatdUsage.java failed due to java.io.IOException: Stream Closed
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-10-28
  • Updated: 2017-07-26
  • Resolved: 2014-10-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Description
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

Comments
Already fixed in jdk repo
30-10-2014