java.io.IOException: chunked stream ended unexpectedly

Jenkins JIRA | andreyevbr | 6 years ago
  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 | 6 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 | 6 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 | 11 months 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

    IO errors integrating two Java webapps via http

    Stack Overflow | 2 years ago | Slash
    java.io.IOException: chunked stream ended unexpectedly
  6. 0

    Next run is working fine. org.tmatesoft.svn.core.SVNException: svn: REPORT /repos/bcp/!svn/vcc/default failed at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:298) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:283) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:271) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport(DAVConnection.java:283) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.runReport(DAVRepository.java:1282) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.update(DAVRepository.java:830) at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:564) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:401) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:135) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:787) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:768) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:752) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2030) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) 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) Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: REPORT /repos/bcp/!svn/vcc/default failed at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200) at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:146) at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:89) ... 23 more Caused by: org.tmatesoft.svn.core.SVNException: svn: REPORT request failed on '/repos/bcp/!svn/vcc/default' svn: chunked stream ended unexpectedly at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:662) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:292) ... 22 more Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: REPORT request failed on '/repos/bcp/!svn/vcc/default' at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:660) ... 23 more Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: chunked stream ended unexpectedly at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:101) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:426) ... 23 more Caused by: java.io.IOException: chunked stream ended unexpectedly at org.tmatesoft.svn.core.internal.util.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:108) at org.tmatesoft.svn.core.internal.util.ChunkedInputStream.nextChunk(ChunkedInputStream.java:92) at org.tmatesoft.svn.core.internal.util.ChunkedInputStream.read(ChunkedInputStream.java:64) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158) at java.io.InputStreamReader.read(InputStreamReader.java:167) at org.tmatesoft.svn.core.internal.io.dav.http.XMLReader.read(XMLReader.java:39) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:776) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:741) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:218) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:379) ... 23 more FATAL: null java.lang.NullPointerException at java.util.ArrayList.addAll(ArrayList.java:497) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:742) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:684) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:568) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:457) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)

    Jenkins JIRA | 5 years ago | Cees Bos
    org.tmatesoft.svn.core.SVNException: svn: REPORT /repos/bcp/!svn/vcc/default failed

    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