mhxy233
Encountered an unexpected exception
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 2 column 4 path $
        at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350) ~[server.jar:?]
        at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:80) ~[server.jar:?]
        at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61) ~[server.jar:?]
        at rc.a(SourceFile:504) ~[server.jar:?]
        at rc.a(SourceFile:522) ~[server.jar:?]
        at pp.g(SourceFile:141) ~[server.jar:?]
        at ny.A(SourceFile:99) ~[server.jar:?]
        at ny.<init>(SourceFile:25) ~[server.jar:?]
        at nz.j(SourceFile:191) ~[server.jar:?]
        at net.minecraft.server.MinecraftServer.run(SourceFile:434) [server.jar:?]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_333]
用灵工艺开服的时候显示了这个东西
前面写着错误
昨天用还可以的
怎么办,求解
---- Minecraft Crash Report ----
// Uh... Did I do that?

Time: 22-6-9 上午8:24
Description: Exception in server tick loop

java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 2 column 4 path $
        at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350)
        at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:80)
        at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
        at rc.a(SourceFile:504)
        at rc.a(SourceFile:522)
        at pp.g(SourceFile:141)
        at ny.A(SourceFile:99)
        at ny.<init>(SourceFile:25)
        at nz.j(SourceFile:191)
        at net.minecraft.server.MinecraftServer.run(SourceFile:434)
        at java.lang.Thread.run(Unknown Source)


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

-- System Details --
Details:
        Minecraft Version: 1.12.2
        Operating System: Windows 10 (amd64) version 10.0
        Java Version: 1.8.0_333, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 7984469352 bytes (7614 MB) / 8232370176 bytes (7851 MB) up to 15271460864 bytes (14564 MB)
        JVM Flags: 2 total; -Xmx16384M -Xms8192M
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        Profiler Position: N/A (disabled)
        Is Modded: Unknown (can't tell)
        Type: Dedicated Server (map_server.txt)

这个是崩溃日志


roj234
似乎是ban列表的格式出错了,你可以试着把两个ban列表(banned-xxx.json)删除

mhxy233
roj234 发表于 2022-6-9 08:41
似乎是ban列表的格式出错了,你可以试着把两个ban列表(banned-xxx.json)删除

成功了,谢谢