Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7492

Bukkit's object serializer doesn't upgrade 1.20.1->1.20.2 data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • None
    • None
    • Windows 11, Java 17

    • CraftBukkit version 3893-Spigot-a0f3d48-251af0d (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT)
    • Yes

      I was using AuctionMaster and I'm not java expert but I fixed some crash and dupe issues after qKing don't have enough time to maintain it.

      And I upgraded all player datas since 1.15.2 without any error. I upgrade it without any wipes 1.15,1.16,1.17...1.20.2. And as always, I updated my server again. I upgraded it 1.20.1 to 1.20.2. After that I get this error:

       

      java.lang.IllegalArgumentException: Length of Base64 encoded input string is not a multiple of 4.
      [00:20:19] [Server thread/INFO]: [AuctionMasterItemDisplay] Enabling AuctionMasterItemDisplay v2.1
      [00:20:19] [Server thread/WARN]: java.lang.NullPointerException: Profile name must not be null
      [00:20:19] [Server thread/WARN]:     at java.base/java.util.Objects.requireNonNull(Objects.java:233)
      [00:20:19] [Server thread/WARN]:     at me.qKing12.AuctionMasterItemDisplay.utils.setSkullOwner(utils.java:118)
      [00:20:19] [Server thread/WARN]:     at me.qKing12.AuctionMasterItemDisplay.Heads.<init>(Heads.java:84)
      [00:20:19] [Server thread/WARN]:     at me.qKing12.AuctionMasterItemDisplay.AuctionMasterItemDisplay.onEnable(AuctionMasterItemDisplay.java:49)
      [00:20:19] [Server thread/WARN]:     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:266)
      [00:20:19] [Server thread/WARN]:     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342)
      [00:20:19] [Server thread/WARN]:     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480)
      [00:20:19] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_20_R2.CraftServer.enablePlugin(CraftServer.java:548)
      [00:20:19] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_20_R2.CraftServer.enablePlugins(CraftServer.java:462)
      [00:20:19] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:577)
      [00:20:19] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:400)
      [00:20:19] [Server thread/WARN]:     at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:250)
      [00:20:19] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:954)
      [00:20:19] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:298)
      [00:20:19] [Server thread/WARN]:     at java.base/java.lang.Thread.run(Thread.java:833)
      

       

       

      Bukkit's object serializer can't upgrade the old datas correctly.

       

      Same exception at AuctionItemDisplay prints for AuctionMaster when I use Paper.

       

      And "java.lang.NullPointerException: Profile name must not be null" error comes from https://github.com/rudde0/AuctionMa...e/qKing12/AuctionMaster/Utils/Utils.java#L144

            Unassigned Unassigned
            rudde Hazar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: