@MuShin 确认是最新版的问题,回退到旧版2.11.0-M1即正常。另外问问如何在MCL本体报错的情况下禁用updater(
MuShin 发布的最新帖子
-
RE: 收集 2.11.0-RC 及以上的过一段时间后无法发送或接收消息的日志
-
RE: 收集 2.11.0-RC 及以上的过一段时间后无法发送或接收消息的日志
2.11.0-RC直接miraiconsole初始化失败,退出了。
这个版本更新刚有的,之前没有。
下面是日志:[92m2022-05-03 21:59:42 I/main: Starting mirai-console...[0m[m
[92m2022-05-03 21:59:42 I/main: Backend: version 2.11.0-RC, built on 2022-05-02 18:45:09.[0m[m
[92m2022-05-03 21:59:42 I/main: Frontend Terminal: version 2.11.0-RC, provided by Mamoe Technologies[0m[m
[92m2022-05-03 21:59:42 I/main: Welcome to visit https://mirai.mamoe.net/[0m[m
[31m2022-05-03 21:59:43 E/main: Failed to init MiraiConsole.
java.lang.ExceptionInInitializerErrorat java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at net.mamoe.mirai.FindMiraiInstanceKt.findMiraiInstance(findMiraiInstance.kt:18)
at net.mamoe.mirai._MiraiInstance.get(IMirai.kt:352)
at net.mamoe.mirai.Mirai.getInstance(IMirai.kt:40)
at net.mamoe.mirai.internal.message.MessageSerializersImpl.getSerializersModule(MessageSerializersImpl.kt:196)
at net.mamoe.mirai.message.MessageSerializers$INSTANCE.getSerializersModule(MessageSerializers.kt)
at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl$createYaml$1.invoke(MultiFilePluginDataStorageImpl.kt:101)
at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl$createYaml$1.invoke(MultiFilePluginDataStorageImpl.kt:99)
at net.mamoe.yamlkt.YamlKt.Yaml(Yaml.kt:242)
at net.mamoe.yamlkt.YamlKt.Yaml$default(Yaml.kt:240)
at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl.createYaml(MultiFilePluginDataStorageImpl.kt:99)
at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl.load(MultiFilePluginDataStorageImpl.kt:40)
at net.mamoe.mirai.console.internal.data.builtins.ConsoleDataScopeImpl.addAndReloadConfig(ConsoleDataScopeImpl.kt:41)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:160)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:444)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:159)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:158)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:76)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155)
at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105)
at org.mozilla.javascript.Context.call(Context.java:554)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105)
at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126)
at com.sun.proxy.$Proxy4.run(Unknown Source)
at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:101)
at org.itxtech.mcl.Loader.start(Loader.java:129)
at org.itxtech.mcl.Loader.main(Loader.java:53)
Caused by: java.lang.ClassCastException: class net.mamoe.mirai.internal.MiraiImpl$Companion cannot be cast to class net.mamoe.mirai.IMirai (net.mamoe.mirai.internal.MiraiImpl$Companion and net.mamoe.mirai.IMirai are in unnamed module of loader java.net.URLClassLoader @2f59fa)
at net.mamoe.mirai.FindMiraiInstanceKt.findMiraiInstance(findMiraiInstance.kt:18)
at net.mamoe.mirai._MiraiInstance.get(IMirai.kt:352)
at net.mamoe.mirai.Mirai.getInstance(IMirai.kt:40)
at net.mamoe.mirai.internal.message.MessageSerializersImpl.getSerializersModule(MessageSerializersImpl.kt:196)
at net.mamoe.mirai.internal.message.MessageSerializersImpl.registerSerializer(MessageSerializersImpl.kt:202)
at net.mamoe.mirai.message.MessageSerializers$INSTANCE.registerSerializer(MessageSerializers.kt)
at net.mamoe.mirai.internal.MiraiImpl.<clinit>(MiraiImpl.kt:74)
... 47 more
[0m[m