simple-robot / simpler-robot

Simple Robot,一个bot风格的Kotlin多平台事件调度框架,异步高效、Java友好!/ A Bot-style Kotlin Multiplatform event scheduling framework, asynchronous and high-performance, java-friendly! 🐱😼😻😸
https://simbot.forte.love
GNU Lesser General Public License v3.0
512 stars 44 forks source link

当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面 #605

Closed Mr-GGBond closed 1 year ago

Mr-GGBond commented 1 year ago

版本号

3.0.0-RC.3

附加版本

simbot-component-mirai-core 3.0.0.0-M5 spring-boot 3.0.2

涉及的编程语言

Java

项目构建工具

Maven

涉及的组件库

No response

问题描述

原本是正常的,使用手机修改了机器人账号个人信息之后,再次登录提示版本过低,然后删除了cache文件夹和device.json文件再次启动,提示禁止登录,当前qq版本过低,更换账号出现同样问题无法登录

复现方式

启动项目报错

相关日志

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.0.2)

2023-02-23T16:51:09.318+08:00  INFO 6001 --- [           main] com.robot.RobotApplication               : Starting RobotApplication using Java 17.0.4.1 with PID 6001 (/Users/mininglamp/Desktop/文档/sgw/code/robot/target/classes started by mininglamp in /Users/mininglamp/Desktop/文档/sgw/code)
2023-02-23T16:51:09.320+08:00  INFO 6001 --- [           main] com.robot.RobotApplication               : The following 1 profile is active: "dev"
2023-02-23T16:51:10.317+08:00  INFO 6001 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 5802 (http)
2023-02-23T16:51:10.323+08:00  INFO 6001 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2023-02-23T16:51:10.323+08:00  INFO 6001 --- [           main] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.5]
2023-02-23T16:51:10.371+08:00  INFO 6001 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2023-02-23T16:51:10.372+08:00  INFO 6001 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 977 ms
2023-02-23T16:51:10.679+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.AccountBag".
2023-02-23T16:51:10.682+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.AccountBag ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.706+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.AccountCommand".
2023-02-23T16:51:10.706+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.AccountCommand ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.717+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.AccountMonitor".
2023-02-23T16:51:10.717+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.AccountMonitor ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.727+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.AccountPet".
2023-02-23T16:51:10.727+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.AccountPet ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.745+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.AccountPetSkill".
2023-02-23T16:51:10.745+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.AccountPetSkill ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.753+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.Article".
2023-02-23T16:51:10.754+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.Article ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.761+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.ConfigParam".
2023-02-23T16:51:10.762+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.ConfigParam ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.771+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.DataMsgRecord".
2023-02-23T16:51:10.771+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.DataMsgRecord ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.778+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.DataQuotations".
2023-02-23T16:51:10.778+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.DataQuotations ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.785+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.ExplorationEvent".
2023-02-23T16:51:10.785+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.ExplorationEvent ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.792+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.Pet".
2023-02-23T16:51:10.792+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.Pet ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.802+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.PetSkill".
2023-02-23T16:51:10.802+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.PetSkill ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.809+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.Score".
2023-02-23T16:51:10.809+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.Score ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.816+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.WordViolation".
2023-02-23T16:51:10.816+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.WordViolation ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
 _ _   |_  _ _|_. ___ _ |    _ 
| | |\/|_)(_| | |_\  |_)||_|_\ 
     /               |         
                        3.5.3 
2023-02-23T16:51:10.874+08:00  WARN 6001 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.DataGroupStatistics".
2023-02-23T16:51:10.874+08:00  WARN 6001 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.DataGroupStatistics ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-23T16:51:10.985+08:00  INFO 6001 --- [           main] love.forte.simbot.utils.BlockingRunner   : Blocking runner wait timeout is enabled with wait timeout 1m. You can enable debug logging for 'love.forte.simbot.utils.BlockingRunner' for more stack information or disable it with the JVM parameter '-Dsimbot.blockingRunner.disableWaitTimeout=true'.
2023-02-23T16:51:10.994+08:00  INFO 6001 --- [           main] ngBootComponentAutoInstallBuildConfigure : The number of Installable Event Provider Factories is 0
2023-02-23T16:51:10.994+08:00  INFO 6001 --- [           main] ngBootComponentAutoInstallBuildConfigure : Install components by [installAllComponents] via classLoader jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7
2023-02-23T16:51:11.137+08:00  INFO 6001 --- [           main] otEventProviderAutoInstallBuildConfigure : The number of Installable event provider Factories is 0
2023-02-23T16:51:11.137+08:00  INFO 6001 --- [           main] otEventProviderAutoInstallBuildConfigure : Install event providers by [installAllEventProviders] via classLoader jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7
2023-02-23T16:51:11.151+08:00  INFO 6001 --- [           main] s.a.a.SpringBootApplicationConfiguration : The size of providers built is 1
2023-02-23T16:51:11.153+08:00  INFO 6001 --- [           main] s.a.a.SpringBootApplicationConfiguration : Bots all registered. The size of bots: 0
2023-02-23T16:51:11.153+08:00  INFO 6001 --- [           main] s.a.a.SpringBootApplicationConfiguration : Simbot Spring Boot Application built in 159.985083ms
2023-02-23T16:51:11.256+08:00  WARN 6001 --- [           main] .s.b.StandardBotVerifyInfoDecoderFactory : Unable to find the com.charleskorn.kaml:kaml in current classpath, the bot configuration parser in *.bot.yaml format will not be available.
2023-02-23T16:51:11.256+08:00  WARN 6001 --- [           main] .s.b.StandardBotVerifyInfoDecoderFactory : Unable to find the kotlinx-serialization-properties in current classpath, the bot configuration parser in *.bot.properties format will not be available.
2023-02-23T16:51:11.262+08:00  INFO 6001 --- [           main] tSpringBootBotAutoRegisterBuildConfigure : Registering bot with verify info [love.forte.simbot.bot.PathBotVerifyInfo@165454f7]
2023-02-23T16:51:11.519+08:00  INFO 6001 --- [atcher-worker-3] love.forte.simbot.mirai.net.486231518    : ECDH key is invalid, start to fetch ecdh public key from server.
2023-02-23T16:51:11.728+08:00  INFO 6001 --- [atcher-worker-2] love.forte.simbot.mirai.net.486231518    : Successfully fetched ecdh public key from server.
2023-02-23T16:51:11.843+08:00  INFO 6001 --- [ntLoopGroup-2-3] love.forte.simbot.mirai.bot.486231518    : Calculating type 2 PoW, it can take some time....
2023-02-23T16:51:11.866+08:00  INFO 6001 --- [ntLoopGroup-2-3] love.forte.simbot.mirai.bot.486231518    : Got PoW result, cost: 23 ms
2023-02-23T16:51:11.869+08:00  INFO 6001 --- [atcher-worker-2] love.forte.simbot.mirai.bot.486231518    : [SliderCaptcha] 需要滑动验证码, 请按照以下链接的步骤完成滑动验证码, 然后输入获取到的 ticket
2023-02-23T16:51:11.869+08:00  INFO 6001 --- [atcher-worker-2] love.forte.simbot.mirai.bot.486231518    : [SliderCaptcha] Slider captcha required. Please solve the captcha with following link. Type ticket here after completion.
2023-02-23T16:51:11.869+08:00  INFO 6001 --- [atcher-worker-2] love.forte.simbot.mirai.bot.486231518    : [SliderCaptcha] @see https://github.com/project-mirai/mirai-login-solver-selenium
2023-02-23T16:51:11.869+08:00  INFO 6001 --- [atcher-worker-2] love.forte.simbot.mirai.bot.486231518    : [SliderCaptcha] @see https://docs.mirai.mamoe.net/mirai-login-solver-selenium/
2023-02-23T16:51:11.869+08:00  INFO 6001 --- [atcher-worker-2] love.forte.simbot.mirai.bot.486231518    : [SliderCaptcha] 或者输入 TxCaptchaHelper 来使用 TxCaptchaHelper 完成滑动验证码
2023-02-23T16:51:11.869+08:00  INFO 6001 --- [atcher-worker-2] love.forte.simbot.mirai.bot.486231518    : [SliderCaptcha] Or type `TxCaptchaHelper` to resolve slider captcha with TxCaptchaHelper.apk
2023-02-23T16:51:11.869+08:00  INFO 6001 --- [atcher-worker-2] love.forte.simbot.mirai.bot.486231518    : [SliderCaptcha] Captcha link: https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?style=simple&aid=16&uin=486231518&sid=5530172696273823999&cap_cd=fN0zulW-H1ZjaP4qyS1z6RX-SSbisOARUYBYi2FgspIXyaiIUsu85w**&clientype=1&apptype=2
t03t3dgdpggfy95TkjaG93hzJzoiylrhO2vgLVpFBjy_CDtSI8ZtQY3bwLKMKHcluKvVqIGimYiDCMWvh56NABZJUz8dz6p-gOeqimwVyCGHX3WMsnfv67w3K3vjTkT_4ZO
2023-02-23T16:51:38.881+08:00  INFO 6001 --- [atcher-worker-3] love.forte.simbot.mirai.bot.486231518    : [SliderCaptcha] 正在提交中...
2023-02-23T16:51:38.883+08:00  INFO 6001 --- [atcher-worker-3] love.forte.simbot.mirai.bot.486231518    : [SliderCaptcha] Submitting...
2023-02-23T16:51:39.040+08:00  WARN 6001 --- [atcher-worker-3] love.forte.simbot.mirai.net.486231518    : Exception in resumeConnection.

net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(486231518), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=�)
    at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:248) ~[mirai-core-jvm-2.14.0.jar:2.14.0]
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)]
    at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)]
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
Caused by: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(486231518), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=�)
    at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:331) ~[mirai-core-jvm-2.14.0.jar:2.14.0]
    at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) ~[mirai-core-jvm-2.14.0.jar:2.14.0]
    ... 9 common frames omitted

2023-02-23T16:51:39.050+08:00  WARN 6001 --- [atcher-worker-3] love.forte.simbot.mirai.net.486231518    : Network selector received exception, closing bot. (net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(486231518), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=�))
2023-02-23T16:51:39.058+08:00  INFO 6001 --- [ntLoopGroup-2-5] love.forte.simbot.mirai.bot.486231518    : Bot cancelled: Bot closed
2023-02-23T16:51:39.061+08:00  WARN 6001 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simbotApplicationAfterApplication' defined in love.forte.simboot.spring.autoconfigure.SimbotSpringBootApplicationConfiguration: Failed to instantiate [love.forte.simboot.spring.autoconfigure.AutoConfigureMarker$AfterApplicationPostProcessor]: Factory method 'simbotApplicationAfterApplication' threw exception with message: Can't overwrite cause with a null
2023-02-23T16:51:39.069+08:00  INFO 6001 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2023-02-23T16:51:39.085+08:00  INFO 6001 --- [           main] .s.b.a.l.ConditionEvaluationReportLogger : 

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-02-23T16:51:39.103+08:00 ERROR 6001 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simbotApplicationAfterApplication' defined in love.forte.simboot.spring.autoconfigure.SimbotSpringBootApplicationConfiguration: Failed to instantiate [love.forte.simboot.spring.autoconfigure.AutoConfigureMarker$AfterApplicationPostProcessor]: Factory method 'simbotApplicationAfterApplication' threw exception with message: Can't overwrite cause with a null
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1324) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1161) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:561) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:961) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915) ~[spring-context-6.0.4.jar:6.0.4]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:584) ~[spring-context-6.0.4.jar:6.0.4]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.0.2.jar:3.0.2]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[spring-boot-3.0.2.jar:3.0.2]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:432) ~[spring-boot-3.0.2.jar:3.0.2]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-3.0.2.jar:3.0.2]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) ~[spring-boot-3.0.2.jar:3.0.2]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291) ~[spring-boot-3.0.2.jar:3.0.2]
    at com.robot.RobotApplication.main(RobotApplication.java:18) ~[classes/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [love.forte.simboot.spring.autoconfigure.AutoConfigureMarker$AfterApplicationPostProcessor]: Factory method 'simbotApplicationAfterApplication' threw exception with message: Can't overwrite cause with a null
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:171) ~[spring-beans-6.0.4.jar:6.0.4]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-6.0.4.jar:6.0.4]
    ... 19 common frames omitted
Caused by: java.lang.IllegalStateException: Can't overwrite cause with a null
    at java.base/java.lang.Throwable.initCause(Throwable.java:463) ~[na:na]
    at love.forte.simbot.component.mirai.internal.MiraiBotImpl.start(MiraiBotImpl.kt:255) ~[simbot-component-mirai-core-3.0.0.0-M5.jar:na]
    at love.forte.simbot.component.mirai.internal.MiraiBotImpl$start$1.invokeSuspend(MiraiBotImpl.kt) ~[simbot-component-mirai-core-3.0.0.0-M5.jar:na]
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)]
    at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:178) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:328) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.ResumeAwaitOnCompletion.invoke(JobSupport.kt:1409) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.JobSupport.notifyCompletion(JobSupport.kt:1520) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.JobSupport.completeStateFinalization(JobSupport.kt:323) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.JobSupport.finalizeFinishingState(JobSupport.kt:240) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:906) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:863) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:828) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:100) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)]
    at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)]
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na]
Caused by: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(486231518), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=�)
    at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:331) ~[mirai-core-jvm-2.14.0.jar:2.14.0]
    at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) ~[mirai-core-jvm-2.14.0.jar:2.14.0]
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)]
    ... 8 common frames omitted

Disconnected from the target VM, address: '127.0.0.1:52865', transport: 'socket'

Process finished with exit code 1

其他补充

No response

Mr-GGBond commented 1 year ago

再次尝试登录,报错信息变化,还是无法登录

2023-02-23T16:57:56.269+08:00 INFO 6058 --- [ main] com.robot.RobotApplication : The following 1 profile is active: "dev" 2023-02-23T16:57:57.119+08:00 INFO 6058 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 5802 (http) 2023-02-23T16:57:57.123+08:00 INFO 6058 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2023-02-23T16:57:57.123+08:00 INFO 6058 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.5] 2023-02-23T16:57:57.168+08:00 INFO 6058 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2023-02-23T16:57:57.169+08:00 INFO 6058 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 876 ms 2023-02-23T16:57:57.480+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.AccountBag". 2023-02-23T16:57:57.484+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.AccountBag ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.524+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.AccountCommand". 2023-02-23T16:57:57.524+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.AccountCommand ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.550+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.AccountMonitor". 2023-02-23T16:57:57.550+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.AccountMonitor ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.571+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.AccountPet". 2023-02-23T16:57:57.571+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.AccountPet ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.586+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.AccountPetSkill". 2023-02-23T16:57:57.586+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.AccountPetSkill ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.600+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.Article". 2023-02-23T16:57:57.600+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.Article ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.613+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.ConfigParam". 2023-02-23T16:57:57.613+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.ConfigParam ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.628+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.DataMsgRecord". 2023-02-23T16:57:57.628+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.DataMsgRecord ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.639+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.DataQuotations". 2023-02-23T16:57:57.639+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.DataQuotations ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.648+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.ExplorationEvent". 2023-02-23T16:57:57.648+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.ExplorationEvent ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.656+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.Pet". 2023-02-23T16:57:57.657+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.Pet ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.664+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.PetSkill". 2023-02-23T16:57:57.665+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.PetSkill ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.675+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.Score". 2023-02-23T16:57:57.675+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.Score ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:57.683+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.WordViolation". 2023-02-23T16:57:57.683+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.WordViolation ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. | |. __ | | | |\/|)(| | |\ |)|||_\ / |
3.5.3 2023-02-23T16:57:57.795+08:00 WARN 6058 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.robot.entity.DataGroupStatistics". 2023-02-23T16:57:57.795+08:00 WARN 6058 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class com.robot.entity.DataGroupStatistics ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-02-23T16:57:58.009+08:00 INFO 6058 --- [ main] love.forte.simbot.utils.BlockingRunner : Blocking runner wait timeout is enabled with wait timeout 1m. You can enable debug logging for 'love.forte.simbot.utils.BlockingRunner' for more stack information or disable it with the JVM parameter '-Dsimbot.blockingRunner.disableWaitTimeout=true'. 2023-02-23T16:57:58.018+08:00 INFO 6058 --- [ main] ngBootComponentAutoInstallBuildConfigure : The number of Installable Event Provider Factories is 0 2023-02-23T16:57:58.018+08:00 INFO 6058 --- [ main] ngBootComponentAutoInstallBuildConfigure : Install components by [installAllComponents] via classLoader jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7 2023-02-23T16:57:58.160+08:00 INFO 6058 --- [ main] otEventProviderAutoInstallBuildConfigure : The number of Installable event provider Factories is 0 2023-02-23T16:57:58.160+08:00 INFO 6058 --- [ main] otEventProviderAutoInstallBuildConfigure : Install event providers by [installAllEventProviders] via classLoader jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7 2023-02-23T16:57:58.174+08:00 INFO 6058 --- [ main] s.a.a.SpringBootApplicationConfiguration : The size of providers built is 1 2023-02-23T16:57:58.176+08:00 INFO 6058 --- [ main] s.a.a.SpringBootApplicationConfiguration : Bots all registered. The size of bots: 0 2023-02-23T16:57:58.176+08:00 INFO 6058 --- [ main] s.a.a.SpringBootApplicationConfiguration : Simbot Spring Boot Application built in 158.681375ms 2023-02-23T16:57:58.299+08:00 WARN 6058 --- [ main] .s.b.StandardBotVerifyInfoDecoderFactory : Unable to find the com.charleskorn.kaml:kaml in current classpath, the bot configuration parser in .bot.yaml format will not be available. 2023-02-23T16:57:58.299+08:00 WARN 6058 --- [ main] .s.b.StandardBotVerifyInfoDecoderFactory : Unable to find the kotlinx-serialization-properties in current classpath, the bot configuration parser in .bot.properties format will not be available. 2023-02-23T16:57:58.303+08:00 INFO 6058 --- [ main] tSpringBootBotAutoRegisterBuildConfigure : Registering bot with verify info [love.forte.simbot.bot.PathBotVerifyInfo@165454f7] 2023-02-23T16:57:58.587+08:00 INFO 6058 --- [atcher-worker-3] love.forte.simbot.mirai.net.298361890 : ECDH key is invalid, start to fetch ecdh public key from server. 2023-02-23T16:57:58.781+08:00 INFO 6058 --- [atcher-worker-2] love.forte.simbot.mirai.net.298361890 : Successfully fetched ecdh public key from server. 2023-02-23T16:57:58.921+08:00 INFO 6058 --- [ntLoopGroup-2-3] love.forte.simbot.mirai.bot.298361890 : Calculating type 2 PoW, it can take some time.... 2023-02-23T16:57:58.967+08:00 INFO 6058 --- [ntLoopGroup-2-3] love.forte.simbot.mirai.bot.298361890 : Got PoW result, cost: 46 ms 2023-02-23T16:57:58.971+08:00 INFO 6058 --- [atcher-worker-2] love.forte.simbot.mirai.bot.298361890 : [SliderCaptcha] 需要滑动验证码, 请按照以下链接的步骤完成滑动验证码, 然后输入获取到的 ticket 2023-02-23T16:57:58.971+08:00 INFO 6058 --- [atcher-worker-2] love.forte.simbot.mirai.bot.298361890 : [SliderCaptcha] Slider captcha required. Please solve the captcha with following link. Type ticket here after completion. 2023-02-23T16:57:58.971+08:00 INFO 6058 --- [atcher-worker-2] love.forte.simbot.mirai.bot.298361890 : [SliderCaptcha] @see https://github.com/project-mirai/mirai-login-solver-selenium 2023-02-23T16:57:58.971+08:00 INFO 6058 --- [atcher-worker-2] love.forte.simbot.mirai.bot.298361890 : [SliderCaptcha] @see https://docs.mirai.mamoe.net/mirai-login-solver-selenium/ 2023-02-23T16:57:58.971+08:00 INFO 6058 --- [atcher-worker-2] love.forte.simbot.mirai.bot.298361890 : [SliderCaptcha] 或者输入 TxCaptchaHelper 来使用 TxCaptchaHelper 完成滑动验证码 2023-02-23T16:57:58.971+08:00 INFO 6058 --- [atcher-worker-2] love.forte.simbot.mirai.bot.298361890 : [SliderCaptcha] Or type TxCaptchaHelper to resolve slider captcha with TxCaptchaHelper.apk 2023-02-23T16:57:58.971+08:00 INFO 6058 --- [atcher-worker-2] love.forte.simbot.mirai.bot.298361890 : [SliderCaptcha] Captcha link: https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?style=simple&aid=16&uin=298361890&sid=5689337338085714582&cap_cd=e3CV9yjjIG8-0lUJSh3URFqMUjawHTDeWVzspE2mk8U_Ubigen3yEw**&clientype=1&apptype=2 t03ajJdaH_rHrnXyZP2RLAfJIHBlb08OHRUEftFn0NUxJVDcr3u8KV-oX_My9nCqVUucg6UVLxiJxh6njmWsL4G7xgIAIcZceg_ee_RdAiVvoVOvnm8ZcgyHYbWUvAJDOJl 2023-02-23T16:58:23.385+08:00 INFO 6058 --- [atcher-worker-1] love.forte.simbot.mirai.bot.298361890 : [SliderCaptcha] 正在提交中... 2023-02-23T16:58:23.386+08:00 INFO 6058 --- [atcher-worker-1] love.forte.simbot.mirai.bot.298361890 : [SliderCaptcha] Submitting... 2023-02-23T16:58:23.564+08:00 WARN 6058 --- [atcher-worker-1] love.forte.simbot.mirai.net.298361890 : Exception in resumeConnection.

net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(298361890), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=) at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:248) ~[mirai-core-jvm-2.14.0.jar:2.14.0] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)] at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] Caused by: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(298361890), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:331) ~[mirai-core-jvm-2.14.0.jar:2.14.0] at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) ~[mirai-core-jvm-2.14.0.jar:2.14.0] ... 9 common frames omitted

2023-02-23T16:58:23.572+08:00 WARN 6058 --- [atcher-worker-1] love.forte.simbot.mirai.net.298361890 : Network selector received exception, closing bot. (net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(298361890), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=)) 2023-02-23T16:58:23.581+08:00 WARN 6058 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simbotApplicationAfterApplication' defined in love.forte.simboot.spring.autoconfigure.SimbotSpringBootApplicationConfiguration: Failed to instantiate [love.forte.simboot.spring.autoconfigure.AutoConfigureMarker$AfterApplicationPostProcessor]: Factory method 'simbotApplicationAfterApplication' threw exception with message: Can't overwrite cause with a null 2023-02-23T16:58:23.593+08:00 INFO 6058 --- [ntLoopGroup-2-5] love.forte.simbot.mirai.bot.298361890 : Bot cancelled: Bot closed 2023-02-23T16:58:23.594+08:00 INFO 6058 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2023-02-23T16:58:23.615+08:00 INFO 6058 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2023-02-23T16:58:23.641+08:00 ERROR 6058 --- [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simbotApplicationAfterApplication' defined in love.forte.simboot.spring.autoconfigure.SimbotSpringBootApplicationConfiguration: Failed to instantiate [love.forte.simboot.spring.autoconfigure.AutoConfigureMarker$AfterApplicationPostProcessor]: Factory method 'simbotApplicationAfterApplication' threw exception with message: Can't overwrite cause with a null at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1324) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1161) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:561) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:961) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915) ~[spring-context-6.0.4.jar:6.0.4] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:584) ~[spring-context-6.0.4.jar:6.0.4] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.0.2.jar:3.0.2] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[spring-boot-3.0.2.jar:3.0.2] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:432) ~[spring-boot-3.0.2.jar:3.0.2] at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-3.0.2.jar:3.0.2] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) ~[spring-boot-3.0.2.jar:3.0.2] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291) ~[spring-boot-3.0.2.jar:3.0.2] at com.robot.RobotApplication.main(RobotApplication.java:18) ~[classes/:na] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [love.forte.simboot.spring.autoconfigure.AutoConfigureMarker$AfterApplicationPostProcessor]: Factory method 'simbotApplicationAfterApplication' threw exception with message: Can't overwrite cause with a null at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:171) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-6.0.4.jar:6.0.4] ... 19 common frames omitted Caused by: java.lang.IllegalStateException: Can't overwrite cause with a null at java.base/java.lang.Throwable.initCause(Throwable.java:463) ~[na:na] at love.forte.simbot.component.mirai.internal.MiraiBotImpl.start(MiraiBotImpl.kt:255) ~[simbot-component-mirai-core-3.0.0.0-M5.jar:na] at love.forte.simbot.component.mirai.internal.MiraiBotImpl$start$1.invokeSuspend(MiraiBotImpl.kt) ~[simbot-component-mirai-core-3.0.0.0-M5.jar:na] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)] at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:178) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:328) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.ResumeAwaitOnCompletion.invoke(JobSupport.kt:1409) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.JobSupport.notifyCompletion(JobSupport.kt:1520) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.JobSupport.completeStateFinalization(JobSupport.kt:323) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.JobSupport.finalizeFinishingState(JobSupport.kt:240) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:906) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:863) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:828) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:100) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)] at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:na] Caused by: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(298361890), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:331) ~[mirai-core-jvm-2.14.0.jar:2.14.0] at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) ~[mirai-core-jvm-2.14.0.jar:2.14.0] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-1.7.22.jar:1.7.22-release-288(1.7.22)] ... 8 common frames omitted

ForteScarlet commented 1 year ago

参考 #590 、discussions#75mirai#2496

Mr-GGBond commented 1 year ago

删除cache,device.json都不行,修改protocol之后尝试报错237 然后昨天怎么操作都不行,今天早上启动报code=45,禁止登录,再修改protocol为MACOS之后解决了问题