结合时事zsbd
YoinSama 发布的帖子
-
RE: 每日新闻速报, 每日 Bilibili 番剧速报
发起动画请求的时候报错
2022-07-16 11:26:25 E/Reporter: Exception in coroutine Plugin online.ruin_of_future.reporter of Reporter java.lang.IllegalStateException: Send message failed: MessageSvcPbSendMsg.Response.Failed(resultType=55, errorCode=0, errorMessage=) at net.mamoe.mirai.internal.contact.SendMessageHandler.sendMessagePacket(SendMessageHandler.kt:191) at net.mamoe.mirai.internal.contact.SendMessageHandler$sendMessagePacket$1.invokeSuspend(SendMessageHandler.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
-
RE: Hibernate 前置插件,ORM 数据库框架,群/好友消息记录
启动的时候有这段
2022-07-06 16:21:45 I/org.hibernate.Version: HHH000412: Hibernate ORM core version [WORKING] 2022-07-06 16:21:45 I/org.hibernate.annotations.common.Version: HCANN000001: Hibernate Commons Annotations {5.1.2.Final} 2022-07-06 16:21:45 I/org.hibernate.dialect.Dialect: HHH000400: Using dialect: org.sqlite.hibernate.dialect.SQLiteDialect 2022-07-06 16:21:45 I/org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator: HHH000130: Instantiating explicit connection provider: org.hibernate.hikaricp.internal.HikariCPConnectionProvider 2022-07-06 16:21:45 I/com.zaxxer.hikari.HikariDataSource: HikariPool-1 - Starting... 2022-07-06 16:21:46 E/com.zaxxer.hikari.pool.HikariPool: HikariPool-1 - Exception during pool initialization. 2022-07-06 16:21:46 I/org.hibernate.service.internal.AbstractServiceRegistryImpl: HHH000369: Error stopping service [class org.hibernate.hikaricp.internal.HikariCPConnectionProvider] java.lang.NullPointerException: Cannot invoke "com.zaxxer.hikari.HikariDataSource.close()" because "this.hds" is null at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.hikaricp.internal.HikariCPConnectionProvider.stop(HikariCPConnectionProvider.java:122) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.stopService(AbstractServiceRegistryImpl.java:390) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.destroy(AbstractServiceRegistryImpl.java:373) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.destroy(StandardServiceRegistryImpl.java:129) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.spi.ServiceRegistryImplementor.close(ServiceRegistryImplementor.java:30) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:749) at mirai-hibernate-plugin-2.2.4.mirai.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernatePlugin.onEnable(MiraiHibernatePlugin.kt:45) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:119) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:262) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:34) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:183) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:231) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:444) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:159) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:158) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:46) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.itxtech.mcl.Utility.bootJars(Utility.java:89) at org.itxtech.mcl.Utility.bootJars(Utility.java:79) at org.itxtech.mcl.Utility.bootMirai(Utility.java:101) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:109) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:148) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:189) at org.itxtech.mcl.Loader.tryCatching(Loader.java:146) at org.itxtech.mcl.Loader.start(Loader.java:189) at org.itxtech.mcl.Loader.main(Loader.java:79) 2022-07-06 16:21:46 E/mirai-hibernate-plugin: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:173) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:86) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:479) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:85) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:709) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:746) at mirai-hibernate-plugin-2.2.4.mirai.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernatePlugin.onEnable(MiraiHibernatePlugin.kt:45) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:119) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:262) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:34) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:183) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:231) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:444) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:159) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:158) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:46) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.itxtech.mcl.Utility.bootJars(Utility.java:89) at org.itxtech.mcl.Utility.bootJars(Utility.java:79) at org.itxtech.mcl.Utility.bootMirai(Utility.java:101) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:109) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:148) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:189) at org.itxtech.mcl.Loader.tryCatching(Loader.java:146) at org.itxtech.mcl.Loader.start(Loader.java:189) at org.itxtech.mcl.Loader.main(Loader.java:79) Caused by: org.hibernate.HibernateException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-212] at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.hikaricp.internal.HikariCPConnectionProvider.configure(HikariCPConnectionProvider.java:63) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:107) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:246) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.buildJdbcConnectionAccess(JdbcEnvironmentInitiator.java:146) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:66) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) ... 39 more Caused by: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-212] at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:596) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:582) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:100) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:81) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.hibernate.hikaricp.internal.HikariCPConnectionProvider.configure(HikariCPConnectionProvider.java:59) ... 47 more Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-212] at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.message.DbException.getJdbcSQLException(DbException.java:678) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.message.DbException.getJdbcSQLException(DbException.java:477) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.message.DbException.get(DbException.java:212) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.db.Store.convertMVStoreException(Store.java:165) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.db.Store.<init>(Store.java:144) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.engine.Database.<init>(Database.java:324) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.engine.Engine.openSession(Engine.java:92) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.engine.Engine.openSession(Engine.java:222) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.engine.Engine.createSession(Engine.java:201) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:338) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:122) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.Driver.connect(Driver.java:59) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:121) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:359) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:470) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) ... 50 more Caused by: org.h2.mvstore.MVStoreException: The file is locked: /data/mirai/data/xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin/hibernate.h2.mv.db [2.1.212/7] at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:1004) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.FileStore.open(FileStore.java:163) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.MVStore.<init>(MVStore.java:449) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.MVStore$Builder.open(MVStore.java:4118) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.db.Store.<init>(Store.java:133) ... 62 more at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:121) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:359) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:470) at mirai-hibernate-plugin-2.2.4.mirai.jar//com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) ... 50 more Caused by: org.h2.mvstore.MVStoreException: The file is locked: /data/mirai/data/xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin/hibernate.h2.mv.db [2.1.212/7] at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:1004) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.FileStore.open(FileStore.java:163) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.MVStore.<init>(MVStore.java:449) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.MVStore$Builder.open(MVStore.java:4118) at mirai-hibernate-plugin-2.2.4.mirai.jar//org.h2.mvstore.db.Store.<init>(Store.java:133) ... 62 more
-
RE: EntryLib 词条库(群词条多功能自定义回复)
请问可以弄个这样的配置吗:可以关掉群主、管理员或者两者的指令权限。或者是设置对应的权限ID,让用户使用/perm add 的命令来添加指定用户或群的指定权限