1.问题
A项目在dev环境打版,可以顺利调用B项目的dubbo服务。但是我在本地环境定点连dev环境B项目的dubbo服务,连接不上。接口没有修改,之前是可以调通,突然不可以了.
2.代码
dubbo接口如下:
PaginationSupport findPageClassesList(ClassTeacherVo vo,Integer pageNo,Integer pageSize,String order);
调用示例如下:
PaginationSupport findPageClasses = iClassRpcService().findPageClassesList(tempVo, 1, 10, "createTime");
3.报错
为了防止有人恶意攻击,把服务ip改成10.0.0.0
com.alibaba.dubbo.rpc.RpcException: Failed to invoke remote method: findPageClassesList, provider: dubbo://10.0.0.0:20881/com.bbtree.school.api.interfaces.IClassRpcService?application=bbtree-erp&default.check=false&default.loadbalance=leastactive&default.reference.filter=activelimit&default.retries=0&default.timeout=60000&dubbo=2.8.4&interface=com.bbtree.school.api.interfaces.IClassRpcService&methods=getClass,findPageClasses,removeClass,updateClass,addGraduateRelationShip,getGraduateRelationShip,findClassDetailes,findClassesList,findClassByschoolId,findByUserId,findClasses,addClass,findPageClassesList&pid=12676&revision=0.0.3-SNAPSHOT-client&serialization=kryo&side=consumer×tamp=1513591044602, cause: Fail to decode request due to: RpcInvocation [methodName=findPageClassesList, parameterTypes=[class com.bbtree.school.api.vo.ClassTeacherVo, null, null, null], arguments=null, attachments={path=com.bbtree.school.api.interfaces.IClassRpcService, input=456, dubbo=2.8.4, version=0.0.0}]
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:101)
at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:144)
at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:74)
at com.alibaba.dubbo.rpc.filter.ActiveLimitFilter.invoke(ActiveLimitFilter.java:70)
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.bbtree.cat.dubbo.DubboTraceFilter.invoke(DubboTraceFilter.java:33)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
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.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy29.findPageClassesList(proxy29.java)
at com.ming800.xkg.clazz.controller.ClazzPageInfoHandler.handle(ClazzPageInfoHandler.java:63)
at com.ming800.core.base.service.impl.HandlerUtilServiceImpl.queryPageHandler(HandlerUtilServiceImpl.java:68)
at com.ming800.core.base.service.impl.XdoManagerImpl.listPage(XdoManagerImpl.java:162)
at com.ming800.core.base.service.impl.XdoManagerImpl.generateResultListPage(XdoManagerImpl.java:1065)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springf