Solved Strange crash/error when binding to port

Discussion in 'Bukkit Help' started by maxtyger, Jul 30, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    maxtyger

    I've been trying all day to migrate my Vanilla server over to Bukkit, so, I am relatively new to this.

    I finished port-forwarding and was greeted with a crash error in the console when trying to run the server.

    (Batch file)
    java -Xmx1024M -jar craftbukkit-1.12.jar -o true
    PAUSE

    ---- Minecraft Crash Report ----
    // Don't be sad. I'll do better next time, I promise!

    Time: 30/07/17 23:04
    Description: Exception in server tick loop

    com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 1 path $[0]
    at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:506)
    at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:522)
    at net.minecraft.server.v1_12_R1.JsonList.load(JsonList.java:174)
    at net.minecraft.server.v1_12_R1.DedicatedPlayerList.A(SourceFile:99)
    at net.minecraft.server.v1_12_R1.DedicatedPlayerList.<init>(SourceFile:25)
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:186)
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521)
    at java.lang.Thread.run(Unknown Source)
    Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 1 path $[0]
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559)
    at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1401)
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:593)
    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:414)
    at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
    at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
    at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:504)
    ... 7 more


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- System Details --
    Details:
    Minecraft Version: 1.12
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_144, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 134171392 bytes (127 MB) / 230162432 bytes (219 MB) up to 954728448 bytes (910 MB)
    JVM Flags: 1 total; -Xmx1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    CraftBukkit Information:
    Running: CraftBukkit version git-Bukkit-3819f8d (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT) true
    Plugins: {}
    Warnings: DEFAULT
    Reload Count: 0
    Threads: { RUNNABLE Attach Listener: [], WAITING Reference Handler: [java.lang.Object.wait(Native Method), java.lang.Object.wait(Unknown Source), java.lang.ref.Reference.tryHandlePending(Unknown Source), java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)], RUNNABLE DestroyJavaVM: [], RUNNABLE Signal Dispatcher: [], TIMED_WAITING Server Infinisleeper: [java.lang.Thread.sleep(Native Method), net.minecraft.server.v1_12_R1.DedicatedServer$1.run(DedicatedServer.java:59)], WAITING NonBlockingInputStreamThread: [java.lang.Object.wait(Native Method), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.run(NonBlockingInputStream.java:278), java.lang.Thread.run(Unknown Source)], RUNNABLE Server console handler: [org.fusesource.jansi.internal.Kernel32.ReadConsoleInputW(Native Method), org.fusesource.jansi.internal.Kernel32.readConsoleInputHelper(Kernel32.java:761), org.fusesource.jansi.internal.Kernel32.readConsoleKeyInput(Kernel32.java:794), org.fusesource.jansi.internal.WindowsSupport.readConsoleInput(WindowsSupport.java:97), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.readConsoleInput(WindowsTerminal.java:215), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.access$000(WindowsTerminal.java:55), org.bukkit.craftbukkit.libs.jline.WindowsTerminal$1.read(WindowsTerminal.java:157), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:169), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:137), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:246), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:261), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:198), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2349), net.minecraft.server.v1_12_R1.DedicatedServer$2.run(DedicatedServer.java:84)], RUNNABLE Server thread: [java.lang.Thread.dumpThreads(Native Method), java.lang.Thread.getAllStackTraces(Unknown Source), org.bukkit.craftbukkit.v1_12_R1.CraftCrashReport.call(CraftCrashReport.java:30), net.minecraft.server.v1_12_R1.CrashReportSystemDetails.a(SourceFile:78), net.minecraft.server.v1_12_R1.CrashReport.h(CrashReport.java:128), net.minecraft.server.v1_12_R1.CrashReport.<init>(CrashReport.java:35), net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:571), java.lang.Thread.run(Unknown Source)], WAITING Snooper Timer: [java.lang.Object.wait(Native Method), java.lang.Object.wait(Unknown Source), java.util.TimerThread.mainLoop(Unknown Source), java.util.TimerThread.run(Unknown Source)], RUNNABLE Netty Server IO #0: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source), sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source), sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source), sun.nio.ch.SelectorImpl.select(Unknown Source), io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62), io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:752), io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:408), io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858), java.lang.Thread.run(Unknown Source)], WAITING Thread-4: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source), java.util.concurrent.LinkedBlockingQueue.take(Unknown Source), com.mojang.util.QueueLogAppender.getNextLogEvent(QueueLogAppender.java:77), org.bukkit.craftbukkit.v1_12_R1.util.TerminalConsoleWriterThread.run(TerminalConsoleWriterThread.java:27), java.lang.Thread.run(Unknown Source)], WAITING Finalizer: [java.lang.Object.wait(Native Method), java.lang.ref.ReferenceQueue.remove(Unknown Source), java.lang.ref.ReferenceQueue.remove(Unknown Source), java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)],}
    Recent tasks from -31--1{}
    Profiler Position: N/A (disabled)
    Is Modded: Definitely; Server brand changed to 'CraftBukkit'
    Type: Dedicated Server (map_server.txt)

    Is anyone familiar with this problem?

    Edit : I've looked around for this problem - I have tried:
    - reinstalling Java
    - updating Java
    - re-port forwarding
    - rebooting Modem and PC
     
    Last edited: Jul 30, 2017
  2. Offline

    Machine Maker

    @maxtyger
    Please post the console error, not the crash report. The console error can be found at logs/latest.log inside your server directory.
     
  3. Offline

    maxtyger

    Okay then, here it is

    [23:10:32] [Server thread/INFO]: Starting minecraft server version 1.12
    [23:10:32] [Server thread/INFO]: Loading properties
    [23:10:32] [Server thread/INFO]: Default game type: SURVIVAL
    [23:10:32] [Server thread/INFO]: Generating keypair
    [23:10:32] [Server thread/INFO]: Starting Minecraft server on *:25565
    [23:10:32] [Server thread/INFO]: Using default channel type
    [23:10:32] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-3819f8d (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT)
    [23:10:33] [Server thread/ERROR]: Encountered an unexpected exception
    com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 1 path $[0]
    at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:506) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:522) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at net.minecraft.server.v1_12_R1.JsonList.load(JsonList.java:174) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at net.minecraft.server.v1_12_R1.DedicatedPlayerList.A(SourceFile:99) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at net.minecraft.server.v1_12_R1.DedicatedPlayerList.<init>(SourceFile:25) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:186) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521) [craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_144]
    Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 1 path $[0]
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1401) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:593) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:414) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:504) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
    ... 7 more
    [23:10:33] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Max\Desktop\BukkitServer\.\crash-reports\crash-2017-07-30_23.10.33-server.txt
    [23:10:33] [Server thread/INFO]: Stopping server
     
  4. Offline

    Zombie_Striker

    @maxtyger
    How far into the integration have you gone? If you have tried porting over the worlds, remove them temporarily. Does that fix the problem?
     
  5. Offline

    maxtyger

    As far as moving the worlds, I did try changing the default world to the world I used in my Vanilla server, but then I changed it back to a server-generated world just while I get this set up.

    Removing the world didn't seem to work, but it didn't generate a new one either, it's probably crashing before that I assume.
     
  6. Offline

    Zombie_Striker

    @maxtyger
    Do you have any plugins installed? If so remove them and see if that fixes the problem?

    If not, try removing all files except the run.bat and the server jar, and let all the files auto-generate again. After that, slowly re-add the files until you can figure out which one is causing the problem.
     
  7. Offline

    maxtyger

    I hadn't ever installed any plugins.

    After retrying, things seem to be working now. I think what happened is I actually changed one of the JSON files by accident.

    I can try to add plugins now and hopefully the same crash won't happen.

    Edit : The issue isn't happening anymore
    thanks a lot @Zombie_Striker :)
     
    Last edited: Jul 30, 2017
  8. Offline

    Machine Maker

    @maxtyger
    Please mark this thread as Solved if your issue has been resolved.
     
Thread Status:
Not open for further replies.

Share This Page