请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

请问:buyTicket 测试时,重启 order 之后,调用 cinema 接口连不上,提示管道已关闭,怎么解?

【订单模块 - 购票接口 - 测试异常】
【分析】
异常信息中的关键信息:
1、com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getOrderNeeds in the service com.stylefeng.guns.api.cinema.CinemaServiceApi.
2、cause: message can not send, because channel is closed .
【异常信息】
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getOrderNeeds in the service com.stylefeng.guns.api.cinema.CinemaServiceApi.
Tried 3 times of the providers [192.168.31.136:20885] (1/1) from the registry localhost:2181 on the consumer 192.168.31.136 using the dubbo version 2.6.0.
Last error is: Failed to invoke remote method: getOrderNeeds, provider:
dubbo://192.168.31.136:20885/com.stylefeng.guns.api.cinema.CinemaServiceApi?accepts=10
&anyhost=true&application=meeting-order&check=false&dubbo=2.6.0&executes=10&generic=false
&interface=com.stylefeng.guns.api.cinema.CinemaServiceApi
&methods=getFilmInfoByFieldId,getBrands,getOrderNeeds,getAreas,getHallTypes,getCinemas,getCinemaInfoById,getFilmInfosWithFields,getHallField
&pid=10940&register.ip=192.168.31.136&remote.timestamp=1560437802824&side=consumer&timestamp=1560443435504,
cause: message can not send, because channel is closed .
url:dubbo://192.168.31.136:20885/com.stylefeng.guns.api.cinema.CinemaServiceApi?accepts=10
&anyhost=true&application=meeting-order&check=false&codec=dubbo&dubbo=2.6.0&executes=10&generic=false&heartbeat=60000
&interface=com.stylefeng.guns.api.cinema.CinemaServiceApi
&methods=getFilmInfoByFieldId,getBrands,getOrderNeeds,getAreas,getHallTypes,getCinemas,getCinemaInfoById,getFilmInfosWithFields,getHallField&pid=10940
&register.ip=192.168.31.136&remote.timestamp=1560437802824&side=consumer&timestamp=1560443435504

		at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:101) ~[dubbo-2.6.0.jar:2.6.0]
		at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:232) ~[dubbo-2.6.0.jar:2.6.0]
		at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:70) ~[dubbo-2.6.0.jar:2.6.0]
		at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:51) ~[dubbo-2.6.0.jar:2.6.0]
		at com.alibaba.dubbo.common.bytecode.proxy0.getOrderNeeds(proxy0.java) ~[dubbo-2.6.0.jar:2.6.0]
		at com.stylefeng.guns.order.modular.service.DefaultOrderServiceImpl.saveOrder(DefaultOrderServiceImpl.java:103) ~[na:na]

正在回答 回答被采纳积分+3

2回答

提问者 梨多情 2019-06-14 18:03:40

启用中啊 run dashboard 都有正常显示服务状态

0 回复 有任何疑惑可以回复我~
Allen 2019-06-14 17:17:10

有确认过Order服务的启动状态么,  Order要启动状态才能被调用

0 回复 有任何疑惑可以回复我~
  • 提问者 梨多情 #1
    启用中啊 run dashboard 都有正常显示服务状态
    回复 有任何疑惑可以回复我~ 2019-06-14 19:09:45
  • Allen 回复 提问者 梨多情 #2
    可以QQ私聊我一下  我远程看一下
    回复 有任何疑惑可以回复我~ 2019-06-15 09:31:14
  • 老师  那个兄弟是啥问题  我差不多也是这样  我的是关了WiFi就OK了
    回复 有任何疑惑可以回复我~ 2020-01-19 13:54:16
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信