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

openFeign和jt808出现的异常 #31

Closed
panpengfei21 opened this issue Jan 7, 2021 · 0 comments
Closed

openFeign和jt808出现的异常 #31

panpengfei21 opened this issue Jan 7, 2021 · 0 comments

Comments

@panpengfei21
Copy link

环境

spring-cloud-starter-openfeign 2.2.5.RELEASE

jt-808-server-spring-boot-stater 1.0.10-RELEASE

出现的异常

2021-01-07 10:27:14.382 ERROR 3135 --- [msg-processor-0] r.CustomReflectionBasedRequestMsgHandler : An unexpected exception occurred while invoke ExceptionHandler

java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_265]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_265]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_265]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_265]
at io.github.hylexus.jt808.handler.impl.exception.ExceptionHandlerMethodExceptionHandler.handleException(ExceptionHandlerMethodExceptionHandler.java:47) ~[jt-808-server-support-1.0.10-RELEASE.jar:1.0.10-RELEASE]
at io.github.hylexus.jt808.handler.impl.exception.DelegateExceptionHandler.handleException(DelegateExceptionHandler.java:55) ~[jt-808-server-support-1.0.10-RELEASE.jar:1.0.10-RELEASE]
at io.github.hylexus.jt808.handler.impl.reflection.CustomReflectionBasedRequestMsgHandler.doProcess(CustomReflectionBasedRequestMsgHandler.java:80) ~[jt-808-server-support-1.0.10-RELEASE.jar:1.0.10-RELEASE]
at io.github.hylexus.jt808.handler.AbstractMsgHandler.handleMsg(AbstractMsgHandler.java:36) [jt-808-server-support-1.0.10-RELEASE.jar:1.0.10-RELEASE]
at io.github.hylexus.jt808.queue.listener.AbstractRequestMsgQueueListener.consumeMsg(AbstractRequestMsgQueueListener.java:65) [jt-808-server-support-1.0.10-RELEASE.jar:1.0.10-RELEASE]
at io.github.hylexus.jt808.queue.listener.LocalEventBusListener.listen(LocalEventBusListener.java:42) [jt-808-server-support-1.0.10-RELEASE.jar:1.0.10-RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_265]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_265]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_265]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_265]
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:87) [guava-29.0-jre.jar:na]
at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:144) [guava-29.0-jre.jar:na]
at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:72) [guava-29.0-jre.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_265]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_265]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_265]
Caused by: io.netty.channel.StacklessClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(Object, ChannelPromise)(Unknown Source) ~[netty-all-4.1.52.Final.jar:4.1.52.Final]

怎么出现的

在@Jt808RequestMsgHandlerMapping
先调用openFeign里的方法(调用其它微服务)
再调用Jt808Session.sendMsgToClient就出错..
都是第一次发送出错。

第一次以后又都正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant