Serialization error on enchants items #69


  • New
  • Defect
Open
Assigned to _ForgeUser7265008
  • _ForgeUser8295270 created this issue Mar 28, 2014

    What steps will reproduce the problem?
    1. Last snapshot
    2. Two servers, same networks
    3. Items with enchant and after change by switch commands we have deserialization problem and all eq reset.

    Do you have an error log of what happened?
    [16:43:56] [Server thread/INFO]: [InvSQL][DEBUG] Your Problem was caused by: MySQLDatabaseHandler(connection=com.mysql.jdbc.JDBC4Connection@47d90d9a, q=tk.manf.InventorySQL.database.handler.MySQLDatabaseHandler$Queries@7b0c1e4f)
    [16:43:56] [Server thread/INFO]: null
    tk.manf.InventorySQL.datahandling.exceptions.SerializationException: Error while serializing: [Parsing Error]
        at tk.manf.InventorySQL.datahandling.serializer.SimpleSerializer.deserializeItemStacks(SimpleSerializer.java:47) ~[InventorySQL.3.4.6.jar:?]
        at tk.manf.InventorySQL.manager.DataHandlingManager.deserial(DataHandlingManager.java:58) ~[InventorySQL.3.4.6.jar:?]
        at tk.manf.InventorySQL.database.handler.MySQLDatabaseHandler.loadPlayerInventory(MySQLDatabaseHandler.java:109) ~[InventorySQL.3.4.6.jar:?]
        at tk.manf.InventorySQL.manager.DatabaseManager.loadPlayer(DatabaseManager.java:90) ~[InventorySQL.3.4.6.jar:?]
        at tk.manf.InventorySQL.manager.DatabaseManager.onPlayerLogin(DatabaseManager.java:99) [InventorySQL.3.4.6.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_25]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_25]
        at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_25]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [spigot.jar:git-Spigot-1360]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-1360]
        at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:47) [spigot.jar:git-Spigot-1360]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1360]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.PlayerList.c(PlayerList.java:249) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.PlayerList.a(PlayerList.java:135) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.LoginListener.c(LoginListener.java:87) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.LoginListener.a(LoginListener.java:42) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:151) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java:77) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:703) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:273) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:566) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:472) [spigot.jar:git-Spigot-1360]
        at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [spigot.jar:git-Spigot-1360]
    Caused by: org.json.simple.parser.ParseException
        at org.json.simple.parser.Yylex.yylex(Yylex.java:610) ~[spigot.jar:git-Spigot-1360]
        at org.json.simple.parser.JSONParser.nextToken(JSONParser.java:269) ~[spigot.jar:git-Spigot-1360]
        at org.json.simple.parser.JSONParser.parse(JSONParser.java:118) ~[spigot.jar:git-Spigot-1360]
        at org.json.simple.parser.JSONParser.parse(JSONParser.java:81) ~[spigot.jar:git-Spigot-1360]
        at org.json.simple.parser.JSONParser.parse(JSONParser.java:75) ~[spigot.jar:git-Spigot-1360]
        at org.json.simple.JSONValue.parseWithException(JSONValue.java:78) ~[spigot.jar:git-Spigot-1360]
        at tk.manf.InventorySQL.datahandling.serializer.SimpleSerializer.deserializeItemStacks(SimpleSerializer.java:45) ~[InventorySQL.3.4.6.jar:?]
        ... 24 more

    Please provide any additional information below.

    I check it and its fact that its only happend when you have something enchanted or armor that have durability.

    I will try to fix this by own, but maybe you know faster what's going on.

  • _ForgeUser8295270 added the tags New Defect Mar 28, 2014
  • _ForgeUser537101 posted a comment Apr 15, 2014

    I can confirm this error:

    [21:04:21 INFO]: [InvSQL][DEBUG] Your Problem was caused by: MySQLDatabaseHandler(connection=com.mysql.jdbc.JDBC4Connection@56bf18, q=tk.manf.InventorySQL.database.handler.MySQLDatabaseHandler$Queries@11bce2a)
    [21:04:21 INFO]: null
    tk.manf.InventorySQL.datahandling.exceptions.SerializationException: Error while serializing: [Parsing Error]
            at tk.manf.InventorySQL.datahandling.serializer.SimpleSerializer.deserializeItemStacks(SimpleSerializer.java:47) ~[InventorySQL.3.4.6.jar:?]
            at tk.manf.InventorySQL.manager.DataHandlingManager.deserial(DataHandlingManager.java:58) ~[InventorySQL.3.4.6.jar:?]
            at tk.manf.InventorySQL.database.handler.MySQLDatabaseHandler.loadPlayerInventory(MySQLDatabaseHandler.java:107) ~[InventorySQL.3.4.6.jar:?]
            at tk.manf.InventorySQL.manager.DatabaseManager.loadPlayer(DatabaseManager.java:90) ~[InventorySQL.3.4.6.jar:?]
            at tk.manf.InventorySQL.manager.DatabaseManager.onPlayerLogin(DatabaseManager.java:99) [InventorySQL.3.4.6.jar:?]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_25]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_25]
            at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_25]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:318) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:486) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:471) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.PlayerList.c(PlayerList.java:225) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.PlayerList.a(PlayerList.java:116) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.LoginListener.c(LoginListener.java:78) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.LoginListener.a(LoginListener.java:42) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:149) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    Caused by: org.json.simple.parser.ParseException
            at org.json.simple.parser.Yylex.yylex(Unknown Source) ~[craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.json.simple.parser.JSONParser.nextToken(Unknown Source) ~[craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.json.simple.parser.JSONParser.parse(Unknown Source) ~[craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.json.simple.parser.JSONParser.parse(Unknown Source) ~[craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.json.simple.parser.JSONParser.parse(Unknown Source) ~[craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.json.simple.JSONValue.parseWithException(Unknown Source) ~[craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at tk.manf.InventorySQL.datahandling.serializer.SimpleSerializer.deserializeItemStacks(SimpleSerializer.java:45) ~[InventorySQL.3.4.6.jar:?]
            ... 23 more
    
  • _ForgeUser12711185 posted a comment Apr 17, 2014

    I can confirm this error. Please FIX


To post a comment, please login or register a new account.