Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couchdb 2.3 changed the purge_seq field in the DbInfo response to be a string. This now throws java.lang.NumberFormatException #73

Open
simon-temple opened this issue Feb 8, 2019 · 5 comments

Comments

@simon-temple
Copy link

simon-temple commented Feb 8, 2019

Maybe need to add purge_seq getter on DbInfo class that returns seq as String

Here's the stack trace:

jvm 1 | com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: "0-g1AAAABXeJzLYWBgYMpgTmEQTM4vTc5ISXLIyU9OzMnILy7JAUnlsQBJhgYg9R8IshIZ8KhNZEiqhyjKAgBm5Rxs"
jvm 1 | at com.google.gson.internal.bind.TypeAdapters$11.read(TypeAdapters.java:306)
jvm 1 | at com.google.gson.internal.bind.TypeAdapters$11.read(TypeAdapters.java:296)
jvm 1 | at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
jvm 1 | at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
jvm 1 | at com.google.gson.Gson.fromJson(Gson.java:927)
jvm 1 | at com.google.gson.Gson.fromJson(Gson.java:865)
jvm 1 | at org.lightcouch.CouchDbClientBase.get(CouchDbClientBase.java:553)
jvm 1 | at org.lightcouch.CouchDbContext.info(CouchDbContext.java:113)

@nasava
Copy link

nasava commented Jul 3, 2019

Hi Simon, I discovered the same issue for myself with CouchDB 2.3.1 and lightcouch 0.2.0. Did you find a workaround or did you switch to another lib?

The lightcouch project seems pretty inactive ...

@lightcouch
Copy link
Owner

Hi,

fyi, a new release of lightcouch is rolling now for the compatibility with CouchDB 2.3

best regards

@chrisinmtown
Copy link

Will the new release be ready soon? I don't see any commits newer than 2017, am I blind?

@lightcouch
Copy link
Owner

lightcouch commented Sep 23, 2019

Apologies. The owner of the project was na. A new release ships today.
Regards

Repository owner deleted a comment from jjrodrig Sep 23, 2019
@jjrodrig
Copy link

Sorry, but I dont understand why you have deleted my comment.
I think that it is helpful for any one to know that there is a solution for this issue in another fork while you publish a new release with the fix.
Also, It could be helpfull for you as you can get the change from there if you whish.

serge-rider added a commit to dbeaver/LightCouch that referenced this issue Jul 31, 2020
serge-rider added a commit to dbeaver/LightCouch that referenced this issue Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants