@gatesx-0 问题是Mirai 2.11.0-M1有bug
gatesx 发布的帖子
-
RE: 一款简单网页截图插件
加载没问题,权限给了发生报错
环境:
mirai version 1.2.2-60c67fb
java 17
windows sever 2019
log:[92m2022-03-20 03:06:33 I/main: mirai-console started successfully.[0m[m
[0m2022-03-20 03:07:42 V/Bot.20428: [Mirai(6555)] 用Gsx(27262) -> 截图 https://baidu.com[0m[m
[0m2022-03-20 03:07:42 V/Bot.2058: Group(655) <- 正在截图。。。请稍等[0m[m
[91m2022-03-20 03:07:53 W/stderr: Exception in thread "Thread-17" java.lang.LinkageError: loader constraint violation: when resolving method 'org.openqa.selenium.remote.RemoteWebDriver xyz.cssxsh.mirai.plugin.MiraiSeleniumPlugin.driver(xyz.cssxsh.selenium.RemoteWebDriverConfig)' the class loader 'imageplugin-1.0-SNAPSHOT.mirai.jar' @15639440 of the current class, org/Command/PhantomTools, and the class loader 'mirai-selenium-plugin-2.0.7.mirai.jar' @733aa9d8 for the method's defining class, xyz/cssxsh/mirai/plugin/MiraiSeleniumPlugin, have different Class objects for the type xyz/cssxsh/selenium/RemoteWebDriverConfig used in the signature (org.Command.PhantomTools is in unnamed module of loader 'imageplugin-1.0-SNAPSHOT.mirai.jar' @15639440, parent loader net.mamoe.mirai.console.internal.plugin.DynLibClassLoader @28501a4b; xyz.cssxsh.mirai.plugin.MiraiSeleniumPlugin is in unnamed module of loader 'mirai-selenium-plugin-2.0.7.mirai.jar' @733aa9d8, parent loader net.mamoe.mirai.console.internal.plugin.DynLibClassLoader @28501a4b)
[0m[m
[91m2022-03-20 03:07:53 W/stderr: at imageplugin-1.0-SNAPSHOT.mirai.jar//org.Command.PhantomTools.lambda$onCommand$0(PhantomTools.java:37)
[0m[m
[91m2022-03-20 03:07:53 W/stderr: at java.base/java.lang.Thread.run(Thread.java:833)
[0m[m