java.lang.RuntimeException: No-args constructor for class fr.free.nrw.commons.upload.MwVolleyApi$Page does not exist. Register an InstanceCreator with Gson for this type to fix this problem.

GitHub | nicolas-raoul | 2 months ago
  1. 0

    GitHub comment 281#252407576

    GitHub | 2 months ago | nicolas-raoul
    java.lang.RuntimeException: No-args constructor for class fr.free.nrw.commons.upload.MwVolleyApi$Page does not exist. Register an InstanceCreator with Gson for this type to fix this problem.
  2. 0

    'No args constructor for class does not exist', but it does

    Stack Overflow | 2 months ago | melange
    java.lang.RuntimeException: No-args constructor for class fr.free.nrw.commons.upload.MwVolleyApi$Page does not exist. Register an InstanceCreator with Gson for this type to fix this problem.
  3. 0

    Unable to invoke no-args constructor for class com.pipl.api.search.SearchAPIResponse.

    GitHub | 2 years ago | yathit
    java.lang.RuntimeException: Unable to invoke no-args constructor for class com.pipl.api.search.SearchAPIResponse. Register an InstanceCreator with Gson for this type may fix this problem.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Difficult to serialize Ranges with serializers like Gson

    GitHub | 2 years ago | dimo414
    java.lang.RuntimeException: Unable to invoke no-args constructor for com.google.common.collect.Cut<C>. Register an InstanceCreator with Gson for this type may fix this problem.
  6. 0

    java.lang.RuntimeException: Failed to invoke public com.example.syncapp.MessageBase() with no args

    Stack Overflow | 4 years ago | user1612863
    java.lang.RuntimeException: Failed to invoke public com.example.syncapp.MessageBase() with no args

  1. Alexandru Popa 10 times, last 3 weeks ago
4 unregistered visitors
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

    No-args constructor for class fr.free.nrw.commons.upload.MwVolleyApi$Page does not exist. Register an InstanceCreator with Gson for this type to fix this problem.

    at com.google.gson.MappedObjectConstructor.constructWithNoArgConstructor()
  2. Gson
    Gson.fromJson
    1. com.google.gson.MappedObjectConstructor.constructWithNoArgConstructor(MappedObjectConstructor.java:64)
    2. com.google.gson.MappedObjectConstructor.construct(MappedObjectConstructor.java:53)
    3. com.google.gson.JsonObjectDeserializationVisitor.constructTarget(JsonObjectDeserializationVisitor.java:41)
    4. com.google.gson.JsonDeserializationVisitor.getTarget(JsonDeserializationVisitor.java:56)
    5. com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:101)
    6. com.google.gson.JsonDeserializationVisitor.visitChild(JsonDeserializationVisitor.java:107)
    7. com.google.gson.JsonDeserializationVisitor.visitChildAsObject(JsonDeserializationVisitor.java:95)
    8. com.google.gson.JsonArrayDeserializationVisitor.visitArray(JsonArrayDeserializationVisitor.java:73)
    9. com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:109)
    10. com.google.gson.JsonDeserializationVisitor.visitChild(JsonDeserializationVisitor.java:107)
    11. com.google.gson.JsonDeserializationVisitor.visitChildAsArray(JsonDeserializationVisitor.java:102)
    12. com.google.gson.JsonObjectDeserializationVisitor.visitArrayField(JsonObjectDeserializationVisitor.java:81)
    13. com.google.gson.ObjectNavigator.navigateClassFields(ObjectNavigator.java:154)
    14. com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:123)
    15. com.google.gson.JsonDeserializationVisitor.visitChild(JsonDeserializationVisitor.java:107)
    16. com.google.gson.JsonDeserializationVisitor.visitChildAsObject(JsonDeserializationVisitor.java:95)
    17. com.google.gson.JsonObjectDeserializationVisitor.visitObjectField(JsonObjectDeserializationVisitor.java:62)
    18. com.google.gson.ObjectNavigator.navigateClassFields(ObjectNavigator.java:156)
    19. com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:123)
    20. com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:73)
    21. com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:51)
    22. com.google.gson.Gson.fromJson(Gson.java:495)
    23. com.google.gson.Gson.fromJson(Gson.java:444)
    24. com.google.gson.Gson.fromJson(Gson.java:396)
    25. com.google.gson.Gson.fromJson(Gson.java:372)
    25 frames
  3. fr.free.nrw
    MwVolleyApi$QueryRequest.parseNetworkResponse
    1. fr.free.nrw.commons.upload.MwVolleyApi$QueryRequest.parseNetworkResponse(MwVolleyApi.java:140)
    1 frame
  4. Android-Volley Library
    NetworkDispatcher.run
    1. com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:123)
    1 frame