[壶言2]HuYanSession2——壶言会话2
-
@2h000 你好,我不是大佬
-
@Moyuyanli 帕鲁好
-
@firefairy 今天星期一了,该我当帕鲁了....
-
请问一下
2.4.3版本的插件学习时出现了如下问题2024-04-06 20:22:12 V/Bot.2028269319: DINOREX(1819539569) -> 学习 怎么办 凉拌 模糊 全局 2024-04-06 20:22:12 I/HuYanSession: 学习会话指令 2024-04-06 20:22:12 W/stderr: ERROR SqlExceptionHelper NULL not allowed for column "ID"; SQL statement: 2024-04-06 20:22:12 W/stderr: insert into Session (bot,dynamic,mateInter,reply,scopeMark,term,type,id) values (?,?,?,?,?,?,?,default) [23502-224] 2024-04-06 20:22:12 E/HuYanSession: 添加对话失败:could not execute statement [NULL not allowed for column "ID"; SQL statement: insert into Session (bot,dynamic,mateInter,reply,scopeMark,term,type,id) values (?,?,?,?,?,?,?,default) [23502-224]] [insert into Session (bot,dynamic,mateInter,reply,scopeMark,term,type,id) values (?,?,?,?,?,?,?,default)] 2024-04-06 20:22:14 V/Bot.2028269319: Friend(1819539569) <- 学不废! 2024-04-06 20:22:14 W/stderr: org.hibernate.exception.ConstraintViolationException: could not execute statement [NULL not allowed for column "ID"; SQL statement: 2024-04-06 20:22:14 W/stderr: insert into Session (bot,dynamic,mateInter,reply,scopeMark,term,type,id) values (?,?,?,?,?,?,?,default) [23502-224]] [insert into Session (bot,dynamic,mateInter,reply,scopeMark,term,type,id) values (?,?,?,?,?,?,?,default)] 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:62) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:58) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:108) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.id.insert.GetGeneratedKeysDelegate.performInsert(GetGeneratedKeysDelegate.java:107) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.engine.jdbc.mutation.internal.MutationExecutorPostInsertSingleTable.execute(MutationExecutorPostInsertSingleTable.java:100) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.persister.entity.mutation.InsertCoordinator.doStaticInserts(InsertCoordinator.java:175) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.persister.entity.mutation.InsertCoordinator.coordinateInsert(InsertCoordinator.java:113) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2868) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:81) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:670) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:291) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:272) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:322) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:386) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:300) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:219) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:134) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:175) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.event.internal.DefaultPersistEventListener.persist(DefaultPersistEventListener.java:93) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:77) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:54) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:127) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:754) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.internal.SessionImpl.persist(SessionImpl.java:738) 2024-04-06 20:22:14 W/stderr: at HuYanSession-2.4.3.mirai2.jar//cn.chahuyun.session.controller.SessionAction.lambda$saveSession$2(SessionAction.java:474) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.internal.TransactionManagement.manageTransaction(TransactionManagement.java:33) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.SessionFactory.lambda$fromTransaction$2(SessionFactory.java:275) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.SessionFactory.fromSession(SessionFactory.java:255) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.SessionFactory.fromTransaction(SessionFactory.java:275) 2024-04-06 20:22:14 W/stderr: at HuYanSession-2.4.3.mirai2.jar//cn.chahuyun.session.controller.SessionAction.saveSession(SessionAction.java:471) 2024-04-06 20:22:14 W/stderr: at HuYanSession-2.4.3.mirai2.jar//cn.chahuyun.session.controller.SessionAction.studySession(SessionAction.java:181) 2024-04-06 20:22:14 W/stderr: at HuYanSession-2.4.3.mirai2.jar//cn.chahuyun.session.event.MessageEventListener.onMessage(MessageEventListener.java:197) 2024-04-06 20:22:14 W/stderr: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2024-04-06 20:22:14 W/stderr: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2024-04-06 20:22:14 W/stderr: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2024-04-06 20:22:14 W/stderr: at java.base/java.lang.reflect.Method.invoke(Unknown Source) 2024-04-06 20:22:14 W/stderr: at net.mamoe.mirai.internal.event.JvmMethodListenersInternal.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:148) 2024-04-06 20:22:14 W/stderr: at net.mamoe.mirai.internal.event.JvmMethodListenersInternal.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:26) 2024-04-06 20:22:14 W/stderr: at net.mamoe.mirai.internal.event.JvmMethodListenersInternal$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:162) 2024-04-06 20:22:14 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) 2024-04-06 20:22:14 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 2024-04-06 20:22:14 W/stderr: at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) 2024-04-06 20:22:14 W/stderr: at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) 2024-04-06 20:22:14 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) 2024-04-06 20:22:14 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) 2024-04-06 20:22:14 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) 2024-04-06 20:22:14 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) 2024-04-06 20:22:14 W/stderr: Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: NULL not allowed for column "ID"; SQL statement: 2024-04-06 20:22:14 W/stderr: insert into Session (bot,dynamic,mateInter,reply,scopeMark,term,type,id) values (?,?,?,?,?,?,?,default) [23502-224] 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.message.DbException.getJdbcSQLException(DbException.java:520) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.message.DbException.getJdbcSQLException(DbException.java:489) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.message.DbException.get(DbException.java:223) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.message.DbException.get(DbException.java:199) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.table.Column.validateConvertUpdateSequence(Column.java:365) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.table.Table.convertInsertRow(Table.java:936) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.command.dml.Insert.insertRows(Insert.java:167) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.command.dml.Insert.update(Insert.java:135) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.command.CommandContainer.executeUpdateWithGeneratedKeys(CommandContainer.java:242) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.command.CommandContainer.update(CommandContainer.java:163) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.command.Command.executeUpdate(Command.java:256) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:216) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:174) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java) 2024-04-06 20:22:14 W/stderr: at mirai-hibernate-plugin-2.8.0.mirai2.jar[shared]//org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:194) 2024-04-06 20:22:14 W/stderr: ... 44 more
在mirai启动的时候huyan插件加载的时候出现了如下信息
2024-04-06 20:20:23 I/HuYanSession: HuYanSession2 当前版本: v2.4.3 2024-04-06 20:20:23 I/org.reflections.Reflections: Reflections took 23 ms to scan 1 urls, producing 18 keys and 72 values 2024-04-06 20:20:23 I/com.zaxxer.hikari.HikariDataSource: HikariPool-3 - Starting... 2024-04-06 20:20:23 I/com.zaxxer.hikari.pool.HikariPool: HikariPool-3 - Added connection conn12: url=jdbc:h2:file:./data/cn.chahuyun.HuYanSession/HuYan user= 2024-04-06 20:20:23 I/com.zaxxer.hikari.HikariDataSource: HikariPool-3 - Start completed. 2024-04-06 20:20:24 I/HuYanSession: H2数据库初始化成功! 2024-04-06 20:20:24 I/HuYanSession: 插件配置已加载! 2024-04-06 20:20:24 I/HuYanSession: 主人已设置:1819539569 2024-04-06 20:20:24 I/HuYanSession: 插件指令已加载! 2024-04-06 20:20:24 I/MaimaiBot: 正在缓存歌曲封面中…… 2024-04-06 20:20:24 I/HuYanSession: 数据库群组信息初始化成功! 2024-04-06 20:20:24 W/stderr: ERROR SqlExceptionHelper Column "MS1_0.MANYSESSIONID" not found; SQL statement: 2024-04-06 20:20:24 W/stderr: select ms1_0.manySessionId,ms1_0.id,ms1_0.bot,ms1_0.dynamic,ms1_0.other,ms1_0.reply from ManySession ms1_0 where ms1_0.manySessionId=? [42122-224] 2024-04-06 20:20:24 W/HuYanSession: 多词条加载消息出错! 2024-04-06 20:20:24 I/stdout: [2024-04-06 20:20:24] [DEBUG] cn.hutool.log.LogFactory: Use [Hutool Console Logging] Logger As Default. 2024-04-06 20:20:25 I/HuYanSession: 定时器加载成功! 2024-04-06 20:20:25 I/HuYanSession: 群消息监听已注册! 2024-04-06 20:20:25 I/HuYanSession: 群动作监听已注册! 2024-04-06 20:20:25 I/HuYanSession: 壶言会话插件加载完成!
-
不知道为啥版本回退到2.3.1就好了。。。