Nova-Committee / McBot

A mod allowed you to connect minecraft and QQ
Other
137 stars 18 forks source link

q群一转发到服务器就自动崩溃 #60

Closed china-us closed 1 year ago

china-us commented 1 year ago

bot是go-cqhttp 1.0-rc4 Bot Connect版本是1.19.x的 2.1.0 服务器版本是1.19.3

china-us commented 1 year ago

[11:49:46] [Server thread/INFO]: [Safe_Saffawa: 接收群内聊天消息开关已被设置为打开] [11:49:55] [Server thread/ERROR]: Encountered an unexpected exception net.minecraft.class_148: Exception ticking world at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:890) ~[server-intermediary.jar:?] at net.minecraft.class_3176.method_3813(class_3176.java:283) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:830) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.handler$zbk000$modifiedRunLoop(MinecraftServer.java:3408) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:655) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:264) ~[server-intermediary.jar:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.ClassCastException: class net.minecraft.class_2585 cannot be cast to class net.minecraft.class_2588 (net.minecraft.class_2585 and net.minecraft.class_2588 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @146ba0ac) at net.minecraft.class_3324.handler$cci000$filterBroadCastMessages(class_3324.java:4500) ~[server-intermediary.jar:?] at net.minecraft.class_3324.method_43514(class_3324.java) ~[server-intermediary.jar:?] at cn.evolvefield.mods.botapi.init.handler.TickEventHandler.lambda$init$0(TickEventHandler.java:33) ~[Bot-Connect-fabric-1.19.X-2.1.0.jar:?] at net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents.lambda$static$4(ServerTickEvents.java:84) ~[fabric-lifecycle-events-v1-2.2.1+23a79c8a85-fdf6022de137ae17.jar:?] at net.minecraft.class_3218.handler$bpd000$startWorldTick(class_3218.java:14716) ~[server-intermediary.jar:?] at net.minecraft.class_3218.method_18765(class_3218.java:283) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:886) ~[server-intermediary.jar:?] ... 6 more [11:49:55] [Server thread/ERROR]: This crash report has been saved to: D:\2.5\server.\crash-reports\crash-2023-02-04_11.49.55-server.txt [11:49:55] [Server thread/INFO]: ▌ §c正在关闭群服互联 §a┈━═☆

[11:49:55] [Server thread/INFO]: [STDOUT]: [REQUEST][URL: http://127.0.0.1/msg][ERROR MESSAGE: Connection refused: connect] [11:49:55] [Server thread/ERROR]: --------Network Exception-------->: java.net.ConnectException: Connection refused: connect at sun.nio.ch.Net.connect0(Native Method) ~[?:?] at sun.nio.ch.Net.connect(Net.java:579) ~[?:?] at sun.nio.ch.Net.connect(Net.java:568) ~[?:?] at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) ~[?:?] at java.net.Socket.connect(Socket.java:633) ~[?:?] at java.net.Socket.connect(Socket.java:583) ~[?:?] at sun.net.NetworkClient.doConnect(NetworkClient.java:183) ~[?:?] at sun.net.www.http.HttpClient.openServer(HttpClient.java:531) ~[?:?] at sun.net.www.http.HttpClient.openServer(HttpClient.java:636) ~[?:?] at sun.net.www.http.HttpClient.(HttpClient.java:279) ~[?:?] at sun.net.www.http.HttpClient.New(HttpClient.java:384) ~[?:?] at sun.net.www.http.HttpClient.New(HttpClient.java:406) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1309) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1057) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1430) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1401) ~[?:?] at io.wifi.joinmsg.joinmsg.sendPostRequest(joinmsg.java:75) ~[JoinLeaveMessageNetwork-1.0.3.jar:?] at io.wifi.joinmsg.joinmsg.lambda$regEvents$1(joinmsg.java:119) ~[JoinLeaveMessageNetwork-1.0.3.jar:?] at net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$4(ServerLifecycleEvents.java:63) ~[fabric-lifecycle-events-v1-2.2.1+23a79c8a85-fdf6022de137ae17.jar:?] at net.minecraft.server.MinecraftServer.handler$bpa000$beforeShutdownServer(MinecraftServer.java:7829) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_3782(MinecraftServer.java) ~[server-intermediary.jar:?] at net.minecraft.class_3176.method_3782(class_3176.java:536) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:708) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:264) ~[server-intermediary.jar:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] [11:49:55] [Server thread/INFO]: Stopping server [11:49:55] [Server thread/INFO]: Saving players [11:49:55] [Server thread/INFO]: Safe_Saffawa lost connection: Server closed [11:49:55] [Server thread/INFO]: [STDOUT]: [REQUEST][URL: http://127.0.0.1/msg][ERROR MESSAGE: Connection refused: connect] [11:49:55] [Server thread/ERROR]: --------Network Exception-------->: java.net.ConnectException: Connection refused: connect at sun.nio.ch.Net.connect0(Native Method) ~[?:?] at sun.nio.ch.Net.connect(Net.java:579) ~[?:?] at sun.nio.ch.Net.connect(Net.java:568) ~[?:?] at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) ~[?:?] at java.net.Socket.connect(Socket.java:633) ~[?:?] at java.net.Socket.connect(Socket.java:583) ~[?:?] at sun.net.NetworkClient.doConnect(NetworkClient.java:183) ~[?:?] at sun.net.www.http.HttpClient.openServer(HttpClient.java:531) ~[?:?] at sun.net.www.http.HttpClient.openServer(HttpClient.java:636) ~[?:?] at sun.net.www.http.HttpClient.(HttpClient.java:279) ~[?:?] at sun.net.www.http.HttpClient.New(HttpClient.java:384) ~[?:?] at sun.net.www.http.HttpClient.New(HttpClient.java:406) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1309) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1057) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1430) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1401) ~[?:?] at io.wifi.joinmsg.joinmsg.sendPostRequest(joinmsg.java:75) ~[JoinLeaveMessageNetwork-1.0.3.jar:?] at io.wifi.joinmsg.joinmsg.sendMessage(joinmsg.java:57) ~[JoinLeaveMessageNetwork-1.0.3.jar:?] at net.minecraft.class_3324.handler$cci000$filterBroadCastMessages(class_3324.java:4512) ~[server-intermediary.jar:?] at net.minecraft.class_3324.method_43514(class_3324.java) ~[server-intermediary.jar:?] at net.minecraft.class_3244.method_10839(class_3244.java:1232) ~[server-intermediary.jar:?] at net.minecraft.class_2535.method_10768(class_2535.java:423) ~[server-intermediary.jar:?] at net.minecraft.class_1255.method_19537(class_1255.java:87) ~[server-intermediary.jar:?] at net.minecraft.class_3244.method_14367(class_3244.java:353) ~[server-intermediary.jar:?] at net.minecraft.class_3324.method_14597(class_3324.java:788) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_3782(MinecraftServer.java:586) ~[server-intermediary.jar:?] at net.minecraft.class_3176.method_3782(class_3176.java:536) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:708) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:264) ~[server-intermediary.jar:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] [11:49:55] [Server thread/INFO]: Safe_Saffawa left the game [11:49:55] [Server thread/INFO]: Saving worlds [11:49:56] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld [11:49:56] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether [11:49:56] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end [11:49:56] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved [11:49:56] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [11:49:56] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [11:49:56] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved [11:49:56] [Server thread/INFO]: Preparing local backup snapshots/7352fabe-cd81-471a-98ff-2e1b0a35013d/2023-02-04_11-49-56 [11:49:56] [Server thread/INFO]: Disabling world save for 'git add' [11:49:56] [Server thread/INFO]: Adding 16 new or modified files to index [11:49:57] [Server thread/INFO]: World save re-enabled. [11:49:57] [Server thread/INFO]: Local backup complete. [11:49:57] [Server thread/WARN]: Skipping remote backup because no remote url has been configured. [11:49:57] [Server thread/INFO]: onWorldStop complete [11:49:57] [Server thread/INFO]: onTermination complete [11:49:57] [Server thread/INFO]: Thread RCON Listener stopped

cnlimiter commented 1 year ago

具体是执行了什么呢,我这里复现,q群往服务器发送没有问题

china-us commented 1 year ago

那作者能不能提供下你用的版本

cnlimiter commented 1 year ago

就是1.19.x 2.1.0

cnlimiter commented 1 year ago

https://maven.nova-committee.cn/#/releases/cn/evolvefield/mods/Bot-Connect-fabric/2.1.0/Bot-Connect-fabric-1.19.X-2.1.0.jar

china-us commented 1 year ago

D:\2.5\server>dragonwell-17.0.5.0.5+8-GA\bin\java.exe -Xms500m -Xmx6000M -jar fabric-server-mc.1.19.3-loader.0.14.13-launcher.0.11.1.jar nogui Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture [15:19:50] [main/INFO]: Loading Minecraft 1.19.3 with Fabric Loader 0.14.13 [15:19:50] [ForkJoinPool-1-worker-2/WARN]: Mod botapi uses the version 1.19.X-2.1.0 which isn't compatible with Loader's extended semantic version format (Could not parse version number component 'X'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version [15:19:50] [ForkJoinPool-1-worker-1/WARN]: Mod org_eclipse_jgit_org_eclipse_jgit_ssh_apache uses the version 6.4.0.202211300538-r which isn't compatible with Loader's extended semantic version format (Could not parse version number component '202211300538'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version [15:19:50] [ForkJoinPool-1-worker-2/WARN]: Mod org_eclipse_jgit_org_eclipse_jgit uses the version 6.4.0.202211300538-r which isn't compatible with Loader's extended semantic version format (Could not parse version number component '202211300538'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version [15:19:50] [main/INFO]: Loading 69 mods:

china-us commented 1 year ago

这是一份完整的

cnlimiter commented 1 year ago

我说呢,你的自定义命令写错了

cnlimiter commented 1 year ago

这是一份完整的 你重新下载试试,我更新了文件https://maven.nova-committee.cn/#/releases/cn/evolvefield/mods/Bot-Connect-fabric/2.1.0/Bot-Connect-fabric-1.19.X-2.1.0.jar

china-us commented 1 year ago

我不是太清楚 是Bot-Connect配置问题吗

cnlimiter commented 1 year ago

没有问题,可能是有模组冲突,你再试试我刚刚更新的

china-us commented 1 year ago

我用的就是你发的最新

china-us commented 1 year ago

查到了是Post Server Join & Leave Messages to URL 打扰了也抱歉了