java.io.IOException: chunked stream ended unexpectedly

Jenkins JIRA | andreyevbr | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    While trying to start a build remotely with CLI and authenticate with MS-AD credentials we receive this error on client: {code} $ java -jar ./hudson-cli.jar -s http://hudsonserver build -s teste --username myuser --password 'mypass' java.lang.NullPointerException at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:40) at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:34) at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351) at java.util.TreeMap.getEntry(TreeMap.java:322) at java.util.TreeMap.get(TreeMap.java:255) at hudson.util.CopyOnWriteMap.get(CopyOnWriteMap.java:89) at hudson.model.Hudson.getItem(Hudson.java:1945) at hudson.model.AbstractProject.findNearest(AbstractProject.java:1722) at hudson.cli.handlers.AbstractProjectOptionHandler.parseArguments(AbstractProjectOptionHandler.java:54) at org.kohsuke.args4j.CmdLineParser.parseArgument(CmdLineParser.java:435) at hudson.cli.CLICommand.main(CLICommand.java:177) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) {code} And this on server (with --debug=9): {code} [Winstone 2010/09/08 17:43:42] - RHPool: Releasing handler thread - used: 2 unused: 3 [Winstone 2010/09/08 17:43:42] - Thread entering wait state Sep 8, 2010 5:43:42 PM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel HTTP full-duplex channel e0008b4b-c601-4543-a830-7de8a0afc83a java.io.IOException: chunked stream ended unexpectedly at hudson.util.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:225) at hudson.util.ChunkedInputStream.nextChunk(ChunkedInputStream.java:197) at hudson.util.ChunkedInputStream.read(ChunkedInputStream.java:120) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:875) {code} We use authorization mode is "Matrix-based security".

    Jenkins JIRA | 7 years ago | andreyevbr
    java.io.IOException: chunked stream ended unexpectedly
  2. 0

    While trying to start a build remotely with CLI and authenticate with MS-AD credentials we receive this error on client: {code} $ java -jar ./hudson-cli.jar -s http://hudsonserver build -s teste --username myuser --password 'mypass' java.lang.NullPointerException at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:40) at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:34) at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351) at java.util.TreeMap.getEntry(TreeMap.java:322) at java.util.TreeMap.get(TreeMap.java:255) at hudson.util.CopyOnWriteMap.get(CopyOnWriteMap.java:89) at hudson.model.Hudson.getItem(Hudson.java:1945) at hudson.model.AbstractProject.findNearest(AbstractProject.java:1722) at hudson.cli.handlers.AbstractProjectOptionHandler.parseArguments(AbstractProjectOptionHandler.java:54) at org.kohsuke.args4j.CmdLineParser.parseArgument(CmdLineParser.java:435) at hudson.cli.CLICommand.main(CLICommand.java:177) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) {code} And this on server (with --debug=9): {code} [Winstone 2010/09/08 17:43:42] - RHPool: Releasing handler thread - used: 2 unused: 3 [Winstone 2010/09/08 17:43:42] - Thread entering wait state Sep 8, 2010 5:43:42 PM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel HTTP full-duplex channel e0008b4b-c601-4543-a830-7de8a0afc83a java.io.IOException: chunked stream ended unexpectedly at hudson.util.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:225) at hudson.util.ChunkedInputStream.nextChunk(ChunkedInputStream.java:197) at hudson.util.ChunkedInputStream.read(ChunkedInputStream.java:120) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:875) {code} We use authorization mode is "Matrix-based security".

    Jenkins JIRA | 7 years ago | andreyevbr
    java.io.IOException: chunked stream ended unexpectedly
  3. 0

    [JENKINS-20128] HTTP two-way remoting does not work (jenkins-cli.jar without JNLP) - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    java.io.IOException: Protocol violation: Unexpected single newline character in chunk size
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins users - Jenkins Windows Slave loses connection immediately

    nabble.com | 2 years ago
    java.io.IOException: Unexpected termination of the channel
  6. 0

    Jenkins users - Unexpected termination of the channel

    nabble.com | 7 months ago
    hudson.util.IOException2: remote file operation failed: > /tmp/hudson377856323220069295.sh at > hudson.remoting.Channel@131242f:platypus-GPSCI-slave

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      chunked stream ended unexpectedly

      at hudson.util.ChunkedInputStream.getChunkSizeFromInputStream()
    2. Hudson
      ChunkedInputStream.read
      1. hudson.util.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:225)
      2. hudson.util.ChunkedInputStream.nextChunk(ChunkedInputStream.java:197)
      3. hudson.util.ChunkedInputStream.read(ChunkedInputStream.java:120)
      3 frames
    3. Java RT
      ObjectInputStream.readObject
      1. java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
      2. java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
      3. java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
      4. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
      5. java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      5 frames
    4. Hudson :: Remoting Layer
      Channel$ReaderThread.run
      1. hudson.remoting.Channel$ReaderThread.run(Channel.java:875)
      1 frame