1、dubbo报错timeout
requestXmlVo=ins.platform.common.xmlvo.newinfoimport.request.CommonInportRequestXmlVo@865cacb}], attachments={path=ins.platform.handregit.service.facade.NewHandRegitService, interface=ins.platform.handregit.service.facade.NewHandRegitService, version=0.0.0, timeout=600000}]], channel: /192.168.2.12:38391 -> /192.168.3.3:60049
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:101)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy13.autoCaseFillIng(proxy13.java)
at ins.platform.controller.common.plus.CommonImportInfoController.inportXml(CommonImportInfoController.java:250)
at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.alibaba.dubbo.remoting.TimeoutException: Waiting server-side response timeout by scan timer. start time: 2019-01-31 23:01:21.444, end time: 2019-01-31 23:11:21.451, client elapsed: 0 ms, server elapsed: 600007 ms, timeout: 600000 ms, request: Request [id=21635, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=autoCaseFillIng, parameterTypes=[interface java.util.Map], arguments=[{infoStr=<?xml version="1.0" encoding="GBK"?><PACKET type="RESPONSE" version="1.0"><RequestHead> <Uuid>20190164622234248132602724206476</Uuid> <Sender>xxxxxds</Sender> <User>xxxxx</User> <Password>xxx@1200</Password> <FlowinTime>2019-01-31 23:00:18</FlowinTime> <RequestType>1</RequestType> <ServerVersion>V1.0.0.3</ServerVersion> <Token>7822cfc80ce3a6c37da340f48dd0bfa8</Token></RequestHead><RequestBody>
解决办法:
1、修改消费者超时时间
<dubbo:registry address="填写zookeeper地址" check="false" timeout="60000000"/>
2、修改提供者配置文件信息如下:
<dubbo:registry address="填写zookeeper地址" check="false" timeout="60000000"/>
<dubbo:protocol name="dubbo" threadpool="cached" dispatcher="all" serialization="nativejava" port="60040"/>
<!-- <dubbo:provider timeout="50000" threadpool="fixed" threads="500" accepts="1000" /> -->
<dubbo:provider timeout="50000" threadpool="cached" dispatcher="all" threads="500" accepts="1000" />