cssxsh / bilibili-helper

Mirai Console 插件开发计划
https://github.com/users/cssxsh/projects/4
GNU Affero General Public License v3.0
144 stars 18 forks source link

1.2.2无法启动 #45

Closed Haocen2004 closed 3 years ago

Haocen2004 commented 3 years ago
 14:11:53 [INFO] Verifying "net.mamoe:mirai-console" version 2.8.0-RC
 14:11:53 [INFO] Verifying "net.mamoe:mirai-console-terminal" version 2.8.0-RC
 14:11:53 [INFO] Verifying "net.mamoe:mirai-core-all" version 2.8.0-RC
 14:11:53 [INFO] Verifying "net.mamoe:chat-command" version 0.5.1
 14:11:53 [INFO] Verifying "io.github.karlatemp:luckperms" version 2.5-RC-dev-3+5.3-SNAPSHOT
 14:11:53 [INFO] Verifying "xyz.cssxsh:bilibili-helper" version 1.2.2
 14:11:54 [WARNING] Package "net.mamoe:chat-command" requires "net.mamoe:mirai-console" version 2.0-RC. Current version is 2.8.0-RC
2021-11-09 14:11:54 I/main: Starting mirai-console...
2021-11-09 14:11:55 I/main: Backend: version 2.8.0-RC, built on 2021-10-31 05:53:59.
2021-11-09 14:11:55 I/main: Frontend Terminal: version 2.8.0-RC, provided by Mamoe Technologies
2021-11-09 14:11:55 I/main: Welcome to visit https://mirai.mamoe.net/
2021-11-09 14:11:55 E/main: Failed to init MiraiConsole.
net.mamoe.mirai.console.internal.util.ServiceLoadException: Could not load service xyz.cssxsh.mirai.plugin.BiliHelperPlugin.
    at net.mamoe.mirai.console.internal.util.PluginServiceHelper.loadService(PluginServiceHelper.kt:60)
    at net.mamoe.mirai.console.internal.util.PluginServiceHelper.loadAllServices(PluginServiceHelper.kt:42)
    at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl$extractPlugins$findAllInstances$2.invoke(BuiltInJvmPluginLoaderImpl.kt:76)
    at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl$extractPlugins$findAllInstances$2.invoke(BuiltInJvmPluginLoaderImpl.kt:71)
    at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
    at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:314)
    at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:303)
    at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:214)
    at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:214)
    at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:316)
    at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:303)
    at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:786)
    at kotlin.sequences.SequencesKt___SequencesKt.toSet(_Sequences.kt:827)
    at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.extractPlugins(BuiltInJvmPluginLoaderImpl.kt:95)
    at net.mamoe.mirai.console.plugin.loader.AbstractFilePluginLoader.listPlugins(FilePluginLoader.kt:51)
    at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.listPlugins(JvmPluginLoader.kt)
    at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.listAndSortAllPlugins(PluginManagerImpl.kt:186)
    at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.findAndSortAllPluginsUsingBuiltInLoaders(PluginManagerImpl.kt:130)
    at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadAllPluginsUsingBuiltInLoaders$mirai_console(PluginManagerImpl.kt:140)
    at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:157)
    at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:276)
    at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:152)
    at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:151)
    at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:47)
    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.NoClassDefFoundError: Lorg/openqa/selenium/remote/RemoteWebDriver;
    at java.base/java.lang.Class.getDeclaredFields0(Native Method)
    at java.base/java.lang.Class.privateGetDeclaredFields(Unknown Source)
    at java.base/java.lang.Class.getDeclaredField(Unknown Source)
    at kotlin.reflect.jvm.internal.KClassImpl$Data$objectInstance$2.invoke(KClassImpl.kt:115)
    at kotlin.reflect.jvm.internal.ReflectProperties$LazyVal.invoke(ReflectProperties.java:62)
    at kotlin.reflect.jvm.internal.ReflectProperties$Val.getValue(ReflectProperties.java:31)
    at kotlin.reflect.jvm.internal.KClassImpl$Data.getObjectInstance(KClassImpl.kt)
    at kotlin.reflect.jvm.internal.KClassImpl.getObjectInstance(KClassImpl.kt:242)
    at net.mamoe.mirai.console.internal.util.PluginServiceHelper.loadService(PluginServiceHelper.kt:52)
    ... 51 more
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.remote.RemoteWebDriver
    at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass$mirai_console(JvmPluginClassLoader.kt:110)
    at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass(JvmPluginClassLoader.kt:51)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    ... 60 more
Haocen2004 commented 3 years ago

删了driver后依旧报错而且不重新释放

cssxsh commented 3 years ago

不能复现,请检查下载的插件是否有问题

Haocen2004 commented 3 years ago

删除重试了 一样报错 是从mcl下载的 能过它的sha校验

Haocen2004 commented 3 years ago

更换release处手动下载正常 建议排查下mcl云端指向的文件是不是有啥错误

cssxsh commented 3 years ago

删除重试了 一样报错 是从mcl下载的 能过它的sha校验

18M 左右大小才是需要下载的版本, mcl下载有可能会下载错误的版本