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

Java事件监听错误 #738

Closed
Coloryr opened this issue Dec 19, 2020 · 2 comments
Closed

Java事件监听错误 #738

Coloryr opened this issue Dec 19, 2020 · 2 comments
Assignees
Labels
N 优先级: 一般 t:bug 类型: bug
Milestone

Comments

@Coloryr
Copy link
Contributor

Coloryr commented Dec 19, 2020

我使用的是openjdk15
Mirai核心版本是2.0-M1
1.3.3的核心同样的运行环境无报错

An exception was thrown under a coroutine of Bot
java.lang.IllegalArgumentException: argument type mismatch
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at net.mamoe.mirai.event.Events__JvmMethodListenersKt$registerEvent$15$1.invokeSuspend(JvmMethodListeners.kt:371)
	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:571)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
@Karlatemp
Copy link
Member

是否能提供错误的代码片段

@Karlatemp Karlatemp added t:bug 类型: bug N 优先级: 一般 labels Dec 19, 2020
@Karlatemp Karlatemp added this to the 2.0-M1-1 milestone Dec 19, 2020
@Karlatemp Karlatemp self-assigned this Dec 19, 2020
@Karlatemp Karlatemp changed the title 机器人接受群消息事件报错 Java事件监听错误 Dec 19, 2020
@Coloryr
Copy link
Contributor Author

Coloryr commented Dec 19, 2020

代码在这里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 优先级: 一般 t:bug 类型: bug
Projects
None yet
Development

No branches or pull requests

2 participants