Exit Due to Bad Chunk Exception (BigCouch / Doc With Attachment) #124

Closed
zackbloom opened this Issue Jun 6, 2011 · 3 comments

Comments

Projects
None yet
3 participants

I'm getting the following error when I try to index a BigCouch DB in which the docs have attachments (might be irrelevant, but didn't see an error with the same docs on regular CouchDB, or with BigCouch with no attachments):

2011-06-06 03:33:20,558 WARN [faxes] Exiting due to exception.
org.apache.http.MalformedChunkCodingException: Bad chunk header
at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:231)
at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:183)
at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:152)
at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:138)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:282)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:324)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:176)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:153)
at java.io.BufferedReader.readLine(BufferedReader.java:316)
at java.io.BufferedReader.readLine(BufferedReader.java:379)
at com.github.rnewson.couchdb.lucene.DatabaseIndexer.handleResponse(DatabaseIndexer.java:301)
at com.github.rnewson.couchdb.lucene.DatabaseIndexer.handleResponse(DatabaseIndexer.java:74)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:735)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:709)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:700)
at com.github.rnewson.couchdb.lucene.DatabaseIndexer.run(DatabaseIndexer.java:449)
at java.lang.Thread.run(Thread.java:679)

Owner

rnewson commented Jun 6, 2011

This is a bigcouch error, it appears to be sending a malformed chunk encoded response.

rnewson closed this Jun 6, 2011

What was the fix to this ?

Owner

rnewson commented Jul 16, 2014

@tejavadali I believe the problem was wholly in BigCouch and not couchdb-lucene, which is why the ticket is closed. BigCouch itself has not had a release in the interim but CouchDB 2.0 will be clustered and is the replacement for BigCouch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment