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)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

Stack trace

  • 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(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputStreamReader.java:184) at org.cyberneko.html.HTMLScanner$CurrentEntity.load(HTMLScanner.java:1867) at org.cyberneko.html.HTMLScanner.skipNewlines(HTMLScanner.java:1602) at org.cyberneko.html.HTMLScanner$ContentScanner.scanCharacters(HTMLScanner.java:2334) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2066) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:920) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at groovy.util.XmlSlurper.parse(XmlSlurper.java:207) at groovy.util.XmlSlurper.parse(XmlSlurper.java:260) at groovyx.net.http.ParserRegistry.parseHTML(ParserRegistry.java:251) at groovy.lang.Closure.call(Closure.java:426) at groovy.lang.Closure.call(Closure.java:442)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.