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

org.lightcouch:lightcouch not compatible with gson 2.11.0 #6148

Closed
jamesnetherton opened this issue Jun 4, 2024 · 2 comments
Closed

org.lightcouch:lightcouch not compatible with gson 2.11.0 #6148

jamesnetherton opened this issue Jun 4, 2024 · 2 comments
Labels
area/gson bug Something isn't working

Comments

@jamesnetherton
Copy link
Contributor

Bug description

Quarkus upgraded gson to 2.11.0. This seems to break the couchdb extension:

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)
	at org.apache.camel.component.couchdb.CouchDbEndpoint.createClient(CouchDbEndpoint.java:112)
	at org.apache.camel.component.couchdb.CouchDbEndpoint.createConsumer(CouchDbEndpoint.java:101)
	at org.apache.camel.impl.engine.DefaultRoute.gatherRootServices(DefaultRoute.java:670)
	at org.apache.camel.impl.engine.DefaultRoute.gatherServices(DefaultRoute.java:654)
	at org.apache.camel.impl.engine.DefaultRoute.initializeServices(DefaultRoute.java:225)
	at org.apache.camel.impl.engine.RouteService.doSetup(RouteService.java:150)
	at org.apache.camel.impl.engine.RouteService.setUp(RouteService.java:129)
	... 23 more

Also observed previously here:

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

@jamesnetherton jamesnetherton added bug Something isn't working area/couchdb labels Jun 4, 2024
@jamesnetherton
Copy link
Contributor Author

Created an issue on the LightCouch project: lightcouch/LightCouch#82.

@jamesnetherton jamesnetherton changed the title [quarkus-main] org.lightcouch:lightcouch not compatible with gson 2.11.x [quarkus-main] org.lightcouch:lightcouch not compatible with gson 2.11.0 Jun 4, 2024
github-actions bot pushed a commit that referenced this issue Jun 6, 2024
github-actions bot pushed a commit that referenced this issue Jun 11, 2024
jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Jun 12, 2024
jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Jun 12, 2024
@jamesnetherton jamesnetherton changed the title [quarkus-main] org.lightcouch:lightcouch not compatible with gson 2.11.0 org.lightcouch:lightcouch not compatible with gson 2.11.0 Jun 13, 2024
@JiriOndrusek
Copy link
Contributor

Fixed by https://issues.apache.org/jira/browse/CAMEL-20800,
and another issues is reported #6198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gson bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants