Caused by: java.lang.IllegalStateException: Serialized class cn.bloghut.dto.ProducterDto must implem
错误产生环境
使用zookeeper+dubbo进行远程调用时产生
错误描述
Caused by: java.lang.IllegalStateException: Serialized class cn.bloghut.dto.ProducterDto must implement java.io.Serializableorg.apache.dubbo.remoting.RemotingException: io.netty.handler.codec.EncoderException: java.lang.IllegalStateException: Serialized class cn.bloghut.dto.ProducterDto must implement java.io.Serializable
io.netty.handler.codec.EncoderException: java.lang.IllegalStateException: Serialized class cn.bloghut.dto.ProducterDto must implement java.io.Serializableat io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:125)at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709)at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792)at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702)at io.netty.handler.timeout.IdleStateHandler.write(IdleStateHandler.java:304)at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709)at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792)at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702)at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:115)
错误原因
实体类没有序列化 ,导致的
- 序列化:将java对象转换为二进制,用于保存或者网络传输
在这里插入代码片
解决办法
java实体类需要实现Serializable 接口
Caused by: java.lang.IllegalStateException: Serialized class cn.bloghut.dto.ProducterDto must implem相关推荐
- Caused by:java.lang.IllegalStateException at android.media.MediaPlayer._setDataSource(Native Method)
使用Mediaplayer播放本地音频,在第二次调用mediaplayer.setDataSource()时报错如下: Caused by: java.lang.IllegalStateExcepti ...
- Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)
Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) ...
- 解决: Caused by: java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 报错: Caused by: java.lang.IllegalStateException: ...
- Caused by: java.lang.IllegalStateException: Failed to introspect Class
Spring-Data-ElasticSearch整合spring boot问题 Caused by: java.lang.IllegalStateException: Failed to intro ...
- Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.mchange.v2.c3p0.ComboPoo
主要问题:Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.mchange.v2.c3p0.Com ...
- 关于Caused by: java.lang.IllegalStateException:问题解决办法!
IDEA中出现Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalin ...
- 【问题已解决】Caused by: java.lang.IllegalStateException
错误 Caused by: java.lang.IllegalStateException: Property 'configuration' and 'configLocation' can not ...
- Caused by: java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available
websocket导致spring boot 项目单元测试启动失败的问题解决 在单元测试时,项目启动报错 Caused by: java.lang.IllegalStateException: jav ...
- Caused by java lang IllegalStateException SpringJUnit4Clas
分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 1.错误 ...
最新文章
- 【力扣网练习题】整数反转
- Ceph mon节点故障处理案例分解
- java.security.InvalidKeyException:illegal Key Size
- 测试 Zoundry Raven
- 【学习笔记】Redis的geohash数据结构介绍
- FCN训练自己的数据集及测试
- [HNOI2008]玩具装箱toy(dp+斜率优化)
- 计算机技术与自动化期刊官网,计算技术与自动化是什么级别
- hdu 2188巴什博弈
- 【ElasticSearch】IK分词加入标点符号
- 严肃贴:内幕 手机行业
- 牛!发出中国第一封电子邮件,注册登记域名 CN,中国互联网之父传奇
- 回顾Gartner 报告:2010年至2017年那些最酷的存储初创公司去哪儿了
- python运维书籍推荐_python运维书籍
- 网站抓取精灵V3.0正式版
- 前端工程师的价值体现在哪里?
- 2016年美团校园招聘数据开发工程师笔试编程题
- 怎样开通gmail邮箱smtp服务
- git did not exit cleanly
- 查杀新rundl132.exe病毒的过程