<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.0</li>
<li>Operating System version: Linux</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>创建两个项目dubbo生产者项目、消费者项目</li>
<li>创建一个自定义异常并继承Exception。<br>
<a href="https://github.com/Johnson-Jia/Johnson/blob/master/BaseException.java">https://github.com/Johnson-Jia/Johnson/blob/master/BaseException.java</a><br>
<a href="https://github.com/Johnson-Jia/Johnson/blob/master/ErrorMsgException.java">https://github.com/Johnson-Jia/Johnson/blob/master/ErrorMsgException.java</a></li>
<li>生产者内抛出一个 ErrorMsgException 异常，dubbo消费者捕获到一个null异常。（序列化问题？）</li>
</ol>
<p dir="auto">java.lang.reflect.InvocationTargetException: null<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:497)<br>
at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.invoke(ReferenceAnnotationBeanPostProcessor.java:158)<br>
at com.sun.proxy.$Proxy320.searchScopeCourses(Unknown Source)<br>
at com.tbc.oim.business.service.v2.course.impl.OpenCourseV2ServiceImpl.listMyCanSelectCourse(OpenCourseV2ServiceImpl.java:192)<br>
at com.tbc.oim.business.controller.v2.course.CourseV2Controller.listMyCanSelectCourse(CourseV2Controller.java:75)<br>
at com.tbc.oim.business.controller.v2.course.CourseV2Controller$$FastClassBySpringCGLIB$$7077ced9.invoke()<br>
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)<br>
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)<br>
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)<br>
at com.tbc.base.exceptions.ExceptionHandler.around(ExceptionHandler.java:157)<br>
at sun.reflect.GeneratedMethodAccessor629.invoke(Unknown Source)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:497)<br>
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)<br>
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)<br>
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)<br>
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)<br>
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)<br>
at com.tbc.oim.business.controller.v2.course.CourseV2Controller$$EnhancerBySpringCGLIB$$d0863abc.listMyCanSelectCourse()<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:497)<br>
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)<br>
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)<br>
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)<br>
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)<br>
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)<br>
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)<br>
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)<br>
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)<br>
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:981)<br>
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:884)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)<br>
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:858)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)<br>
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)<br>
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)<br>
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)<br>
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)<br>
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)<br>
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)<br>
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)<br>
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)<br>
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)<br>
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)<br>
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br>
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br>
at java.lang.Thread.run(Thread.java:745)<br>
Caused by: com.tbc.base.exceptions.base.ErrorMsgException: null</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">I am using the new dubbo version 2.7.4, and I know the bugfix of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="334154640" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/1968" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/1968/hovercard" href="https://github.com/apache/dubbo/issues/1968">#1968</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="474347720" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4694" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4694/hovercard" href="https://github.com/apache/dubbo/issues/4694">#4694</a> has been merge into 2.7.4 version, but I still met this problem.</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.4</li>
<li>Operating System version: CentOS</li>
<li>Java version: JDK 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>start the consumer and provider services.</li>
<li>tcpkill the connection from consumer to provider.</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Fast rebuild new connection when the connection is broken.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">The connection is rebuilt after more than one minute.</p>