遇到的一些bug

严重: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method findPage in the service com.pinyougou.sellergoods.service.SpecificationService. Tried 3 times of the providers [192.168.25.1:20881] (1/1) from the registry 192.168.25.129:2181 on the consumer 192.168.25.1 using the dubbo version 2.8.4. Last error is: Failed to invoke remote method: findPage, provider: dubbo://192.168.25.1:20881/com.pinyougou.sellergoods.service.SpecificationService?anyhost=true&application=pinyougou-manager-web&check=false&dubbo=2.8.4&generic=false&interface=com.pinyougou.sellergoods.service.SpecificationService&methods=add,findOne,update,findPage,delete,findAll&pid=1256&revision=1.0-SNAPSHOT&side=consumer&timestamp=1551925834314, cause: Failed to send message Request [id=2, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=findPage, parameterTypes=[class com.pinyougou.pojo.TbSpecification, int, int], arguments=[com.pinyougou.pojo.TbSpecification@2ee46437, 1, 10], attachments={path=com.pinyougou.sellergoods.service.SpecificationService, interface=com.pinyougou.sellergoods.service.SpecificationService, version=0.0.0}]] to /192.168.25.1:20881, cause: Serialized class com.pinyougou.pojo.TbSpecification must implement java.io.Serializable] with root cause

java.lang.IllegalStateException: Serialized class com.pinyougou.pojo.TbSpecification must implement java.io.Serializable

解决方法:
*遇到这个bug多半是没有实现Serializable

public class TbSpecification implements Serializable {

还有种可能就是没有启动dubb,检查是否启动:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值