- dubbo 服务端异常默认是不会在本地捕获(HeaderExchangeHandler),异常日志记录是通过ExceptionFilter实现,调用堆栈如下:
java.lang.RuntimeException: income error!!!!!
at com.wacai.transsonic.showcase.service.impl.IcbcAccountServiceImpl.income(IcbcAccountServiceImpl.java:16) ~[classes/:na]
at com.alibaba.dubbo.common.bytecode.Wrapper1.invokeMethod(Wrapper1.java) ~[dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:46) ~[dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:72) ~[dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.config.invoker.DelegateProviderMetaDataInvoker.invoke(DelegateProviderMetaDataInvoker.java:36) ~[dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:59) ~[dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:65) ~[dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:83) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:46) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:83) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:79) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:83) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.wacai.dubbo.rpc.filter.NinjaTraceFilter.invoke(NinjaTraceFilter.java:104) [dubbo-rpc-filter-0.1.0.jar:na]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:83) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:64) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:83) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:137) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:83) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:40) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:83) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:42) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:83) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:105) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:99) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:171) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:85) [dubbo-3.3.0-SNAPSHOT.jar!/:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]