java.lang.RuntimeException

Unable to invoke no-args constructor for interface java.security.interfaces.RSAPublicKey. Register an InstanceCreator with Gson for this type may fix this problem.

Solutions on the web50286

  • via GitHub by cburkert
    , 9 months ago
    Unable to invoke no-args constructor for interface java.security.interfaces.RSAPublicKey. Register an InstanceCreator with Gson for this type may fix this problem.
  • via Stack Overflow by darren_c
    , 5 months ago
    Unable to invoke no-args constructor for interface com.example.Player. Register an InstanceCreator with Gson for this type may fix this problem.
  • Unable to invoke no-args constructor for interface MyContent. Register an InstanceCreator with Gson for this type may fix this problem.
  • Stack trace

    • java.lang.RuntimeException: Unable to invoke no-args constructor for interface java.security.interfaces.RSAPublicKey. Register an InstanceCreator with Gson for this type may fix this problem. at com.google.gson.internal.ConstructorConstructor$12.construct(ConstructorConstructor.java:210) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:173) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183) at de.qabel.core.config.IdentitiesTypeAdapter.read(IdentitiesTypeAdapter.java:41) at de.qabel.core.config.IdentitiesTypeAdapter.read(IdentitiesTypeAdapter.java:1) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183) at com.google.gson.Gson.fromJson(Gson.java:805) at com.google.gson.Gson.fromJson(Gson.java:770) at com.google.gson.Gson.fromJson(Gson.java:719) at com.google.gson.Gson.fromJson(Gson.java:691) at de.qabel.core.config.ConfigSerializationTest.settingsTest(ConfigSerializationTest.java:88)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago