org.apache.dubbo.rpc.RpcException: Failed to invoke the method saveOne
in the service fun.chanvo.service.ITbProductService. Tried 3 times of
the providers [192.168.0.209:20880] (1/1) from the registry
on the consumer 192.168.0.209 using the dubbo version 2.7.3. Last error is: Failed to invoke remote method: saveOne,
provider:
dubbo://192.168.0.209:20880/fun.chanvo.service.ITbProductService?anyhost=true&application=manager-web&bean.name=ServiceBean:fun.chanvo.service.ITbProductService:1.0&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=fun.chanvo.service.ITbProductService&lazy=false&methods=removeById,lambdaQuery,save,removeByMap,saveOne,update,getObj,saveOrUpdateBatch,remove,queryList,listByIds,getBaseMapper,removeByIds,lambdaUpdate,updateBatchById,saveOrUpdate,listMaps,saveBatch,query,count,listObjs,list,getMap,updateById,pageMaps,listByMap,getById,getOne,page&pid=820&qos.enable=false®ister=true®ister.ip=192.168.0.209&release=2.7.3&remote.application=manager-service&revision=1.0&side=consumer&sticky=false&timeout=3000×tamp=1574042541981&version=1.0,
cause: org.apache.dubbo.remoting.RemotingException:
io.netty.handler.codec.EncoderException:
java.lang.IllegalStateException: Serialized class
fun.chanvo.domain.dto.product.ProductSaveDTO must implement
java.io.Serializable io.netty.handler.codec.EncoderException:
java.lang.IllegalStateException: Serialized class
fun.chanvo.domain.dto.product.ProductSaveDTO must implement
java.io.Serializable
如异常所说 给controller及service中传递的对象加上 implements Serializable