Problems with CouchDB 2.3.0

35 views
Skip to first unread message

Andreas Schneider

unread,
Dec 23, 2018, 6:18:22 AM12/23/18
to LightCouch

couchDbClient.context().info(); throws an exception:


java.lang.NumberFormatException: For input string: "0-g1AAAAFTeJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMeC5BkeACk_gNBViIDQbUHIGrvE6N2AUTtfmkDUzsevNikBSCbVE3RrkgNIXTxhdQogdfYE1SUyJMlDFGUBAD9sXo4"

com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: "0-g1AAAAFTeJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMeC5BkeACk_gNBViIDQbUHIGrvE6N2AUTtfmkDUzsevNikBSCbVE3RrkgNIXTxhdQogdfYE1SUyJMlDFGUBAD9sXo4"

at com.google.gson.internal.bind.TypeAdapters$11.read(TypeAdapters.java:306) ~[gson-2.8.5.jar:?]

at com.google.gson.internal.bind.TypeAdapters$11.read(TypeAdapters.java:296) ~[gson-2.8.5.jar:?]

at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) ~[gson-2.8.5.jar:?]

at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) ~[gson-2.8.5.jar:?]

at com.google.gson.Gson.fromJson(Gson.java:927) ~[gson-2.8.5.jar:?]

at com.google.gson.Gson.fromJson(Gson.java:865) ~[gson-2.8.5.jar:?]

at org.lightcouch.CouchDbClientBase.get(CouchDbClientBase.java:553) ~[lightcouch-0.2.0.jar:?]

at org.lightcouch.CouchDbContext.info(CouchDbContext.java:113) ~[lightcouch-0.2.0.jar:?]

        ...


Is there a fix available?

Andreas Schneider

unread,
Dec 23, 2018, 6:39:58 AM12/23/18
to LightCouch
FYI:
The field purgeSeq in DouchDbInfo.java needs to be of type String

Juanjo Rodriguez

unread,
Dec 23, 2018, 5:49:10 PM12/23/18
to LightCouch
You could try with this fork https://github.com/IndabaConsultores/LightCouch

As it seems there is not activity in the main project we decided to fork it. We are actively maintaining it.

This version contains the change you proposed.

<dependency>
	<groupId>com.github.IndabaConsultores</groupId>
	<artifactId>lightCouch</artifactId>
	<version>0.2.5</version>
</dependency>
Reply all
Reply to author
Forward
0 new messages