zoukankan      html  css  js  c++  java
  • cause: Fail to decode request due to: RpcInvocation

    Stack:

    com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getRefundDetail in the service com.raycloud.zdtrade.api.IRefundService. Tried 6 times of the providers [39.100.56.187:31000] (1/1) from the registry ali-zk.superboss.cc:2181 on the consumer 172.16.30.53 using the dubbo version 2.6.2. Last error is: Failed to invoke remote method: getRefundDetail, provider: dubbo://39.100.56.187:31000/com.raycloud.zdtrade.api.IRefundService?anyhost=false&application=zd-marketing-schedule-dev&check=false&default.check=false&default.init=false&default.retries=0&default.timeout=60000&dubbo=2.6.0&generic=false&interface=com.raycloud.zdtrade.api.IRefundService&logger=slf4j&methods=getRefundDetail&pid=50045&pln=zd-dubbo-gateway&register.ip=172.16.30.53&remote.timestamp=1629730138908&retries=5&revision=1.0.1-20210820.055213-8&serialization=hessian2&side=consumer&timeout=4000&timestamp=1629773331155&version=1.0.0-dev-out, cause: Fail to decode request due to: RpcInvocation [methodName=getRefundDetail, parameterTypes=[class com.raycloud.zdtrade.api.request.RefundRequest], arguments=null, attachments={path=com.raycloud.zdtrade.api.IRefundService, input=458, dubbo=2.6.2, version=1.0.0-dev-out}]

    解决:

    jar包从1.0.0升级到1.0.1导致。

    排查思路:

    1. 传递参数是否实现 Serializable

    2. 两边jar包版本是否一致

    3. dubbo服务版本是否正确

  • 相关阅读:
    程序员代码面试指南:IT名企算法与数据结构题目最优解
    经典排序算法
    Log4j输出格式控制--log4j的PatternLayout参数含义
    常用数据库4 mongodb
    常用数据库2 sqlite及SQL注入
    面试常问-数据库索引实现原理
    自定义web框架
    HTML|CSS之布局相关总结
    C++模板类练习题
    C++中的运算符重载练习题
  • 原文地址:https://www.cnblogs.com/andrew-chen/p/15179485.html
Copyright © 2011-2022 走看看