输入指令”/方舟公招 远程位 狙击“后无消息返回...看了下后台是出错了,好像是缺少了什么文件...我是使用release里面的jar放到plugin里面再打开mirai后加载的。求问下大佬是我哪里做错了吗?
出错日志:
2022-12-17 22:38:51 W/arknights-helper: Exception in executing command `[mirai:source:ids=[3956], internalIds=[21995265], from group *******to *********at *********]/方舟公招 远程位 狙击`
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:159)
at kotlin.reflect.full.KCallables.callSuspendBy(KCallables.kt:74)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invokeSuspend(CommandReflector.kt:337)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call$suspendImpl(CommandSignature.kt:88)
at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call(CommandSignature.kt)
at net.mamoe.mirai.console.internal.command.CommandManagerImplKt.executeCommandImpl(CommandManagerImpl.kt:167)
at net.mamoe.mirai.console.command.CommandManager.executeCommand$suspendImpl(CommandManager.kt:130)
at net.mamoe.mirai.console.command.CommandManager.executeCommand(CommandManager.kt)
at net.mamoe.mirai.console.command.CommandManager$INSTANCE.executeCommand(CommandManager.kt)
at net.mamoe.mirai.console.command.CommandManager.executeCommand$default(CommandManager.kt:125)
at chat-command-0.5.1.mirai.jar//net.mamoe.mirai.console.plugins.chat.command.PluginMain.handleCommand(PluginMain.kt:86)
at chat-command-0.5.1.mirai.jar//net.mamoe.mirai.console.plugins.chat.command.PluginMain$onEnable$2$1.invokeSuspend(PluginMain.kt:69)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
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:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.io.FileNotFoundException: C:\Users\Administrator\Desktop\mcl-2.1.2\data\xyz.cssxsh.mirai.plugin.arknights-helper\ArknightsGameData\character_table.json (系统找不到指定的文件。)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:158)
at kotlin.io.FilesKt__FileReadWriteKt.readText(FileReadWrite.kt:125)
at kotlin.io.FilesKt__FileReadWriteKt.readText$default(FileReadWrite.kt:125)
at arknights-helper-2.0.0.mirai2.jar//xyz.cssxsh.arknights.excel.ExcelDataHolder.character(ExcelDataHolder.kt:165)
at arknights-helper-2.0.0.mirai2.jar//xyz.cssxsh.mirai.arknights.command.ArknightsRecruitCommand.handler(ArknightsRecruitCommand.kt:23)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
... 24 more
>
附上mirai开机时的日志(不知道是不是哪一块没有加载正确,没有character_table.json):
2022-12-17 21:48:40 I/main: Backend: version 2.13.2, built on 2022-12-05 01:50:53.
2022-12-17 21:48:40 I/main: Frontend Terminal: version 2.13.2, provided by Mamoe Technologies
2022-12-17 21:48:40 I/main: Welcome to visit https://mirai.mamoe.net/
2022-12-17 21:48:40 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2022-12-17 21:48:40 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation
2022-12-17 21:48:40 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2022-12-17 21:48:42 I/plugin: Successfully loaded plugin Chat Command v0.5.0
2022-12-17 21:48:42 I/plugin: Successfully loaded plugin ba-activity-pusher v1.0.13
2022-12-17 21:48:42 I/plugin: Successfully loaded plugin indi.eiriksgata.rulateday-dice v0.0.1
2022-12-17 21:48:42 I/plugin: Successfully loaded plugin Soyuz v1.0.0
2022-12-17 21:48:43 I/plugin: Successfully loaded plugin arknights-helper v2.0.0
2022-12-17 21:48:43 I/plugin: Successfully loaded plugin MCL Addon v2.1.1
2022-12-17 21:48:44 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop
2022-12-17 21:48:44 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2022-12-17 21:48:44 I/ba-activity-pusher: arona loaded
2022-12-17 21:48:45 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation
2022-12-17 21:48:45 I/indi.eiriksgata.rulateday-dice: canonical:C:\Users\Administrator\Desktop\mcl-2.1.2
2022-12-17 21:48:45 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2022-12-17 21:48:45 I/indi.eiriksgata.rulateday-dice: absolute:C:\Users\Administrator\Desktop\mcl-2.1.2
2022-12-17 21:48:45 I/indi.eiriksgata.rulateday-dice: configPath:C:\Users\Administrator\Desktop\mcl-2.1.2\config\indi.eiriksgata.rulateday-dice
2022-12-17 21:48:45 I/indi.eiriksgata.rulateday-dice: dataPath:C:\Users\Administrator\Desktop\mcl-2.1.2\data\indi.eiriksgata.rulateday-dice
2022-12-17 21:48:46 I/stdout: os.name: Windows Server 2016
2022-12-17 21:48:46 I/ba-activity-pusher: arona gacha module init success.
2022-12-17 21:48:46 I/ba-activity-pusher: 别名配置更新成功
2022-12-17 21:48:47 I/ba-activity-pusher: 中文字体初始化成功
2022-12-17 21:48:47 I/stdout: Rulateday-dice INFO: your device code:e78e969687ab37b0ef80c093df8f05268ac5e6761220c1dc1ef5bd3e646c2196
2022-12-17 21:48:47 I/indi.eiriksgata.rulateday-dice: {"master.QQ.number":"315220250","reply.at.user":false,"ai-drawing":{"remote":true,"userId":"","url":""},"auto.accept.friend.request":true,"instructions.prefix.list":[".","。"],"file.version":"1.0.5","auto.accept.group.request":true}
2022-12-17 21:48:47 I/indi.eiriksgata.rulateday-dice: -----------Rulateday-dice doc files loading-----------
2022-12-17 21:48:47 I/indi.eiriksgata.rulateday-dice: -----------Rulateday-dice load end-----------
2022-12-17 21:48:47 I/ba-activity-pusher: Source: STUDENT from mirror already up to date.
2022-12-17 21:48:47 I/indi.eiriksgata.rulateday-dice: Rulateday-Dice is enable.Register Eventing...
2022-12-17 21:48:47 W/stderr: SLF4J: No SLF4J providers were found.
2022-12-17 21:48:47 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation
2022-12-17 21:48:47 W/stderr: SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
2022-12-17 21:48:48 I/indi.eiriksgata.rulateday-dice: Windows Server 2016
2022-12-17 21:48:49 W/Soyuz: Linked class org.slf4j.LoggerFactory in rulateday-server-pro-0.4.8-SNAPSHOT-jar-with-dependencies (1).jar but plugin not depend on it.
2022-12-17 21:48:49 W/Soyuz: Class loading logic may change in feature.
2022-12-17 21:48:49 W/stderr: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
2022-12-17 21:48:50 I/Soyuz: iTXTech Soyuz is listening on ws://localhost:9876
2022-12-17 21:48:50 W/arknights-helper: 2.0 版本重构,需要重新配置订阅订阅
2022-12-17 21:48:50 W/arknights-helper: 2.0 版本重构,需要重新配置订阅订阅
2022-12-17 21:48:50 W/arknights-helper: 2.0 版本重构,需要重新配置订阅订阅
2022-12-17 21:48:51 I/MCL Addon: iTXTech MCL Version: 2.1.2-61c8bd8
2022-12-17 21:48:51 I/main: 6 plugin(s) enabled.
2022-12-17 21:48:51 I/arknights-helper: 蹲饼监听已开启
2022-12-17 21:48:51 I/main: mirai-console started successfully.
2022-12-17 21:48:52 W/ba-activity-pusher: java.lang.IllegalArgumentException: Value 'Merry Christmas in the Cathedral' can't be stored to database column because exceeds length (30)
2022-12-17 21:48:52 W/ba-activity-pusher: 数据同步失败,无法保证数据准确性
2022-12-17 21:49:01 W/stderr: SLF4J: No SLF4J providers were found.
2022-12-17 21:49:01 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation
2022-12-17 21:49:01 W/stderr: SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.