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.

GitHub | cburkert | 2 years ago
  1. 0

    GitHub comment 147#60532277

    GitHub | 2 years ago | cburkert
    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.
  2. 0

    GSON and InstanceCreator issue

    Stack Overflow | 3 years ago | IAmYourFaja
    java.lang.RuntimeException: Unable to invoke no-args constructor for interface net.myapp.Shape. Register an InstanceCreator with Gson for this type may fix this problem.
  3. 0

    Gson Type Adapter vs. Custom Deseralizer

    Stack Overflow | 2 years ago | Mike Storey
    java.lang.RuntimeException: Failed to invoke public gson.test.Member() with no args
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 36#225438003

    GitHub | 6 months ago | sn0w
    java.lang.RuntimeException: Failed to invoke public io.github.schulkrams.lasers.Field() with no args
  6. 0

    RuntimeException while parsing the NotifyResult

    GitHub | 5 months ago | njyeti
    java.lang.RuntimeException: Unable to invoke no-args constructor for class com.squareup.pagerduty.incidents.NotifyResult. Register an InstanceCreator with Gson for this type may fix this problem.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Gson
      ReflectiveTypeAdapterFactory$Adapter.read
      1. com.google.gson.internal.ConstructorConstructor$12.construct(ConstructorConstructor.java:210)
      2. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:173)
      3. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95)
      4. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183)
      5. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95)
      6. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183)
      7. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95)
      8. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183)
      8 frames
    3. de.qabel.core
      IdentitiesTypeAdapter.read
      1. de.qabel.core.config.IdentitiesTypeAdapter.read(IdentitiesTypeAdapter.java:41)
      2. de.qabel.core.config.IdentitiesTypeAdapter.read(IdentitiesTypeAdapter.java:1)
      2 frames
    4. Gson
      Gson.fromJson
      1. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95)
      2. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183)
      3. com.google.gson.Gson.fromJson(Gson.java:805)
      4. com.google.gson.Gson.fromJson(Gson.java:770)
      5. com.google.gson.Gson.fromJson(Gson.java:719)
      6. com.google.gson.Gson.fromJson(Gson.java:691)
      6 frames
    5. de.qabel.core
      ConfigSerializationTest.settingsTest
      1. de.qabel.core.config.ConfigSerializationTest.settingsTest(ConfigSerializationTest.java:88)
      1 frame