org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:268) 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:227) 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:186) 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) 15:06:50.370 [DEBUG] [TestEventLogger] at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) 15:06:50.370 [DEBUG] [TestEventLogger] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)

Stack Overflow | kiltek | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Gradle and Grails - test Task execution different behaviour on different platform

    Stack Overflow | 8 months ago | kiltek
    org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:268) 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:227) 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:186) 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) 15:06:50.370 [DEBUG] [TestEventLogger] at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) 15:06:50.370 [DEBUG] [TestEventLogger] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)

    Root Cause Analysis

    1. org.apache.http.ConnectionClosedException

      Premature end of chunk coded message body: closing chunk expected 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:268) 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:227) 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:186) 15:06:50.370 [DEBUG] [TestEventLogger] at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) 15:06:50.370 [DEBUG] [TestEventLogger] at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) 15:06:50.370 [DEBUG] [TestEventLogger] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)

      at sun.nio.cs.StreamDecoder.read()
    2. Java RT
      InputStreamReader.read
      1. sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
      2. java.io.InputStreamReader.read(InputStreamReader.java:184)
      2 frames
    3. Maven
      HTMLConfiguration.parse
      1. org.cyberneko.html.HTMLScanner$CurrentEntity.load(HTMLScanner.java:1867)
      2. org.cyberneko.html.HTMLScanner.skipNewlines(HTMLScanner.java:1602)
      3. org.cyberneko.html.HTMLScanner$ContentScanner.scanCharacters(HTMLScanner.java:2334)
      4. org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2066)
      5. org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:920)
      6. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
      7. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
      7 frames
    4. Groovy
      XmlSlurper.parse
      1. groovy.util.XmlSlurper.parse(XmlSlurper.java:207)
      2. groovy.util.XmlSlurper.parse(XmlSlurper.java:260)
      2 frames
    5. Groovy HTTP
      ParserRegistry.parseHTML
      1. groovyx.net.http.ParserRegistry.parseHTML(ParserRegistry.java:251)
      1 frame
    6. Groovy
      Closure.call
      1. groovy.lang.Closure.call(Closure.java:426)
      2. groovy.lang.Closure.call(Closure.java:442)
      2 frames