question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.<init>

See original GitHub issue

Expected 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:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
blajoie55commented, Jan 28, 2020

I got around this by using the classifier all in my build.gradle like so: compile "com.cdancy:jenkins-rest:0.0.23:all"

0reactions
jiotiGcommented, May 20, 2019

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'

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found