-
Bug
-
Resolution: Fixed
-
Minor
-
-
2.151, 2.150.1
Class hudson.cli.CLI opens several threads for different purposes. One is the "input reader" to store internally the standard input. In case of an abrupt or quick ending of the CLI command (-auth option not provided when it's necessary, for example) and the standard input is large, it might not be entirely read, throwing an unexpected warning message and error trace:
WARNING: null
java.io.IOException: Stream is closed
at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConnection.java:3530)
at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:3504)
at java.io.DataOutputStream.writeInt(DataOutputStream.java:197)
at hudson.cli.PlainCLIProtocol$EitherSide.send(PlainCLIProtocol.java:180)
at hudson.cli.PlainCLIProtocol$EitherSide.send(PlainCLIProtocol.java:187)
at hudson.cli.PlainCLIProtocol$EitherSide$1.write(PlainCLIProtocol.java:207)
at hudson.cli.CLI$5.run(CLI.java:721)
Although the CLI ends with no error, this message should not be displayed since it's indicating an undesired situation.
- links to