com.alibaba.dubbo.remoting.TimeoutException异常

严重: Servlet.service() for servlet [e3-manager] in context with path [] threw exception [Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getItemById in the service cn.e3mall.service.ItemService. Tried 3 times of the providers [192.168.25.130:20880] (1/1) from the registry 192.168.25.131:2181 on the consumer 192.168.25.80 using the dubbo version 2.5.3. Last error is: Invoke remote method timeout. method: getItemById, provider: dubbo://192.168.25.130:20880/cn.e3mall.service.ItemService?anyhost=true&application=e3-manager-web&check=false&dubbo=2.5.3&interface=cn.e3mall.service.ItemService&methods=getItemById&pid=8868&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1522920403876, cause: Waiting server-side response timeout. start time: 2018-04-05 17:26:52.897, end time: 2018-04-05 17:26:53.903, client elapsed: 0 ms, server elapsed: 1005 ms, timeout: 1000 ms, request: Request [id=2, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=getItemById, parameterTypes=[long], arguments=[830972], attachments={path=cn.e3mall.service.ItemService, interface=cn.e3mall.service.ItemService, version=0.0.0}]], channel: 192.168.25.131:2181  -> /192.168.25.131:2181 0] with root cause
com.alibaba.dubbo.remoting.TimeoutException: Waiting server-side response timeout. start time: 2018-04-05 17:26:52.897, end time: 2018-04-05 17:26:53.903, client elapsed: 0 ms, server elapsed: 1005 ms, timeout: 1000 ms, request: Request [id=2, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=getItemById, parameterTypes=[long], arguments=[830972], attachments={path=cn.e3mall.service.ItemService, interface=cn.e3mall.service.ItemService, version=0.0.0}]], channel: /192.168.25.130:61208 -> /192.168.25.130:20880
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:107)
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:84)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:96)
at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:144)
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:74)
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53)
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:77)

出现上述错误,请看你的mysql或着sql sever服务器是否打开,我的就是mysql服务器被电脑自动关闭了才出现这种错误,一般打开就解决了,另外用eclipse做Maven项目如果实在找不到报错的原因,或着代码根本没动,一启动就报错了,就把整个项目或着模块先clean在install,然后可能就好了.

posted @ 2018-11-03 17:52  张小振的博客  阅读(5556)  评论(0编辑  收藏  举报