You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalArgumentException: java.lang.NullPointerException: Cannot invoke "java.lang.Number.intValue()" because the return value of "sun.invoke.util.ValueConversions.primitiveConversion(sun.invoke.util.Wrapper, Object, boolean)" is null
java.lang.IllegalArgumentException: java.lang.NullPointerException: Cannot invoke "java.lang.Number.intValue()" because the return value of "sun.invoke.util.ValueConversions.primitiveConversion(sun.invoke.util.Wrapper, Object, boolean)" is null
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:113) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na]
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97) ~[kotlin-reflect-2.0.0.jar:2.0.0-release-341]
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113) ~[kotlin-reflect-2.0.0.jar:2.0.0-release-341]
at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:207) ~[kotlin-reflect-2.0.0.jar:2.0.0-release-341]
at kotlin.reflect.full.KCallables.callSuspendBy(KCallables.kt:74) ~[kotlin-reflect-2.0.0.jar:2.0.0-release-341]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener$1.invokeSuspend(FunctionalBindableEventListener.kt:106) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener$1.invoke(FunctionalBindableEventListener.kt) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener$1.invoke(FunctionalBindableEventListener.kt) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener.handle$suspendImpl(FunctionalBindableEventListener.kt:145) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener.handle(FunctionalBindableEventListener.kt) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.event.EventListeners__EventListenerKt.handleWith(EventListener.kt:56) ~[simbot-api-jvm-4.3.1.jar:na]
at love.forte.simbot.event.EventListeners.handleWith(Unknown Source) ~[simbot-api-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventListenerInvoker.invoke(SimpleEventDispatcherImpl.kt:406) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl.invokeAndCollectedOrErrorResult(SimpleEventDispatcherImpl.kt:359) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl.dispatchInFlow(SimpleEventDispatcherImpl.kt:369) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl.access$dispatchInFlow(SimpleEventDispatcherImpl.kt:269) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl$eventFlow$flow$1.invokeSuspend(SimpleEventDispatcherImpl.kt:340) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl$eventFlow$flow$1.invoke(SimpleEventDispatcherImpl.kt) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl$eventFlow$flow$1.invoke(SimpleEventDispatcherImpl.kt) ~[simbot-core-jvm-4.3.1.jar:na]
at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:57) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:226) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.collect(SafeCollector.common.kt:112) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.FlowKt__CollectKt.collect(Collect.kt:26) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.FlowKt.collect(Unknown Source) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.FlowKt__CollectKt$launchIn$1.invokeSuspend(Collect.kt:46) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-2.0.0.jar:2.0.0-release-341]
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Number.intValue()" because the return value of "sun.invoke.util.ValueConversions.primitiveConversion(sun.invoke.util.Wrapper, Object, boolean)" is null
at java.base/sun.invoke.util.ValueConversions.unboxInteger(ValueConversions.java:81) ~[na:na]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na]
... 31 common frames omitted
love.forte.simbot.quantcat.common.binder.BindException: love.forte.simbot.quantcat.common.binder.BindException: Nothing binder success for listener KFunctionEventListener(caller=fun <packgae_name>.TestListeners.(love.forte.simbot.component.onebot.v11.core.event.message.OneBotNormalGroupMessageEvent.)test2(kotlin.String?): kotlin.Unit, attributes={Attribute(name=$$RAW_LISTEN_TARGET$)=class love.forte.simbot.component.onebot.v11.core.event.message.OneBotNormalGroupMessageEvent, Attribute(name=$$RAW_FUNCTION$)=fun <packgae_name>.TestListeners.(love.forte.simbot.component.onebot.v11.core.event.message.OneBotNormalGroupMessageEvent.)test2(kotlin.String?): kotlin.Unit, Attribute(name=$listener.keywordList)=[love.forte.simbot.quantcat.common.keyword.SimpleKeyword@4b99a288], Attribute(name=$$RAW_BINDERS$)=[EmptyBinder(parameter=instance parameter of fun <packgae_name>.TestListeners.(love.forte.simbot.component.onebot.v11.core.event.message.OneBotNormalGroupMessageEvent.)test2(kotlin.String?): kotlin.Unit), love.forte.simbot.quantcat.common.binder.impl.MergedBinder@7a02d604, love.forte.simbot.quantcat.common.binder.impl.MergedBinder@58d3e2ce]})
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener$3.invokeSuspend(FunctionalBindableEventListener.kt:253) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener$3.invoke(FunctionalBindableEventListener.kt) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener$3.invoke(FunctionalBindableEventListener.kt) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener.handle$suspendImpl(FunctionalBindableEventListener.kt:145) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener.handle(FunctionalBindableEventListener.kt) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.event.EventListeners__EventListenerKt.handleWith(EventListener.kt:56) ~[simbot-api-jvm-4.3.1.jar:na]
at love.forte.simbot.event.EventListeners.handleWith(Unknown Source) ~[simbot-api-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventListenerInvoker.invoke(SimpleEventDispatcherImpl.kt:406) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl.invokeAndCollectedOrErrorResult(SimpleEventDispatcherImpl.kt:359) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl.dispatchInFlow(SimpleEventDispatcherImpl.kt:369) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl.access$dispatchInFlow(SimpleEventDispatcherImpl.kt:269) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl$eventFlow$flow$1.invokeSuspend(SimpleEventDispatcherImpl.kt:340) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl$eventFlow$flow$1.invoke(SimpleEventDispatcherImpl.kt) ~[simbot-core-jvm-4.3.1.jar:na]
at love.forte.simbot.core.event.impl.SimpleEventDispatcherImpl$eventFlow$flow$1.invoke(SimpleEventDispatcherImpl.kt) ~[simbot-core-jvm-4.3.1.jar:na]
at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:57) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:226) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.collect(SafeCollector.common.kt:112) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.FlowKt__CollectKt.collect(Collect.kt:26) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.FlowKt.collect(Unknown Source) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.flow.FlowKt__CollectKt$launchIn$1.invokeSuspend(Collect.kt:46) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-2.0.0.jar:2.0.0-release-341]
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) ~[kotlinx-coroutines-core-jvm-1.8.1.jar:na]
Caused by: love.forte.simbot.quantcat.common.binder.BindException: Nothing binder success for listener KFunctionEventListener(caller=fun <packgae_name>.TestListeners.(love.forte.simbot.component.onebot.v11.core.event.message.OneBotNormalGroupMessageEvent.)test2(kotlin.String?): kotlin.Unit, attributes={Attribute(name=$$RAW_LISTEN_TARGET$)=class love.forte.simbot.component.onebot.v11.core.event.message.OneBotNormalGroupMessageEvent, Attribute(name=$$RAW_FUNCTION$)=fun <packgae_name>.TestListeners.(love.forte.simbot.component.onebot.v11.core.event.message.OneBotNormalGroupMessageEvent.)test2(kotlin.String?): kotlin.Unit, Attribute(name=$listener.keywordList)=[love.forte.simbot.quantcat.common.keyword.SimpleKeyword@4b99a288], Attribute(name=$$RAW_BINDERS$)=[EmptyBinder(parameter=instance parameter of fun <packgae_name>.TestListeners.(love.forte.simbot.component.onebot.v11.core.event.message.OneBotNormalGroupMessageEvent.)test2(kotlin.String?): kotlin.Unit), love.forte.simbot.quantcat.common.binder.impl.MergedBinder@7a02d604, love.forte.simbot.quantcat.common.binder.impl.MergedBinder@58d3e2ce]})
at love.forte.simbot.quantcat.common.binder.impl.MergedBinder.arg-IoAF18A(DefaultBinders.kt:130) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.FunctionalBindableEventListener$3.invokeSuspend(FunctionalBindableEventListener.kt:249) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
... 25 common frames omitted
Caused by: love.forte.simbot.quantcat.common.binder.BindException: No keyword matched successfully.
at love.forte.simbot.quantcat.common.binder.impl.KeywordBinder$Required.arg-IoAF18A(KeywordBinder.kt:90) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.impl.MergedBinder.arg_IoAF18A$invoke(DefaultBinders.kt:91) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
at love.forte.simbot.quantcat.common.binder.impl.MergedBinder.arg-IoAF18A(DefaultBinders.kt:110) ~[simbot-quantcat-common-jvm-4.3.1.jar:na]
... 26 common frames omitted
其他补充
No response
The text was updated successfully, but these errors were encountered:
是否会提供贡献?
否
版本号
4.3.1
附加版本
simbot-component-onebot-v11-core:1.0.1
涉及的编程语言
Kotlin
项目构建工具
Gradle
涉及的组件库
OneBot
问题描述
e.g.
(?<age>\\d+)?
当
age
被标记为为可选的name group
时,无法通过@FilterValue
获取除去String
以外其他类型。复现方式
测试一
测试一: 输入与输出
输入
test_1 1
输入
test_1
测试二
测试二: 输入与输出
输入
test_2 1
输入
test_2
“如果不是必须的,则在无法获取参数后传递null作为结果”,也就是说在无法获取时是默认返回空值?
测试三(正常运行)
测试三:输入与输出
test-3
,输出[TEST-3] plain_text->'test_3' ,page->null
test_3 1
, 输出[TEST-3] plain_text->'test_3 1' ,page->1
相关日志
其他补充
No response
The text was updated successfully, but these errors were encountered: