Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    This means you had a syntax problem in your serialization/deserialization, check the Gson javadoc to check the right syntax: https://goo.gl/g7LnZb

  2. ,
    Expert tip

    This seems to be a bug in the-blue-alliance, fixed in version 4.2.3 (link for github in case you want the changelog: https://goo.gl/NQAKUf ). If you're not using it, it might be that you're parsing xml as json.

Solutions on the web

via GitHub by cartman-2000
, 1 year ago
Could not deserialize something correctly, likely due to bad type data.
via GitHub by inklit
, 1 year ago
Could not deserialize something correctly, likely due to bad type data.
via GitHub by cartman-2000
, 1 year ago
Could not deserialize something correctly, likely due to bad type data.
via GitHub by BrainStone
, 8 months ago
Could not deserialize something correctly, likely due to bad type data.
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 2	at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)	at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1386)	at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:1336)	at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:538)	at com.google.gson.stream.JsonReader.peek(JsonReader.java:414)	at com.google.gson.internal.Streams.parse(Streams.java:42)	at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54)	at net.minecraft.util.JsonUtils.func_188173_a(SourceFile:501)	at net.minecraft.util.JsonUtils.func_188176_a(SourceFile:512)	at net.minecraft.util.text.ITextComponent$Serializer.func_150699_a(ITextComponent.java:260)	at org.spongepowered.common.text.serializer.JsonTextSerializer.deserialize(JsonTextSerializer.java:48)	at org.spongepowered.api.text.serializer.TextConfigSerializer.buildContent(TextConfigSerializer.java:91)	at org.spongepowered.api.data.persistence.AbstractDataBuilder.build(AbstractDataBuilder.java:86)	at org.spongepowered.common.data.SpongeDataManager.deserialize(SpongeDataManager.java:205)	at org.spongepowered.api.text.serializer.TextConfigSerializer.deserialize(TextConfigSerializer.java:71)	at org.spongepowered.api.text.serializer.TextConfigSerializer.deserialize(TextConfigSerializer.java:56)	at ninja.leaping.configurate.objectmapping.ObjectMapper$FieldData.deserializeFrom(ObjectMapper.java:80)	at ninja.leaping.configurate.objectmapping.ObjectMapper$BoundInstance.populate(ObjectMapper.java:140)	at me.ryanhamshire.griefprevention.configuration.ClaimStorageData.reload(ClaimStorageData.java:139)	at me.ryanhamshire.griefprevention.configuration.ClaimStorageData.(ClaimStorageData.java:95)	at me.ryanhamshire.griefprevention.FlatFileDataStore.writeClaimToStorage(FlatFileDataStore.java:423)	at me.ryanhamshire.griefprevention.DataStore.addClaim(DataStore.java:359)	at me.ryanhamshire.griefprevention.DataStore.createClaim(DataStore.java:557)	at me.ryanhamshire.griefprevention.DataStore.resizeClaim(DataStore.java:881)	at me.ryanhamshire.griefprevention.event.PlayerEventHandler.onPlayerHandleShovelAction(PlayerEventHandler.java:1859)	at me.ryanhamshire.griefprevention.event.PlayerEventHandler.onPlayerInteractBlockSecondary(PlayerEventHandler.java:1453)	at org.spongepowered.common.event.listener.MainHandListener_PlayerEventHandler_onPlayerInteractBlockSecondary63.handle(Unknown Source)	at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)	at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:221)	at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:204)	at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:249)	at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:234)	at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:138)	at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractBlockEventSecondary(SpongeCommonEventFactory.java:266)	at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractBlockEventSecondary(SpongeCommonEventFactory.java:256)	at net.minecraft.server.management.PlayerInteractionManager.handler$onProcessRightClick$0(PlayerInteractionManager.java:86)	at net.minecraft.server.management.PlayerInteractionManager.func_187250_a(PlayerInteractionManager.java)	at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:710)	at net.minecraft.network.play.client.CPacketPlayerTryUseItem.func_148833_a(SourceFile:32)	at net.minecraft.network.play.client.CPacketPlayerTryUseItem.func_148833_a(SourceFile:9)	at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:119)	at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(SourceFile:39)	at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13)	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)	at java.util.concurrent.FutureTask.run(Unknown Source)	at net.minecraft.util.Util.func_181617_a(SourceFile:45)	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668)	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387)	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)	at java.lang.Thread.run(Unknown Source)