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
520 stars 43 forks source link

当前QQ版本过低,请升级至最新版本后再登录 #600

Closed Mr-GGBond closed 1 year ago

Mr-GGBond commented 1 year ago

版本号

3.0.0-RC.3

附加版本

org.springframework.boot spring-boot-starter-parent 3.0.2

选择此问题涉及的编程语言

Java

选择此问题涉及的组件库

No response

问题描述

原本是使用的M5版本,今天突然报qq版本过低,然后升级到文档最新的3.0.0-RC.3,并同时升级了springboot到3.0.2,jdk使用的是17版本

复现方式

启动服务提示机器人启动成功 在群或者私聊发送消息

相关日志

OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Connected to the target VM, address: '127.0.0.1:54190', transport: 'socket'
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

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

2023-02-16T11:14:05.999+08:00  INFO 3853 --- [           main] com.robot.RobotApplication               : Starting RobotApplication using Java 17.0.4.1 with PID 3853 (/Users/mininglamp/Desktop/文档/sgw/code/robot/target/classes started by mininglamp in /Users/mininglamp/Desktop/文档/sgw/code)
2023-02-16T11:14:06.001+08:00  INFO 3853 --- [           main] com.robot.RobotApplication               : The following 1 profile is active: "dev"
2023-02-16T11:14:06.792+08:00  INFO 3853 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 5802 (http)
2023-02-16T11:14:06.798+08:00  INFO 3853 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2023-02-16T11:14:06.798+08:00  INFO 3853 --- [           main] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.5]
2023-02-16T11:14:06.843+08:00  INFO 3853 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2023-02-16T11:14:06.844+08:00  INFO 3853 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 816 ms
2023-02-16T11:14:07.073+08:00  WARN 3853 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.AccountMonitor".
2023-02-16T11:14:07.075+08:00  WARN 3853 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.AccountMonitor ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-16T11:14:07.103+08:00  WARN 3853 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.AccountPet".
2023-02-16T11:14:07.104+08:00  WARN 3853 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.AccountPet ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-16T11:14:07.116+08:00  WARN 3853 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.ConfigParam".
2023-02-16T11:14:07.116+08:00  WARN 3853 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.ConfigParam ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-16T11:14:07.126+08:00  WARN 3853 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.DataMsgRecord".
2023-02-16T11:14:07.126+08:00  WARN 3853 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.DataMsgRecord ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-16T11:14:07.137+08:00  WARN 3853 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.DataQuotations".
2023-02-16T11:14:07.137+08:00  WARN 3853 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.DataQuotations ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-16T11:14:07.145+08:00  WARN 3853 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.Pet".
2023-02-16T11:14:07.145+08:00  WARN 3853 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.Pet ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
 _ _   |_  _ _|_. ___ _ |    _ 
| | |\/|_)(_| | |_\  |_)||_|_\ 
     /               |         
                        3.5.3 
2023-02-16T11:14:07.202+08:00  WARN 3853 --- [           main] c.b.m.core.metadata.TableInfoHelper      : Can not find table primary key in Class: "com.robot.entity.DataGroupStatistics".
2023-02-16T11:14:07.202+08:00  WARN 3853 --- [           main] c.b.m.core.injector.DefaultSqlInjector   : class com.robot.entity.DataGroupStatistics ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2023-02-16T11:14:07.239+08:00  INFO 3853 --- [           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-16T11:14:07.248+08:00  INFO 3853 --- [           main] ngBootComponentAutoInstallBuildConfigure : The number of Installable Event Provider Factories is 0
2023-02-16T11:14:07.248+08:00  INFO 3853 --- [           main] ngBootComponentAutoInstallBuildConfigure : Install components by [installAllComponents] via classLoader jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7
2023-02-16T11:14:07.248+08:00  INFO 3853 --- [           main] otEventProviderAutoInstallBuildConfigure : The number of Installable event provider Factories is 0
2023-02-16T11:14:07.248+08:00  INFO 3853 --- [           main] otEventProviderAutoInstallBuildConfigure : Install event providers by [installAllEventProviders] via classLoader jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7
2023-02-16T11:14:07.258+08:00  INFO 3853 --- [           main] s.a.a.SpringBootApplicationConfiguration : The size of providers built is 0
2023-02-16T11:14:07.261+08:00  INFO 3853 --- [           main] s.a.a.SpringBootApplicationConfiguration : Bots all registered. The size of bots: 0
2023-02-16T11:14:07.261+08:00  INFO 3853 --- [           main] s.a.a.SpringBootApplicationConfiguration : Simbot Spring Boot Application built in 14.483334ms
2023-02-16T11:14:07.317+08:00  WARN 3853 --- [           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-16T11:14:07.317+08:00  WARN 3853 --- [           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-16T11:14:07.321+08:00  INFO 3853 --- [           main] tSpringBootBotAutoRegisterBuildConfigure : Registering bot with verify info [love.forte.simbot.bot.PathBotVerifyInfo@49f2646]
2023-02-16T11:14:07.321+08:00  WARN 3853 --- [           main] tSpringBootBotAutoRegisterBuildConfigure : Bot verify info [love.forte.simbot.bot.PathBotVerifyInfo@49f2646] is not matched by any manager, skip it.
2023-02-16T11:14:07.321+08:00  WARN 3853 --- [           main] tSpringBootBotAutoRegisterBuildConfigure : Bot verify info [love.forte.simbot.bot.PathBotVerifyInfo@49f2646] not registered by any registrars, skip. The botRegistrar: love.forte.simboot.spring.autoconfigure.SimbotSpringBootBotAutoRegisterBuildConfigure$SimbotSpringBootBotAutoRegisterPostProcessor@32caae19
2023-02-16T11:14:07.445+08:00  INFO 3853 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 5802 (http) with context path ''
2023-02-16T11:14:07.451+08:00  INFO 3853 --- [           main] com.robot.RobotApplication               : Started RobotApplication in 1.608 seconds (process running for 1.975)
2023-02-16T11:14:07.452+08:00  INFO 3853 --- [           main] com.robot.RobotApplication               : 机器人启动成功

其他补充

No response

ForteScarlet commented 1 year ago

首先,版本过低的情况与升级核心的版本无关,不过用更新的版本更好。 你应该升级 mirai组件 的版本,参考 Releases

2023-02-16T11:14:07.248+08:00  INFO 3853 --- [           main] ngBootComponentAutoInstallBuildConfigure : The number of Installable Event Provider Factories is 0
2023-02-16T11:14:07.258+08:00  INFO 3853 --- [           main] s.a.a.SpringBootApplicationConfiguration : The size of providers built is 0
2023-02-16T11:14:07.261+08:00  INFO 3853 --- [           main] s.a.a.SpringBootApplicationConfiguration : Bots all registered. The size of bots: 0
2023-02-16T11:14:07.321+08:00  INFO 3853 --- [           main] tSpringBootBotAutoRegisterBuildConfigure : Registering bot with verify info [love.forte.simbot.bot.PathBotVerifyInfo@49f2646]
2023-02-16T11:14:07.321+08:00  WARN 3853 --- [           main] tSpringBootBotAutoRegisterBuildConfigure : Bot verify info [love.forte.simbot.bot.PathBotVerifyInfo@49f2646] is not matched by any manager, skip it.
2023-02-16T11:14:07.321+08:00  WARN 3853 --- [           main] tSpringBootBotAutoRegisterBuildConfigure : Bot verify info [love.forte.simbot.bot.PathBotVerifyInfo@49f2646] not registered by any registrars, skip. The botRegistrar: love.forte.simboot.spring.autoconfigure.SimbotSpringBootBotAutoRegisterBuildConfigure$SimbotSpringBootBotAutoRegisterPostProcessor@32caae19

看样子并没有组件被自动加载,请提供项目依赖配置的详细信息,比如 pom.xml

Mr-GGBond commented 1 year ago

我确认了,是没有加入marai组件导致的,参考simbot官网文档的时候我把mirai组件注释掉了,但是我加回来之后又产生了新的问题,Error(bot=Bot(625493406), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=),昨天的时候用同样的版本还是正常的以下是我pom文件中使用的marai组件版本

    <dependency>
        <groupId>love.forte.simbot.component</groupId>
        <artifactId>simbot-component-mirai-core</artifactId>
        <version>3.0.0.0-M5</version>
    </dependency>
ForteScarlet commented 1 year ago

参考 discussion#75中的回复

Mr-GGBond commented 1 year ago

感谢,删除cache无效,但是删除device.json之后重新登录机器人账号解决了qq版本过低的问题