com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.<init>
See original GitHub issueExpected Behavior
Current Behavior
dispatch failed; nested exception is java.lang.NoSuchMethodError: com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.<init>(Lcom/google/gson/internal/ConstructorConstructor;Lcom/google/gson/FieldNamingStrategy;Lcom/google/gson/internal/Excluder;)V] with root cause
java.lang.NoSuchMethodError: com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.<init>(Lcom/google/gson/internal/ConstructorConstructor;Lcom/google/gson/FieldNamingStrategy;Lcom/google/gson/internal/Excluder;)V
at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory.<init>(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:118)
at org.jclouds.json.config.GsonModule.provideGson(GsonModule.java:130)
Context
Steps to Reproduce (for bugs)
Your Environment
I met some problems when i use it in a spring boot2.0 project
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory ...
How to use. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory. constructor. Best Java code snippets using com.google.gson.internal.
Read more >gson.toJson() throws StackOverflowError - Stack Overflow
copyFromRealm(myObject) to create a copy without all the Realm bindings before passing through to GSON for serialization.
Read more >java.lang.NoSuchMethodError: com.google.gson.internal.bind ...
java.lang.NoSuchMethodError: com.google.gson.internal.bind.ReflectiveTypeAdapterFactory ... <init>(Lcom/google/gson/internal/ConstructorConstructor ...
Read more >hazelcast/hazelcast - Gitter
Caused by: java.lang.NoSuchMethodError: com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.<init>(Lcom/google/gson/internal/ConstructorConstructor ...
Read more >Gson User Guide - Google Sites
Nested Classes (including Inner Classes). Gson can serialize static nested classes quite easily. Gson can also deserialize static nested classes. However, Gson ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I got around this by using the classifier
all
in my build.gradle like so:compile "com.cdancy:jenkins-rest:0.0.23:all"
For Spring Boot 2.0 I was facing the same exception, excluding the transitive dependencies excluded everything which was important so nothing was working. I had to pin the gson to an older version to fix
force 'com.google.code.gson:gson:2.5'