关于打包问题 #49
Unanswered
cuicanontop
asked this question in
Q&A
关于打包问题
#49
Replies: 1 comment
-
检查打包时各项可能影响文件编码格式的各种可能的配置、或运行时系统环境与本地环境的差异等各类信息 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
当在IDEA环境中则可以正常允许,而打包为jar包运行则会读取bot信息失败报错?请问如何解决
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: love.forte.simboot.core.SimbootApplicationException: Run boot app failure: Expected start of the object '{', but had 'EOF' instead at path: $
JSON input: ..... � ????�BOOT-INF/layers.idxPK�� ? ? {6 ???�
at love.forte.simboot.core.SimbootAppKt.runApp(SimbootApp.kt:211)
at love.forte.simboot.core.SimbootAppKt.access$runApp(SimbootApp.kt:1)
at love.forte.simboot.core.SimbootApp$run4J$1.invokeSuspend(SimbootApp.kt:153)
at love.forte.simboot.core.SimbootApp$run4J$1.invoke(SimbootApp.kt)
at love.forte.simboot.core.SimbootApp$run4J$1.invoke(SimbootApp.kt)
at love.forte.simbot.application.ApplicationLauncherImpl.launch(ApplicationLauncher.kt:89)
at love.forte.simbot.application.ApplicationLauncher$launchBlocking$1.invoke(ApplicationLauncher.kt)
at love.forte.simbot.application.ApplicationLauncher$launchBlocking$1.invoke(ApplicationLauncher.kt)
at kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$2.invokeSuspend(IntrinsicsJvm.kt:205)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.coroutines.ContinuationKt.startCoroutine(Continuation.kt:115)
at love.forte.simbot.utils.DefaultRunInNoScopeBlockingStrategy.invoke(BlockingRunner.kt:398)
at love.forte.simbot.utils.BlockingRunnerKt.runInNoScopeBlocking(BlockingRunner.kt:462)
at love.forte.simbot.utils.BlockingRunnerKt.runInNoScopeBlocking$default(BlockingRunner.kt:459)
at love.forte.simbot.utils.BlockingRunnerKt.$$runInBlocking(BlockingRunner.kt:503)
at love.forte.simbot.application.ApplicationLauncher.launchBlocking(ApplicationLauncher.kt)
at simbot.example.Main.main(Main.java:32)
... 8 more
Caused by: kotlinx.serialization.json.internal.JsonDecodingException: Expected start of the object '{', but had 'EOF' instead at path: $
JSON input: ..... � ????�BOOT-INF/layers.idxPK�� ? ? {6 ???�
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:530)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(AbstractJsonLexer.kt:528)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$kotlinx_serialization_json(AbstractJsonLexer.kt:224)
at kotlinx.serialization.json.internal.AbstractJsonLexer.unexpectedToken(AbstractJsonLexer.kt:207)
at kotlinx.serialization.json.internal.StringJsonLexer.consumeNextToken(StringJsonLexer.kt:74)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.beginStructure(StreamingJsonDecoder.kt:97)
at love.forte.simbot.bot.ComponentModel$$serializer.deserialize(BotVerifyInfo.kt:41)
at love.forte.simbot.bot.ComponentModel$$serializer.deserialize(BotVerifyInfo.kt:41)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:70)
at kotlinx.serialization.json.Json.decodeFromString(Json.kt:95)
at love.forte.simbot.bot.StandardStringFormatBotVerifyInfoDecoder.decode(BotVerifyInfo.kt:332)
at love.forte.simbot.bot.StandardStringFormatBotVerifyInfoDecoder.decodeComponentId(BotVerifyInfo.kt:337)
at love.forte.simbot.bot.DecoderBotVerifyInfo$componentId$2.invoke(BotVerifyInfos.kt:52)
at love.forte.simbot.bot.DecoderBotVerifyInfo$componentId$2.invoke(BotVerifyInfos.kt:50)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at love.forte.simbot.bot.DecoderBotVerifyInfo.getComponentId(BotVerifyInfos.kt:50)
at love.forte.simbot.component.mirai.bot.MiraiBotManager.register(MiraiBotManager.kt:65)
at love.forte.simbot.component.mirai.bot.MiraiBotManager.register(MiraiBotManager.kt:52)
at love.forte.simbot.core.application.BaseApplicationBuilder$BotRegistrarImpl.register(BaseApplicationBuilder.kt:222)
at love.forte.simboot.core.application.BootApplicationKt.autoRegisterBots(BootApplication.kt:1030)
at love.forte.simboot.core.application.BootApplicationKt.access$autoRegisterBots(BootApplication.kt:1)
at love.forte.simboot.core.application.BootApplicationBuilderImpl$build$5.invokeSuspend(BootApplication.kt:515)
at love.forte.simboot.core.application.BootApplicationBuilderImpl$build$5.invoke(BootApplication.kt)
at love.forte.simboot.core.application.BootApplicationBuilderImpl$build$5.invoke(BootApplication.kt)
at love.forte.simbot.core.application.BaseApplicationBuilder$bots$1$1.invokeSuspend(BaseApplicationBuilder.kt:113)
at love.forte.simbot.core.application.BaseApplicationBuilder$bots$1$1.invoke(BaseApplicationBuilder.kt)
at love.forte.simbot.core.application.BaseApplicationBuilder$bots$1$1.invoke(BaseApplicationBuilder.kt)
at love.forte.simbot.core.application.BaseApplicationBuilder.registerBots(BaseApplicationBuilder.kt:163)
at love.forte.simboot.core.application.BootApplicationBuilderImpl.build(BootApplication.kt:537)
at love.forte.simboot.core.application.Boot.create(BootApplication.kt:89)
at love.forte.simbot.application.Applications.createSimbotApplication(Applications.kt:65)
at love.forte.simboot.core.SimbootAppKt.runApp(SimbootApp.kt:210)
... 24 more
Beta Was this translation helpful? Give feedback.
All reactions