8000 java.lang.IllegalArgumentException: Cannot override built-in adapter for class com.google.gson.JsonObject with gson 2.11.x · Issue #82 · lightcouch/LightCouch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
java.lang.IllegalArgumentException: Cannot override built-in adapter for class com.google.gson.JsonObject with gson 2.11.x  #82
Open
@jamesnetherton

Description

@jamesnetherton

The framework my project uses upgraded gson to 2.11.0. This results in an IllegalArgumentException being thrown from CouchDbClientBase.initGson:

Caused by: java.lang.IllegalArgumentException: Cannot override built-in adapter for class com.google.gson.JsonObject
	at com.google.gson.GsonBuilder.registerTypeAdapter(GsonBuilder.java:714)
	at org.lightcouch.CouchDbClientBase.initGson(CouchDbClientBase.java:699)
	at org.lightcouch.CouchDbClientBase.<init>(CouchDbClientBase.java:95)
	at org.lightcouch.CouchDbClient.<init>(CouchDbClient.java:119)

There was a similar issue reported in the Apache Camel project:

https://issues.apache.org/jira/browse/CAMEL-20800

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0