You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I encountered a compatibility issue when recently migrating to Java 17. There is an exception related to the use of the Gson library when it tries to parse exception
com.google.gson.JsonIOException: Failed making field 'java.lang.Throwable#detailMessage' accessible; either change its visibility or write a custom TypeAdapter for its declaring type at com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:23) ~[gson-2.9.1.jar:na] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:203) ~[gson-2.9.1.jar:na] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:112) ~[gson-2.9.1.jar:na] at com.google.gson.Gson.getAdapter(Gson.java:531) ~[gson-2.9.1.jar:na] at com.google.gson.Gson.fromJson(Gson.java:1057) ~[gson-2.9.1.jar:na] at com.google.gson.Gson.fromJson(Gson.java:1129) ~[gson-2.9.1.jar:na] at com.google.gson.Gson.fromJson(Gson.java:1101) ~[gson-2.9.1.jar:na] at com.kaltura.client.utils.GsonParser.parseException(GsonParser.java:283) ~[kalturaApiClient-19.3.0.jar:na]
As java 17's strengthened encapsulation model that restricts reflective access to internal APIs, impacting Gson's ability to serialize and deserialize exception details.
The text was updated successfully, but these errors were encountered:
Hi guys, I encountered a compatibility issue when recently migrating to Java 17. There is an exception related to the use of the Gson library when it tries to parse exception
com.google.gson.JsonIOException: Failed making field 'java.lang.Throwable#detailMessage' accessible; either change its visibility or write a custom TypeAdapter for its declaring type at com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:23) ~[gson-2.9.1.jar:na] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:203) ~[gson-2.9.1.jar:na] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:112) ~[gson-2.9.1.jar:na] at com.google.gson.Gson.getAdapter(Gson.java:531) ~[gson-2.9.1.jar:na] at com.google.gson.Gson.fromJson(Gson.java:1057) ~[gson-2.9.1.jar:na] at com.google.gson.Gson.fromJson(Gson.java:1129) ~[gson-2.9.1.jar:na] at com.google.gson.Gson.fromJson(Gson.java:1101) ~[gson-2.9.1.jar:na] at com.kaltura.client.utils.GsonParser.parseException(GsonParser.java:283) ~[kalturaApiClient-19.3.0.jar:na]
As java 17's strengthened encapsulation model that restricts reflective access to internal APIs, impacting Gson's ability to serialize and deserialize exception details.
The text was updated successfully, but these errors were encountered: