Exception in change tracker java.io.EOFException


#1

Hi All,

I am getting following error can you please suggest what can be the root cause for this :

Sep 19, 2017 9:29:31 PM com.couchbase.lite.util.SystemLogger w
WARNING: ChangeTracker: ChangeTracker{http://...:4984/databasename, LongPoll, @65f7d667}: Exception in change tracker
java.io.EOFException
at okio.RealBufferedSource.require(RealBufferedSource.java:59)
at okio.RealBufferedSource.readHexadecimalUnsignedLong(RealBufferedSource.java:284)
at okhttp3.internal.http.Http1xStream$ChunkedSource.readChunkSize(Http1xStream.java:441)
at okhttp3.internal.http.Http1xStream$ChunkedSource.read(Http1xStream.java:422)
at okio.RealBufferedSource$1.read(RealBufferedSource.java:386)
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.util.zip.GZIPInputStream.read(Unknown Source)
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.loadMore(UTF8StreamJsonParser.java:180)
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._skipWSOrEnd2(UTF8StreamJsonParser.java:2777)
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._skipWSOrEnd(UTF8StreamJsonParser.java:2772)
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:652)
at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:443)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringMap(MapDeserializer.java:473)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:330)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:25)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3560)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2646)
at com.couchbase.lite.replicator.ChangeTracker.runLoop(ChangeTracker.java:371)
at com.couchbase.lite.replicator.ChangeTracker.run(ChangeTracker.java:246)
at java.lang.Thread.run(Unknown Source)

Regards
Pankaj Sharma


#2

This issue might be related with

It seems the response body is truncated?


#3

Is there any work around for this? I am using SG 1.4.1 and CB 4.6.2.


#4

Hi @pankaj.sharma,
First, we need to reproduce this problem or figure out the root cause.
Do you have the reproducible environment?
Thanks,
Hideki


#5

I will retry and let you know. because there was a document I had in which there were 80 attachments. May be that has created the issue.