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
Unable to create instance of class com.google.maps.GeocodingApi$Response. Registering an InstanceCreator or a TypeAdapter for this type, or adding a no-args constructor may fix this problem.
#914
Open
joaorodrigo opened this issue
Jun 28, 2023
· 3 comments
Hello, I have a problem running my Java Spring Boot application with a native image.
When searching for an address I get the error: Unable to create instance of class com.google.maps.GeocodingApi$Response. Registering an InstanceCreator or a TypeAdapter for this type, or adding a no-args constructor may fix this problem.
The error only occurs when compiling with native image, when using JVM the problem does not occur.
Spring Boot: 3.0.6
GraalVM: 22.3.1
JDK: 17
The text was updated successfully, but these errors were encountered:
Having the same issue with NearbySearchRequest: Unable to create instance of class com.google.maps.NearbySearchRequest$Response. Registering an InstanceCreator or a TypeAdapter for this type, or adding a no-args constructor may fix this problem.
There is a similar behaviour while using TimeZoneApi with Quarkus native images, we need to add annotation RegisterForReflection, but the inner Reponse class is not public, so not able to make it work. Changing the inner class Response to public will solve the issue.
threw an exception: java.lang.RuntimeException: Unable to create instance of class com.google.maps.TimeZoneApi$Response. Registering an InstanceCreator or a TypeAdapter for this type, or adding a no-args constructor may fix this problem.
Hello, I have a problem running my Java Spring Boot application with a native image.
When searching for an address I get the error:
Unable to create instance of class com.google.maps.GeocodingApi$Response. Registering an InstanceCreator or a TypeAdapter for this type, or adding a no-args constructor may fix this problem.
The error only occurs when compiling with native image, when using JVM the problem does not occur.
Spring Boot: 3.0.6
GraalVM: 22.3.1
JDK: 17
The text was updated successfully, but these errors were encountered: