
parse custom name
seema84 opened this issue ยท 16 comments
What is happening?
This error message was displayed after the first start with version 1.20.6.
Plugin Version
ChestShop v3.12.3-SNAPSHOT (build 403)
Server Version
Paper version 1.20.6-147-ver/1.20.6@e41d44f
Server Log
Log
Failed to parse custom name from string 'Player's Kiste', discarding
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 13 path $
at com.google.gson.JsonParser.parseReader(JsonParser.java:76) ~[gson-2.10.1.jar:?]
at com.google.gson.JsonParser.parseString(JsonParser.java:51) ~[gson-2.10.1.jar:?]
at net.minecraft.network.chat.Component$Serializer.fromJson(Component.java:304) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.parseCustomNameSafe(BlockEntity.java:365) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BaseContainerBlockEntity.loadAdditional(BaseContainerBlockEntity.java:42) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity.loadAdditional(ShulkerBoxBlockEntity.java:242) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.loadWithComponents(BlockEntity.java:94) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.lambda$loadStatic$5(BlockEntity.java:205) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.util.Optional.map(Optional.java:260) ~[?:?]
at net.minecraft.world.level.block.entity.BlockEntity.loadStatic(BlockEntity.java:203) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:291) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:276) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:266) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.inventory.CraftMetaBlockState.getBlockState(CraftMetaBlockState.java:411) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.inventory.CraftMetaBlockState.<init>(CraftMetaBlockState.java:240) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
at org.bukkit.craftbukkit.inventory.SerializableMeta.deserialize(SerializableMeta.java:75) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeViaMethod(ConfigurationSerialization.java:87) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserialize(ConfigurationSerialization.java:129) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeObject(ConfigurationSerialization.java:209) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.file.YamlConstructor$ConstructCustomObject.construct(YamlConstructor.java:58) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:264) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:247) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:576) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:210) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:552) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlMap.construct(SafeConstructor.java:597) ~[snakeyaml-2.2.jar:?]
at org.bukkit.configuration.file.YamlConstructor$ConstructCustomObject.construct(YamlConstructor.java:49) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:264) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:247) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:201) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:185) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:493) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:473) ~[snakeyaml-2.2.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.lambda$updateMetadataVersion$0(ItemDatabase.java:102) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.doCallBatchTasks(StatementExecutor.java:652) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.doCallBatchTasks(StatementExecutor.java:623) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.callBatchTasks(StatementExecutor.java:603) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.dao.BaseDaoImpl.callBatchTasks(BaseDaoImpl.java:734) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.updateMetadataVersion(ItemDatabase.java:93) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.handleMetadataUpdate(ItemDatabase.java:57) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.<init>(ItemDatabase.java:44) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:160) ~[ChestShop.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:626) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:575) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1136) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 13 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1659) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1465) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:551) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.peek(JsonReader.java:433) ~[gson-2.10.1.jar:?]
at com.google.gson.JsonParser.parseReader(JsonParser.java:71) ~[gson-2.10.1.jar:?]
... 58 more
[12:16:04] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:wooden_slab'
[12:16:04] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[12:16:04] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[12:16:04] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[12:16:04] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[12:16:04] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[12:16:04] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:dye'
[12:16:04] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:log'
[12:16:04] [Server thread/WARN]: Failed to parse custom name from string 'Shulker Box', discarding
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $
at com.google.gson.JsonParser.parseReader(JsonParser.java:76) ~[gson-2.10.1.jar:?]
at com.google.gson.JsonParser.parseString(JsonParser.java:51) ~[gson-2.10.1.jar:?]
at net.minecraft.network.chat.Component$Serializer.fromJson(Component.java:304) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.parseCustomNameSafe(BlockEntity.java:365) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BaseContainerBlockEntity.loadAdditional(BaseContainerBlockEntity.java:42) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity.loadAdditional(ShulkerBoxBlockEntity.java:242) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.loadWithComponents(BlockEntity.java:94) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.lambda$loadStatic$5(BlockEntity.java:205) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.util.Optional.map(Optional.java:260) ~[?:?]
at net.minecraft.world.level.block.entity.BlockEntity.loadStatic(BlockEntity.java:203) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:291) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:276) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:266) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.inventory.CraftMetaBlockState.getBlockState(CraftMetaBlockState.java:411) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.inventory.CraftMetaBlockState.<init>(CraftMetaBlockState.java:240) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
at org.bukkit.craftbukkit.inventory.SerializableMeta.deserialize(SerializableMeta.java:75) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeViaMethod(ConfigurationSerialization.java:87) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserialize(ConfigurationSerialization.java:129) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeObject(ConfigurationSerialization.java:209) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.file.YamlConstructor$ConstructCustomObject.construct(YamlConstructor.java:58) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:264) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:247) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:576) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:210) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:552) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlMap.construct(SafeConstructor.java:597) ~[snakeyaml-2.2.jar:?]
at org.bukkit.configuration.file.YamlConstructor$ConstructCustomObject.construct(YamlConstructor.java:49) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:264) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:247) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:201) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:185) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:493) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:473) ~[snakeyaml-2.2.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.lambda$updateMetadataVersion$0(ItemDatabase.java:102) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.doCallBatchTasks(StatementExecutor.java:652) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.doCallBatchTasks(StatementExecutor.java:623) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.callBatchTasks(StatementExecutor.java:603) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.dao.BaseDaoImpl.callBatchTasks(BaseDaoImpl.java:734) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.updateMetadataVersion(ItemDatabase.java:93) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.handleMetadataUpdate(ItemDatabase.java:57) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.<init>(ItemDatabase.java:44) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:160) ~[ChestShop.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:626) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:575) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1136) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1659) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1465) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:551) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.peek(JsonReader.java:433) ~[gson-2.10.1.jar:?]
at com.google.gson.JsonParser.parseReader(JsonParser.java:71) ~[gson-2.10.1.jar:?]
... 58 more
Agreements
- I have checked if there are already similar issues open.
- I am running the latest development version available from ci.minebench.de/job/ChestShop-3.
- The version has support for this type of issue.
- I have provided all requested information and agree to the terms of the project's license
That error is in the server itself and ideally needs to be fixed there (neither 1.20.6 nor 1.21 can be considered stable yet) and working around this isn't ideal but can you provide the serialized string of the item it fails on from your items.db? Or just your full file if that's easier for you.
That error is in the server itself and ideally needs to be fixed there (neither 1.20.6 nor 1.21 can be considered stable yet) and working around this isn't ideal but can you provide the serialized string of the item it fails on from your items.db? Or just your full file if that's easier for you.
created a zip because github does not support the .db format
I just tried it with your items.db file and it seemed to work locally for me. (Is the file you provided from the backup before updating? If not please provide that as the errornous data might've been removed)
I also then I double checked your post and noticed that you are using an old build and purposely remove the line for that hence me not catching it... Please test with the latest build (make sure that you use the items.db from before you noticed the error!) and stop trying to circumvent issue templates, they exist for a reason.
Can you please provide what metadata-version is in your version file from the backup too? Just so I can test (and report if necessary) with the exact version.
version: 4
metadata-version: 3700
Server Log
Log
However, if I only replace the Items.db, the error does not seem to occur.
Ah, right, I just remembered that the version
file contains the latest metadata-version hence why it wouldn't trigger it again when just replacing the items.db, it also needs to be a version file with an old metadata which triggers the conversation.
Can you please provide what metadata-version is in your version file from the backup too? Just so I can test (and report if necessary) with the exact version.
It was the items.db after the error.
Here is the one from the backup:
It was the items.db after the error. Here is the one from the backup:
Ok I tried with this and it again worked without issues. Please test with that items.db and the latest build and see if the issue persists.
The error is still displayed with build 419.
However, only if I use not only the items.db, but the entire Chestshop folder from the backup.
The error is still displayed with build 419.
Please provide the new log.
However, only if I use not only the items.db, but the entire Chestshop folder from the backup.
That does not make much sense, the error stems from the items in the items.db, while you might have names in other config files these have no influence on the location in the code where you get the error triggered from.
Server Log
Log
[Server thread/WARN]: Failed to parse custom name from string 'Player's Kiste', discarding
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 13 path $
at com.google.gson.JsonParser.parseReader(JsonParser.java:76) ~[gson-2.10.1.jar:?]
at com.google.gson.JsonParser.parseString(JsonParser.java:51) ~[gson-2.10.1.jar:?]
at net.minecraft.network.chat.Component$Serializer.fromJson(Component.java:304) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.parseCustomNameSafe(BlockEntity.java:365) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BaseContainerBlockEntity.loadAdditional(BaseContainerBlockEntity.java:42) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity.loadAdditional(ShulkerBoxBlockEntity.java:242) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.loadWithComponents(BlockEntity.java:94) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.lambda$loadStatic$5(BlockEntity.java:205) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.util.Optional.map(Optional.java:260) ~[?:?]
at net.minecraft.world.level.block.entity.BlockEntity.loadStatic(BlockEntity.java:203) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:291) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:276) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:266) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.inventory.CraftMetaBlockState.getBlockState(CraftMetaBlockState.java:411) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.inventory.CraftMetaBlockState.<init>(CraftMetaBlockState.java:240) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
at org.bukkit.craftbukkit.inventory.SerializableMeta.deserialize(SerializableMeta.java:75) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeViaMethod(ConfigurationSerialization.java:87) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserialize(ConfigurationSerialization.java:129) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeObject(ConfigurationSerialization.java:209) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.file.YamlConstructor$ConstructCustomObject.construct(YamlConstructor.java:58) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:264) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:247) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:576) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:210) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:552) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlMap.construct(SafeConstructor.java:597) ~[snakeyaml-2.2.jar:?]
at org.bukkit.configuration.file.YamlConstructor$ConstructCustomObject.construct(YamlConstructor.java:49) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:264) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:247) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:201) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:185) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:493) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:473) ~[snakeyaml-2.2.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.lambda$updateMetadataVersion$0(ItemDatabase.java:103) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.doCallBatchTasks(StatementExecutor.java:652) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.doCallBatchTasks(StatementExecutor.java:623) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.callBatchTasks(StatementExecutor.java:603) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.dao.BaseDaoImpl.callBatchTasks(BaseDaoImpl.java:734) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.updateMetadataVersion(ItemDatabase.java:94) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.handleMetadataUpdate(ItemDatabase.java:58) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.<init>(ItemDatabase.java:45) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:161) ~[ChestShop.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:626) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:575) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1136) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 13 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1659) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1465) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:551) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.peek(JsonReader.java:433) ~[gson-2.10.1.jar:?]
at com.google.gson.JsonParser.parseReader(JsonParser.java:71) ~[gson-2.10.1.jar:?]
... 58 more
[21:09:40] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:wooden_slab'
[21:09:40] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[21:09:40] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[21:09:40] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[21:09:40] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[21:09:40] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:reeds'
[21:09:40] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:dye'
[21:09:40] [Server thread/ERROR]: Tried to load invalid item: 'Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: minecraft:log'
[21:09:40] [Server thread/WARN]: Failed to parse custom name from string 'Shulker Box', discarding
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $
at com.google.gson.JsonParser.parseReader(JsonParser.java:76) ~[gson-2.10.1.jar:?]
at com.google.gson.JsonParser.parseString(JsonParser.java:51) ~[gson-2.10.1.jar:?]
at net.minecraft.network.chat.Component$Serializer.fromJson(Component.java:304) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.parseCustomNameSafe(BlockEntity.java:365) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BaseContainerBlockEntity.loadAdditional(BaseContainerBlockEntity.java:42) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity.loadAdditional(ShulkerBoxBlockEntity.java:242) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.loadWithComponents(BlockEntity.java:94) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.world.level.block.entity.BlockEntity.lambda$loadStatic$5(BlockEntity.java:205) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.util.Optional.map(Optional.java:260) ~[?:?]
at net.minecraft.world.level.block.entity.BlockEntity.loadStatic(BlockEntity.java:203) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:291) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:276) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.block.CraftBlockStates.getBlockState(CraftBlockStates.java:266) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.inventory.CraftMetaBlockState.getBlockState(CraftMetaBlockState.java:411) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.inventory.CraftMetaBlockState.<init>(CraftMetaBlockState.java:240) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
at org.bukkit.craftbukkit.inventory.SerializableMeta.deserialize(SerializableMeta.java:75) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeViaMethod(ConfigurationSerialization.java:87) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserialize(ConfigurationSerialization.java:129) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeObject(ConfigurationSerialization.java:209) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.file.YamlConstructor$ConstructCustomObject.construct(YamlConstructor.java:58) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:264) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:247) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:576) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:210) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:552) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlMap.construct(SafeConstructor.java:597) ~[snakeyaml-2.2.jar:?]
at org.bukkit.configuration.file.YamlConstructor$ConstructCustomObject.construct(YamlConstructor.java:49) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:264) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:247) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:201) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:185) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:493) ~[snakeyaml-2.2.jar:?]
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:473) ~[snakeyaml-2.2.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.lambda$updateMetadataVersion$0(ItemDatabase.java:103) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.doCallBatchTasks(StatementExecutor.java:652) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.doCallBatchTasks(StatementExecutor.java:623) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.stmt.StatementExecutor.callBatchTasks(StatementExecutor.java:603) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Libs.ORMlite.dao.BaseDaoImpl.callBatchTasks(BaseDaoImpl.java:734) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.updateMetadataVersion(ItemDatabase.java:94) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.handleMetadataUpdate(ItemDatabase.java:58) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.Metadata.ItemDatabase.<init>(ItemDatabase.java:45) ~[ChestShop.jar:?]
at ChestShop.jar/com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:161) ~[ChestShop.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:626) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:575) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1136) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1659) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1465) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:551) ~[gson-2.10.1.jar:?]
at com.google.gson.stream.JsonReader.peek(JsonReader.java:433) ~[gson-2.10.1.jar:?]
at com.google.gson.JsonParser.parseReader(JsonParser.java:71) ~[gson-2.10.1.jar:?]
... 58 more
However, if I only replace the Items.db, the error does not seem to occur.
Ok, I checked this and you can safely ignore these warnings, it seems to have converted all the data properly not sure why exactly it prints that anyways... (Unfortunately I can't handle them better as they are printed from server-internals and not exposed to plugins)
Okay thanks. Should I report this to Paper?
If you want, sure. It doesn't seem to cause issues though as far as I can tell.