Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-164038

Serializer for storage nbt component is missing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 19w42a
    • Fix Version/s: 19w44a
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Commands, Crash
    • Mojang Priority:
      Important

      Description

      Steps to reproduce

      1. scoreboard objectives add _ dummy {"nbt": "", "storage": ""}
        
      2. save-all
        

        An unexpected error occurred trying to execute that command

      3. Wait until autosave
        The server crashes
        Encountered an unexpected exception
        java.lang.IllegalArgumentException: Don't know how to serialize StorageNbtComponent{id='minecraft:'path='', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}} as a Component
        	at lc$a.a(SourceFile:377) ~[server.jar:?]
        	at lc$a.serialize(SourceFile:175) ~[server.jar:?]
        	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:81) ~[server.jar:?]
        	at com.google.gson.Gson.toJson(Gson.java:669) ~[server.jar:?]
        	at com.google.gson.Gson.toJson(Gson.java:648) ~[server.jar:?]
        	at com.google.gson.Gson.toJson(Gson.java:603) ~[server.jar:?]
        	at com.google.gson.Gson.toJson(Gson.java:583) ~[server.jar:?]
        	at lc$a.a(SourceFile:387) ~[server.jar:?]
        	at cwa.e(SourceFile:224) ~[server.jar:?]
        	at cwa.b(SourceFile:151) ~[server.jar:?]
        	at cqp.a(SourceFile:48) ~[server.jar:?]
        	at cqz.a(SourceFile:121) ~[server.jar:?]
        	at xa.m_(SourceFile:758) ~[server.jar:?]
        	at xa.a(SourceFile:747) ~[server.jar:?]
        	at net.minecraft.server.MinecraftServer.a(SourceFile:547) ~[server.jar:?]
        	at net.minecraft.server.MinecraftServer.a(SourceFile:801) ~[server.jar:?]
        	at net.minecraft.server.MinecraftServer.run(SourceFile:650) [server.jar:?]
        	at java.lang.Thread.run(Thread.java:830) [?:?]
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                boq [Mojang] Bartosz Bok
                Reporter:
                intsuc intsuc
              • Votes:
                4 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: