com.badlogic.gdx.utils.SerializationException: Error reading file: cards.json

Stack Overflow | Tower's Vault | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    LibGDX SerializationException caused by Field not found

    Stack Overflow | 10 months ago | Tower's Vault
    com.badlogic.gdx.utils.SerializationException: Error reading file: cards.json
  2. 0

    Json parser error

    GitHub | 3 years ago | WingEraser
    com.badlogic.gdx.utils.SerializationException: Error parsing JSON: 27
  3. 0

    Json with null decoded as string

    GitHub | 3 years ago | joshmmo
    com.badlogic.gdx.utils.SerializationException: Unable to convert value to required type: [ {}, "null" ] (com.tucson.mygame.utils.jsonNullTest)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Json parser error (Error accessing field)

    GitHub | 3 years ago | urrri
    com.badlogic.gdx.utils.SerializationException: Error accessing field: cardId (com.reflected.Events$CardSelected)
  6. 0

    Cannot Deserialize Object With Hashtable

    GitHub | 3 years ago | jtripper
    com.badlogic.gdx.utils.SerializationException: Field not found: 32 (java.util.Hashtable) Serialization trace: [redacted] (com.[redacted])

    3 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. com.badlogic.gdx.utils.SerializationException

      Field not found: cards (com.badlogic.gdx.utils.Array) Serialization trace: {}.cards

      at com.badlogic.gdx.utils.Json.readFields()
    2. libGDX Core
      Json.fromJson
      1. com.badlogic.gdx.utils.Json.readFields(Json.java:790)
      2. com.badlogic.gdx.utils.Json.readValue(Json.java:919)
      3. com.badlogic.gdx.utils.Json.fromJson(Json.java:703)
      3 frames
    3. com.towersvault.unbalanced
      UnbalancedMain.create
      1. com.towersvault.unbalanced.util.save.SaveHandler.loadCards(SaveHandler.java:91)
      2. com.towersvault.unbalanced.util.save.SaveHandler.load(SaveHandler.java:51)
      3. com.towersvault.unbalanced.UnbalancedMain.create(UnbalancedMain.java:28)
      3 frames
    4. libGDX LWJGL Backend
      LwjglApplication$1.run
      1. com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:147)
      2. com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)
      2 frames