Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务器启动时插件启动失败 #39

Closed
NoMathExpectation opened this issue Sep 3, 2021 · 2 comments
Closed

服务器启动时插件启动失败 #39

NoMathExpectation opened this issue Sep 3, 2021 · 2 comments
Assignees
Labels
漏洞 有些东西爆炸了

Comments

@NoMathExpectation
Copy link

问题描述

如标题,我实在不知道怎么回事。

复现方法

版本类型

  • Minecraft 服务端版本:paper 1.17.1
  • MiraiMC 插件版本:1.4 pre1

服务器日志

(节选)

[22:05:41 INFO]: Enabling MiraiMC v1.4-pre1
[22:05:41 INFO]: Mirai working dir: default
[22:05:41 INFO]: Starting Mirai-Events listener.
[22:05:42 ERROR]: Error occurred while enabling MiraiMC v1.4-pre1 (Is it up to date?)
java.lang.LinkageError: loader constraint violation in interface itable initialization for class net.mamoe.mirai.internal.event.Handler: when selecting method 'java.lang.Object kotlin.coroutines.CoroutineContext.fold(java.lang.Object, kotlin.jvm.functions.Function2)' the class loader 'app' for super interface kotlin.coroutines.CoroutineContext, and the class loader 'MiraiMC-release.jar' @1f38cf4 of the selected method's class, net.mamoe.mirai.internal.event.Handler have different Class objects for the type kotlin.jvm.functions.Function2 used in the signature (kotlin.coroutines.CoroutineContext is in unnamed module of loader 'app'; net.mamoe.mirai.internal.event.Handler is in unnamed module of loader 'MiraiMC-release.jar' @1f38cf4, parent loader 'app')
	at net.mamoe.mirai.event.EventChannel.createListener(EventChannel.kt:606) ~[MiraiMC-release.jar:?]
	at net.mamoe.mirai.event.EventChannel.subscribeAlways(EventChannel.kt:511) ~[MiraiMC-release.jar:?]
	at net.mamoe.mirai.event.EventChannel.subscribeAlways$default(EventChannel.kt:503) ~[MiraiMC-release.jar:?]
	at net.mamoe.mirai.event.EventChannel.subscribeAlways(EventChannel.kt) ~[MiraiMC-release.jar:?]
	at me.dreamvoid.miraimc.bukkit.MiraiEvent.startListenEvent(MiraiEvent.java:81) ~[MiraiMC-release.jar:?]
	at me.dreamvoid.miraimc.bukkit.BukkitPlugin.onEnable(BukkitPlugin.java:42) ~[MiraiMC-release.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:529) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:443) ~[patched_1.17.1.jar:git-Paper-172]
	at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:639) ~[patched_1.17.1.jar:git-Paper-172]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:306) ~[patched_1.17.1.jar:git-Paper-172]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1126) ~[patched_1.17.1.jar:git-Paper-172]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-172]
	at java.lang.Thread.run(Thread.java:831) [?:?]
[22:05:42 INFO]: Disabling MiraiMC v1.4-pre1
[22:05:42 INFO]: Stopping bot event listener.
[22:05:42 ERROR]: Error occurred while disabling MiraiMC v1.4-pre1 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "net.mamoe.mirai.event.Listener.complete()" because "this.BotOnlineListener" is null
	at me.dreamvoid.miraimc.bukkit.MiraiEvent.stopListenEvent(MiraiEvent.java:160) ~[MiraiMC-release.jar:?]
	at me.dreamvoid.miraimc.bukkit.BukkitPlugin.onDisable(BukkitPlugin.java:94) ~[MiraiMC-release.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:405) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:533) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:529) ~[patched_1.17.1.jar:git-Paper-172]
	at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:443) ~[patched_1.17.1.jar:git-Paper-172]
	at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:639) ~[patched_1.17.1.jar:git-Paper-172]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:306) ~[patched_1.17.1.jar:git-Paper-172]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1126) ~[patched_1.17.1.jar:git-Paper-172]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-172]
	at java.lang.Thread.run(Thread.java:831) [?:?]
@NoMathExpectation NoMathExpectation added the 漏洞 有些东西爆炸了 label Sep 3, 2021
@DreamVoid
Copy link
Owner

DreamVoid commented Sep 3, 2021

似乎是ClassLoader冲突,但是我本地测试没有问题
这给我整不会了


请尝试先移除所有插件,然后逐个加入并重新启动服务器,直到复现此问题,并将相应插件名称回复给我。

@DreamVoid DreamVoid added the 需要帮助 请进一步提供相关信息 label Sep 3, 2021
@NoMathExpectation
Copy link
Author

找到了,是Trmenu,这家伙内置了TabooLib

不过没关系了,更新了Trmenu后这个bug就没了

@DreamVoid DreamVoid removed the 需要帮助 请进一步提供相关信息 label Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
漏洞 有些东西爆炸了
Projects
None yet
Development

No branches or pull requests

2 participants