java.io.IOException: CRLF expected at end of chunk: 49/54

hc-httpclient-users | Khosro Asgharifard | 7 years ago
  1. 0

    HttpClient-User - HttpClient does not seem to correctly handle chunked response

    nabble.com | 5 months ago
    java.io.IOException: CRLF expected at end of chunk: 49/54
  2. 0

    Re: HttpClient does not seem to correctly handle chunked response

    hc-httpclient-users | 7 years ago | Khosro Asgharifard
    java.io.IOException: CRLF expected at end of chunk: 49/54
  3. 0

    [CLS-934] Infinite loop and IOException occures, when processing larger volume of data on cluster. - Javlin Issue Tracking

    javlin.eu | 5 months ago
    org.jetel.exception.JetelRuntimeException: java.io.IOException: CRLF expected at end of chunk: 0/100
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [BAM-14580] Artifact preparation failed due various network issues - Atlassian JIRA

    atlassian.com | 11 months ago
    java.io.IOException: CRLF expected at end of chunk: 52/48
  6. 0

    Not sure what this is, or why I just saw it now on my own machine (running via Maven, once), but it looks like this is still some issue with either streaming or some new[?] problem related to XFire. ------------------------------------------------------------------------------- Test set: org.mule.providers.soap.xfire.XFireWsdlCallTestCase ------------------------------------------------------------------------------- Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.486 sec <<< FAILURE! request wsdl with servlets (org.mule.providers.soap.xfire.XFireWsdlCallTestCase) Time elapsed: 10.816 sec <<< ERROR! org.mule.umo.transformer.TransformerException: Could not read InputStream. at org.mule.transformers.simple.ObjectToString.doTransform(ObjectToString.java:60) at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:257) at org.mule.impl.MuleMessage.getPayload(MuleMessage.java:171) at org.mule.impl.MuleMessage.getPayload(MuleMessage.java:120) at org.mule.impl.MuleMessage.getPayloadAsString(MuleMessage.java:276) at org.mule.impl.MuleMessage.getPayloadAsString(MuleMessage.java:249) at org.mule.providers.soap.xfire.XFireWsdlCallTestCase.testRequestWsdlWithServlets(XFireWsdlCallTestCase.java:91) 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:324) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:222) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:202) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) 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:324) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) 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:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) Caused by: java.io.IOException: CRLF expected at end of chunk: -1/-1 at org.apache.commons.httpclient.ChunkedInputStream.readCRLF(ChunkedInputStream.java:207) at org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:219) at org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:176) at java.io.FilterInputStream.read(FilterInputStream.java:111) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:127) at org.mule.impl.model.streaming.DelegatingInputStream.read(DelegatingInputStream.java:58) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) at org.apache.commons.io.IOUtils.copy(IOUtils.java:999) at org.mule.transformers.simple.ObjectToString.doTransform(ObjectToString.java:55) ... 34 more ... 34 more I will leave test enabled, but add this to the exclusions file commented out, so that we get a better idea of how often this fails.

    MuleSoft JIRA | 9 years ago | andrew cooke
    org.mule.umo.transformer.TransformerException: Could not read InputStream.

    1 unregistered visitors
    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

      CRLF expected at end of chunk: 49/54

      at org.apache.commons.httpclient.ChunkedInputStream.readCRLF()
    2. HttpClient
      ChunkedInputStream.close
      1. org.apache.commons.httpclient.ChunkedInputStream.readCRLF(ChunkedInputStream.java:207)
      2. org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:219)
      3. org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:176)
      4. org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:196)
      5. org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:369)
      6. org.apache.commons.httpclient.ChunkedInputStream.close(ChunkedInputStream.java:346)
      6 frames
    3. Java RT
      FilterInputStream.close
      1. java.io.FilterInputStream.close(FilterInputStream.java:155)
      1 frame
    4. HttpClient
      AutoCloseInputStream.close
      1. org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(AutoCloseInputStream.java:194)
      2. org.apache.commons.httpclient.AutoCloseInputStream.close(AutoCloseInputStream.java:158)
      2 frames
    5. Java RT
      InputStreamReader.close
      1. java.io.BufferedInputStream.close(BufferedInputStream.java:451)
      2. sun.nio.cs.StreamDecoder.implClose(StreamDecoder.java:358)
      3. sun.nio.cs.StreamDecoder.close(StreamDecoder.java:173)
      4. java.io.InputStreamReader.close(InputStreamReader.java:182)
      4 frames
    6. Jericho HTML Parser
      Source.<init>
      1. net.htmlparser.jericho.Util.getString(Unknown Source)
      2. net.htmlparser.jericho.Source.getString(Unknown Source)
      3. net.htmlparser.jericho.Source.<init>(Unknown Source)
      4. net.htmlparser.jericho.Source.<init>(Unknown Source)
      4 frames
    7. ir.ideacenter.biz
      NewsService$$FastClassByCGLIB$$fa1e5631.invoke
      1. ir.ideacenter.biz.service.NewsService.addNewNews(NewsService.java:116)
      2. ir.ideacenter.biz.service.NewsService$$FastClassByCGLIB$$fa1e5631.invoke(<generated>)
      2 frames
    8. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      1 frame
    9. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      2 frames
    10. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    11. Spring AOP
      Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)
      2 frames
    12. ir.ideacenter.biz
      MultiThreadedNewsCrawler$L2Task.run
      1. ir.ideacenter.biz.service.NewsService$$EnhancerByCGLIB$$a9589857.addNewNews(<generated>)
      2. ir.ideacenter.biz.service.fetcher.NewsFetchListener.contentLoaded(NewsFetchListener.java:65)
      3. ir.ideacenter.biz.crawler.AbstractCrawler.fireEvents(AbstractCrawler.java:56)
      4. ir.ideacenter.biz.crawler.MultiThreadedNewsCrawler$L2Task.run(MultiThreadedNewsCrawler.java:199)
      4 frames
    13. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:619)
      3 frames