SEVERE: I/O error in channel Chunked connection to http://example:8080/cli

28 views
Skip to first unread message

Christopher Antony Raj

unread,
Apr 7, 2017, 8:19:06 AM4/7/17
to Jenkins Users
Hi, 

I am trying to delete the old build from cli using the command

java -jar jenkins-cli.jar -s http://example.com:8080 delete-builds myproject '25-26' --username $user --password $pwd

but getting these errors :

java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:806)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
        at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
        at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
        at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)

hudson.remoting.RequestAbortedException: java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A
        at hudson.remoting.Request.abort(Request.java:303)
        at hudson.remoting.Channel.terminate(Channel.java:863)
        at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:92)
        at ......remote call to Chunked connection to http://example.com:8080/cli(Native Method)
        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1433)
        at hudson.remoting.Request.call(Request.java:172)
        at hudson.remoting.Channel.call(Channel.java:796)
        at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:252)
        at hudson.remoting.$Proxy1.waitForProperty(Unknown Source)
        at hudson.remoting.Channel.waitForRemoteProperty(Channel.java:1275)
        at hudson.cli.CLI.<init>(CLI.java:141)
        at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
        at hudson.cli.CLI._main(CLI.java:473)
        at hudson.cli.CLI.main(CLI.java:384)
Caused by: java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:806)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
        at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
        at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
        at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
Reply all
Reply to author
Forward
0 new messages