【订单模块 - 购票接口 - 测试异常】
【分析】
异常信息中的关键信息:
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®ister.ip=192.168.31.136&remote.timestamp=1560437802824&side=consumer×tamp=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
®ister.ip=192.168.31.136&remote.timestamp=1560437802824&side=consumer×tamp=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]