Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动后 Mirai 报错 #3

Open
expliyh opened this issue May 8, 2022 · 0 comments
Open

启动后 Mirai 报错 #3

expliyh opened this issue May 8, 2022 · 0 comments
Labels
question Further information is requested

Comments

@expliyh
Copy link

expliyh commented May 8, 2022

在启动efb前mirai能够正常接收消息,在启动efb后mirai会报错,内容如下

2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.ws.WebsocketAdapter.onReceiveBotEvent(WebsocketAdapter.kt:53)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.context.MahContext$handleBotEvent$1$1.invokeSuspend(MahContext.kt:116)
2022-05-08 21:38:59 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-05-08 21:38:59 W/stderr: Caused by: java.lang.NoSuchMethodError: 'void kotlinx.serialization.PolymorphicSerializer.(kotlin.reflect.KClass, java.lang.annotation.Annotation[])'
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.dto.EventDTO$Companion$$cachedSerializer$delegate$1.invoke(base.kt:16)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.dto.EventDTO$Companion$$cachedSerializer$delegate$1.invoke(base.kt:16)
2022-05-08 21:38:59 W/stderr: at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:107)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.dto.EventDTO$Companion.serializer(base.kt:16)
2022-05-08 21:38:59 W/stderr: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-05-08 21:38:59 W/stderr: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2022-05-08 21:38:59 W/stderr: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-05-08 21:38:59 W/stderr: at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.internal.PlatformKt.invokeSerializerOnCompanion(Platform.kt:101)
2022-05-08 21:38:59 W/stderr: ... 16 more
2022-05-08 21:38:59 W/stderr: Exception in thread "DefaultDispatcher-worker-2" java.lang.reflect.InvocationTargetException: 'void kotlinx.serialization.PolymorphicSerializer.(kotlin.reflect.KClass, java.lang.annotation.Annotation[])'
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.internal.PlatformKt.invokeSerializerOnCompanion(Platform.kt:106)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.internal.PlatformKt.constructSerializerForGivenTypeArgs(Platform.kt:41)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.internal.PlatformKt.compiledSerializerImpl(Platform.kt:23)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.SerializersKt__SerializersKt.serializerOrNull(Serializers.kt:178)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.SerializersKt.serializerOrNull(Unknown Source)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.SerializersKt__SerializersKt.serializer(Serializers.kt:155)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.SerializersKt.serializer(Unknown Source)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.serializer.BuiltinJsonSerializer.encodeElement(BuiltinJson.kt:68)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.ws.WebsocketAdapter.offerChannel(WebsocketAdapter.kt:98)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.ws.WebsocketAdapter.onReceiveBotEvent(WebsocketAdapter.kt:53)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.context.MahContext$handleBotEvent$1$1.invokeSuspend(MahContext.kt:116)
2022-05-08 21:38:59 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-05-08 21:38:59 W/stderr: Caused by: java.lang.NoSuchMethodError: 'void kotlinx.serialization.PolymorphicSerializer.(kotlin.reflect.KClass, java.lang.annotation.Annotation[])'
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.dto.EventDTO$Companion$$cachedSerializer$delegate$1.invoke(base.kt:16)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.dto.EventDTO$Companion$$cachedSerializer$delegate$1.invoke(base.kt:16)
2022-05-08 21:38:59 W/stderr: at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:107)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.dto.EventDTO$Companion.serializer(base.kt:16)
2022-05-08 21:38:59 W/stderr: at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
2022-05-08 21:38:59 W/stderr: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-05-08 21:38:59 W/stderr: at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.internal.PlatformKt.invokeSerializerOnCompanion(Platform.kt:101)
2022-05-08 21:38:59 W/stderr: ... 16 more
2022-05-08 21:38:59 W/stderr: Exception in thread "DefaultDispatcher-worker-1" java.lang.reflect.InvocationTargetException: 'void kotlinx.serialization.PolymorphicSerializer.(kotlin.reflect.KClass, java.lang.annotation.Annotation[])'
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.internal.PlatformKt.invokeSerializerOnCompanion(Platform.kt:106)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.internal.PlatformKt.constructSerializerForGivenTypeArgs(Platform.kt:41)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.internal.PlatformKt.compiledSerializerImpl(Platform.kt:23)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.SerializersKt__SerializersKt.serializerOrNull(Serializers.kt:178)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.SerializersKt.serializerOrNull(Unknown Source)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.SerializersKt__SerializersKt.serializer(Serializers.kt:155)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.SerializersKt.serializer(Unknown Source)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.serializer.BuiltinJsonSerializer.encodeElement(BuiltinJson.kt:68)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.ws.WebsocketAdapter.offerChannel(WebsocketAdapter.kt:98)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.ws.WebsocketAdapter.onReceiveBotEvent(WebsocketAdapter.kt:53)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.context.MahContext$handleBotEvent$1$1.invokeSuspend(MahContext.kt:116)
2022-05-08 21:38:59 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2022-05-08 21:38:59 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-05-08 21:38:59 W/stderr: Caused by: java.lang.NoSuchMethodError: 'void kotlinx.serialization.PolymorphicSerializer.(kotlin.reflect.KClass, java.lang.annotation.Annotation[])'
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.dto.EventDTO$Companion$$cachedSerializer$delegate$1.invoke(base.kt:16)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.dto.EventDTO$Companion$$cachedSerializer$delegate$1.invoke(base.kt:16)
2022-05-08 21:38:59 W/stderr: at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:107)
2022-05-08 21:38:59 W/stderr: at net.mamoe.mirai.api.http.adapter.internal.dto.EventDTO$Companion.serializer(base.kt:16)
2022-05-08 21:38:59 W/stderr: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-05-08 21:38:59 W/stderr: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2022-05-08 21:38:59 W/stderr: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-05-08 21:38:59 W/stderr: at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-05-08 21:38:59 W/stderr: at kotlinx.serialization.internal.PlatformKt.invokeSerializerOnCompanion(Platform.kt:101)
2022-05-08 21:38:59 W/stderr: ... 16 more

@milkice233 milkice233 added the question Further information is requested label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants