Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

hey, keep getting this error message

com.badlogic.gdx.utils.SerializationException: Serialization trace:

com.badlogic.gdx.utils.reflect.Field@521172ec (com.majalis.character.EnemyCharacter)

com.badlogic.gdx.utils.reflect.Field@15c2172b (com.majalis.save.SaveManager$GameSave)

    at com.badlogic.gdx.utils.Json.writeFields(Json.java:330)

    at com.badlogic.gdx.utils.Json.writeValue(Json.java:636)

    at com.badlogic.gdx.utils.Json.writeValue(Json.java:523)

    at com.badlogic.gdx.utils.Json.writeFields(Json.java:323)

    at com.badlogic.gdx.utils.Json.writeValue(Json.java:636)

    at com.badlogic.gdx.utils.Json.toJson(Json.java:276)

    at com.badlogic.gdx.utils.Json.toJson(Json.java:235)

    at com.badlogic.gdx.utils.Json.toJson(Json.java:224)

    at com.badlogic.gdx.utils.Json.prettyPrint(Json.java:1175)

    at com.badlogic.gdx.utils.Json.prettyPrint(Json.java:1167)

    at com.majalis.save.SaveManager.saveToJson(SaveManager.java:288)

    at com.majalis.save.SaveManager.saveDataValue(SaveManager.java:180)

    at com.majalis.save.SaveManager.saveDataValue(SaveManager.java:116)

    at com.majalis.screens.BattleScreen.<init>(BattleScreen.java:494)

    at com.majalis.screens.ScreenFactoryImpl.getBattle(ScreenFactoryImpl.java:252)

    at com.majalis.screens.ScreenFactoryImpl.getCurrentContextScreen(ScreenFactoryImpl.java:304)

    at com.majalis.screens.ScreenFactoryImpl.getScreen(ScreenFactoryImpl.java:139)

    at com.majalis.screens.AbstractScreen.switchScreen(AbstractScreen.java:141)

    at com.majalis.screens.LoadScreen.switchFade(LoadScreen.java:46)

    at com.majalis.screens.AbstractScreen.showScreen(AbstractScreen.java:114)

    at com.majalis.screens.LoadScreen.render(LoadScreen.java:52)

    at com.badlogic.gdx.Game.render(Game.java:46)

    at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:233)

    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:128)

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.concurrent.atomic.AtomicLong java.util.Random.seed accessible: module java.base does not "opens java.util" to unnamed module @40f9161a

    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)

    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)

    at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)

    at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)

    at com.badlogic.gdx.utils.reflect.Field.setAccessible(Field.java:54)

    at com.badlogic.gdx.utils.Json.getFields(Json.java:210)

    at com.badlogic.gdx.utils.Json.getDefaultValues(Json.java:348)

    at com.badlogic.gdx.utils.Json.writeFields(Json.java:299)

    at com.badlogic.gdx.utils.Json.writeValue(Json.java:636)

    at com.badlogic.gdx.utils.Json.writeFields(Json.java:323)

    ... 23 more