dubbo报错:Failed to invoke the method add in the service 解决方法

本文探讨了在使用阿里云Dubbo框架时遇到的RPCException异常,详细分析了序列化POJO类失败的原因及解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method add in the service 

需要进行序列化的POJO类没有进行序列化

Failed to invoke the method selectOptStepVOList in the service com.sdtjla.risk.api.RemoteRiskLibraryService. Tried 1 times of the providers [192.168.137.74:20881] (1/1) from the registry 127.0.0.1:8848 on the consumer 192.168.137.74 using the dubbo version 3.2.14. Last error is: Failed to invoke remote method: selectOptStepVOList, provider: DefaultServiceInstance{serviceName='aqsc-risk', host='192.168.137.74', port=20881, enabled=true, healthy=true, metadata={dubbo.endpoints=[{"port":20881,"protocol":"dubbo"}], dubbo.metadata.revision=c03cee6db2f2d2895ea5450b77ad5d3a, dubbo.metadata.storage-type=remote, timestamp=1750323797617}}, service{name='com.sdtjla.risk.api.RemoteRiskLibraryService',group='null',version='null',protocol='dubbo',port='20881',params={check.serializable=false, side=provider, release=3.2.14, methods=selectCtrlMeasureVOList,selectOptStepVOList,selectVOById, logger=slf4j, deprecated=false, dubbo=2.0.2, interface=com.sdtjla.risk.api.RemoteRiskLibraryService, service-name-mapping=true, generic=false, serialize.check.status=DISABLE, metadata-type=remote, application=aqsc-risk, prefer.serialization=fastjson2,hessian2, dynamic=true, REGISTRY_CLUSTER=default:dev},}, cause: Failed to send message Request [id=3145409504665833018, version=2.0.2, twoWay=true, event=false, broken=false, mPayload=0, data=null] to /192.168.137.74:20881, cause: failed to access class java.util.zip.ZipFile$CleanableResource from class com.alibaba.fastjson2.writer.OWG_38_15_JarFile (java.util.zip.ZipFile$CleanableResource is in module java.base of loader 'bootstrap'; com.alibaba.fastjson2.writer.OWG_38_15_JarFile is in unnamed module of loader com.alibaba.fastjson2.util.DynamicClassLoader @6f8fa189) 怎么解决
最新发布
06-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值