遇到的一些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,检查是否启动:

猜你喜欢

转载自blog.csdn.net/qq_44668389/article/details/88289794