MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接
    1. 主页
    2. mantou
    3. 最佳
    M
    • 资料
    • 关注 1
    • 粉丝 0
    • 主题 0
    • 帖子 9
    • 最佳 1
    • 有争议的 0
    • 群组 1

    mantou 发布的最佳帖子

    • RE: 一款简单网页截图插件

      发送截图命令瞬间报错,这是怎么回事?
      mirai-core版本2.13.2,seleium前置也是最新的
      浏览器设置的edge
      日志如下

      2023-01-31 14:51:05 V/Bot.1705609074: [没名字的群就是好群(1061257810)]  (2098581065) -> /截图 baidu.com
      2023-01-31 14:51:05 I/stdout: RobotConfig.enableRobot = true
      2023-01-31 14:51:05 I/stdout: 14:51:05.095 [DefaultDispatcher-worker-9] DEBUG org.ktorm.database - SQL: INSERT INTO wordcloud (sender_id, group_id, content, "time") VALUES (?, ?, ?, ?) 
      2023-01-31 14:51:05 I/stdout: 14:51:05.097 [DefaultDispatcher-worker-9] DEBUG org.ktorm.database - Parameters: [2098581065(bigint), 1061257810(bigint), /��ͼ baidu.com(text), 2023-01-31(date)]
      2023-01-31 14:51:05 I/stdout: 14:51:05.115 [DefaultDispatcher-worker-9] DEBUG org.ktorm.database - Effects: 1
      2023-01-31 14:51:05 V/Bot.1705609074: Group(1061257810) <- 正在截图。。。请稍等
      2023-01-31 14:51:05 W/stderr: Exception in thread "Thread-11527" java.lang.LinkageError: loader constraint violation: when resolving method "xyz.cssxsh.selenium.SeleniumToolKt.RemoteWebDriver(Lxyz/cssxsh/selenium/RemoteWebDriverConfig;)Lorg/openqa/selenium/remote/RemoteWebDriver;" the class loader 'imagepluginv0.0.3.jar' @7fedb795 (instance of net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN, child of 'global-shared' @52b3bf03 net.mamoe.mirai.console.internal.plugin.DynLibClassLoader) of the current class, xyz/cssxsh/mirai/plugin/MiraiSeleniumPlugin, and the class loader 'mirai-selenium-plugin-2.2.5.mirai2.jar' @19fd43da (instance of net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN, child of 'global-shared' @52b3bf03 net.mamoe.mirai.console.internal.plugin.DynLibClassLoader) for the method's defining class, xyz/cssxsh/selenium/SeleniumToolKt, have different Class objects for the type xyz/cssxsh/selenium/RemoteWebDriverConfig used in the signature
      2023-01-31 14:51:05 W/stderr: 	at imagepluginv0.0.3.jar//xyz.cssxsh.mirai.plugin.MiraiSeleniumPlugin.driver(MiraiSeleniumPlugin.kt:57)
      2023-01-31 14:51:05 W/stderr: 	at imagepluginv0.0.3.jar//org.Command.PhantomTools.lambda$onCommand$0(PhantomTools.java:37)
      2023-01-31 14:51:05 W/stderr: 	at java.base/java.lang.Thread.run(Thread.java:834)
      
      
      发布在 插件发布
      M
      mantou
    • 1 / 1