- 浏览: 6476 次
- 性别:
- 来自: 北京
文章分类
最新评论
jave po类序列化报的错误
500
程序报错,可能该页面正在调试或者是设计上存在缺陷,请联系管理员
exception thrown: class org.springframework.web.util.NestedServletException:Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method selectFortuneReadByKeywords in the service cn.creditease.zeus.server.service.normandy.WealthNocturneService. Tried 3 times of the providers [10.100.142.63:20885] (1/1) from the registry 10.100.142.63:2181 on the consumer 10.100.142.64 using the dubbo version 2.8.4-SNAPSHOT. Last error is: Failed to invoke remote method: selectFortuneReadByKeywords, provider: dubbo://10.100.142.63:20885/cn.creditease.zeus.server.service.normandy.WealthNocturneService?anyhost=true&application=fso-consumer-titan&check=false&default.serialization=java&default.timeout=60000&default.version=1.0.0&dubbo=2.8.4-SNAPSHOT&generic=false&interface=cn.creditease.zeus.server.service.normandy.WealthNocturneService&methods=insertWealthNocturne,insertFortuneRead,deleteFortuneRead,queryNocturneApproveInfo,queryFortuneReadDetail,selectNocturneById,selectFortuneReadCount,querySwitchStatus,updateSwitchStatus,getAllWealthNocturne,updateNocturneApproveStatus,getAllFortuneRead,deleteWealthNocturne,updateListenerAmount,selectNocturneListByKeywords,updateReadApproveStatus,selectFortuneReadById,selectFortuneReadByKeywords,updateFortuneRead,updateWealthNocturne,selectNocturneCount&organization=dubbox&owner=programmer&pid=6096&protocol=dubbo&revision=2.1.30-SNAPSHOT&side=consumer×tamp=1461224391082, cause: java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543 java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at java.util.ArrayList.readObject(ArrayList.java:771) at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:75) at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:87) at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:87) at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:117) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:98) at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:134) at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:95) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46) at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:134) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
/fso_newmanager/wealth/reading/getAll
/wealth/reading/getAll
With the following stack trace:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method selectFortuneReadByKeywords in the service cn.creditease.zeus.server.service.normandy.WealthNocturneService. Tried 3 times of the providers [10.100.142.63:20885] (1/1) from the registry 10.100.142.63:2181 on the consumer 10.100.142.64 using the dubbo version 2.8.4-SNAPSHOT. Last error is: Failed to invoke remote method: selectFortuneReadByKeywords, provider: dubbo://10.100.142.63:20885/cn.creditease.zeus.server.service.normandy.WealthNocturneService?anyhost=true&application=fso-consumer-titan&check=false&default.serialization=java&default.timeout=60000&default.version=1.0.0&dubbo=2.8.4-SNAPSHOT&generic=false&interface=cn.creditease.zeus.server.service.normandy.WealthNocturneService&methods=insertWealthNocturne,insertFortuneRead,deleteFortuneRead,queryNocturneApproveInfo,queryFortuneReadDetail,selectNocturneById,selectFortuneReadCount,querySwitchStatus,updateSwitchStatus,getAllWealthNocturne,updateNocturneApproveStatus,getAllFortuneRead,deleteWealthNocturne,updateListenerAmount,selectNocturneListByKeywords,updateReadApproveStatus,selectFortuneReadById,selectFortuneReadByKeywords,updateFortuneRead,updateWealthNocturne,selectNocturneCount&organization=dubbox&owner=programmer&pid=6096&protocol=dubbo&revision=2.1.30-SNAPSHOT&side=consumer×tamp=1461224391082, cause: java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at java.util.ArrayList.readObject(ArrayList.java:771)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:75)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:117)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:98)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:134)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:95)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:134)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:965)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at cn.creditease.fsonm.common.SysAuthFilter.doFilterInternal(SysAuthFilter.java:46)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method selectFortuneReadByKeywords in the service cn.creditease.zeus.server.service.normandy.WealthNocturneService. Tried 3 times of the providers [10.100.142.63:20885] (1/1) from the registry 10.100.142.63:2181 on the consumer 10.100.142.64 using the dubbo version 2.8.4-SNAPSHOT. Last error is: Failed to invoke remote method: selectFortuneReadByKeywords, provider: dubbo://10.100.142.63:20885/cn.creditease.zeus.server.service.normandy.WealthNocturneService?anyhost=true&application=fso-consumer-titan&check=false&default.serialization=java&default.timeout=60000&default.version=1.0.0&dubbo=2.8.4-SNAPSHOT&generic=false&interface=cn.creditease.zeus.server.service.normandy.WealthNocturneService&methods=insertWealthNocturne,insertFortuneRead,deleteFortuneRead,queryNocturneApproveInfo,queryFortuneReadDetail,selectNocturneById,selectFortuneReadCount,querySwitchStatus,updateSwitchStatus,getAllWealthNocturne,updateNocturneApproveStatus,getAllFortuneRead,deleteWealthNocturne,updateListenerAmount,selectNocturneListByKeywords,updateReadApproveStatus,selectFortuneReadById,selectFortuneReadByKeywords,updateFortuneRead,updateWealthNocturne,selectNocturneCount&organization=dubbox&owner=programmer&pid=6096&protocol=dubbo&revision=2.1.30-SNAPSHOT&side=consumer×tamp=1461224391082, cause: java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at java.util.ArrayList.readObject(ArrayList.java:771)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:75)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:117)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:98)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:134)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:95)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:134)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:101)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy9.selectFortuneReadByKeywords(proxy9.java)
at cn.creditease.fsonm.zeus.yidingying.web.FsoFortuneReadController.getAllWealthNocturne(FsoFortuneReadController.java:62)
at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:685)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
... 32 more
Caused by: com.alibaba.dubbo.remoting.RemotingException: java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at java.util.ArrayList.readObject(ArrayList.java:771)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:75)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:117)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:98)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:134)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:95)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:134)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:190)
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:110)
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:84)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:96)
at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:144)
at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:74)
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53)
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:77)
... 49 more
---------------------------------------------------------------------------------
解决方法:转载的!!!
java.io.InvalidClassException:CartonPrintVO; local class incompatible: stream classdesc serialVersio
2013-06-16 06:40 2949人阅读 评论(0) 收藏 举报
分类: Java专栏(130)
现象:
Java.io.InvalidClassException:CartonPrintVO; local class incompatible: stream classdesc serialVersionUID = xxxxx, local class serialVersionUID = xxxxx
解决办法:
今天在修改了一个VO类后报出了
java.io.InvalidClassException: www.gbsou.com.CartonPrintVO; local class incompatible: stream classdesc serialVersionUID = 1412277949381450533, local class serialVersionUID = -3559189311748262112
异常,分析了下原因:
本地和远程的类中serialVersionUID 值不一样.
解决方案:
将本地的序列化的类中的版本号(serialVersionUID )改成和远程中一样
从上列异常中可以看出
stream classdesc serialVersionUID = 1412277949381450533, (远程)
local class serialVersionUID = -3559189311748262112 (本地)
所以你只需要吧本地的序列化类里的private static final long serialVersionUID = 改成远程的就行了
没有 private static final long serialVersionUID = 这行代码的加上这行代码。
程序报错,可能该页面正在调试或者是设计上存在缺陷,请联系管理员
exception thrown: class org.springframework.web.util.NestedServletException:Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method selectFortuneReadByKeywords in the service cn.creditease.zeus.server.service.normandy.WealthNocturneService. Tried 3 times of the providers [10.100.142.63:20885] (1/1) from the registry 10.100.142.63:2181 on the consumer 10.100.142.64 using the dubbo version 2.8.4-SNAPSHOT. Last error is: Failed to invoke remote method: selectFortuneReadByKeywords, provider: dubbo://10.100.142.63:20885/cn.creditease.zeus.server.service.normandy.WealthNocturneService?anyhost=true&application=fso-consumer-titan&check=false&default.serialization=java&default.timeout=60000&default.version=1.0.0&dubbo=2.8.4-SNAPSHOT&generic=false&interface=cn.creditease.zeus.server.service.normandy.WealthNocturneService&methods=insertWealthNocturne,insertFortuneRead,deleteFortuneRead,queryNocturneApproveInfo,queryFortuneReadDetail,selectNocturneById,selectFortuneReadCount,querySwitchStatus,updateSwitchStatus,getAllWealthNocturne,updateNocturneApproveStatus,getAllFortuneRead,deleteWealthNocturne,updateListenerAmount,selectNocturneListByKeywords,updateReadApproveStatus,selectFortuneReadById,selectFortuneReadByKeywords,updateFortuneRead,updateWealthNocturne,selectNocturneCount&organization=dubbox&owner=programmer&pid=6096&protocol=dubbo&revision=2.1.30-SNAPSHOT&side=consumer×tamp=1461224391082, cause: java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543 java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at java.util.ArrayList.readObject(ArrayList.java:771) at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:75) at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:87) at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:87) at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:117) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:98) at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:134) at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:95) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46) at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:134) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
/fso_newmanager/wealth/reading/getAll
/wealth/reading/getAll
With the following stack trace:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method selectFortuneReadByKeywords in the service cn.creditease.zeus.server.service.normandy.WealthNocturneService. Tried 3 times of the providers [10.100.142.63:20885] (1/1) from the registry 10.100.142.63:2181 on the consumer 10.100.142.64 using the dubbo version 2.8.4-SNAPSHOT. Last error is: Failed to invoke remote method: selectFortuneReadByKeywords, provider: dubbo://10.100.142.63:20885/cn.creditease.zeus.server.service.normandy.WealthNocturneService?anyhost=true&application=fso-consumer-titan&check=false&default.serialization=java&default.timeout=60000&default.version=1.0.0&dubbo=2.8.4-SNAPSHOT&generic=false&interface=cn.creditease.zeus.server.service.normandy.WealthNocturneService&methods=insertWealthNocturne,insertFortuneRead,deleteFortuneRead,queryNocturneApproveInfo,queryFortuneReadDetail,selectNocturneById,selectFortuneReadCount,querySwitchStatus,updateSwitchStatus,getAllWealthNocturne,updateNocturneApproveStatus,getAllFortuneRead,deleteWealthNocturne,updateListenerAmount,selectNocturneListByKeywords,updateReadApproveStatus,selectFortuneReadById,selectFortuneReadByKeywords,updateFortuneRead,updateWealthNocturne,selectNocturneCount&organization=dubbox&owner=programmer&pid=6096&protocol=dubbo&revision=2.1.30-SNAPSHOT&side=consumer×tamp=1461224391082, cause: java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at java.util.ArrayList.readObject(ArrayList.java:771)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:75)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:117)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:98)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:134)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:95)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:134)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:965)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at cn.creditease.fsonm.common.SysAuthFilter.doFilterInternal(SysAuthFilter.java:46)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method selectFortuneReadByKeywords in the service cn.creditease.zeus.server.service.normandy.WealthNocturneService. Tried 3 times of the providers [10.100.142.63:20885] (1/1) from the registry 10.100.142.63:2181 on the consumer 10.100.142.64 using the dubbo version 2.8.4-SNAPSHOT. Last error is: Failed to invoke remote method: selectFortuneReadByKeywords, provider: dubbo://10.100.142.63:20885/cn.creditease.zeus.server.service.normandy.WealthNocturneService?anyhost=true&application=fso-consumer-titan&check=false&default.serialization=java&default.timeout=60000&default.version=1.0.0&dubbo=2.8.4-SNAPSHOT&generic=false&interface=cn.creditease.zeus.server.service.normandy.WealthNocturneService&methods=insertWealthNocturne,insertFortuneRead,deleteFortuneRead,queryNocturneApproveInfo,queryFortuneReadDetail,selectNocturneById,selectFortuneReadCount,querySwitchStatus,updateSwitchStatus,getAllWealthNocturne,updateNocturneApproveStatus,getAllFortuneRead,deleteWealthNocturne,updateListenerAmount,selectNocturneListByKeywords,updateReadApproveStatus,selectFortuneReadById,selectFortuneReadByKeywords,updateFortuneRead,updateWealthNocturne,selectNocturneCount&organization=dubbox&owner=programmer&pid=6096&protocol=dubbo&revision=2.1.30-SNAPSHOT&side=consumer×tamp=1461224391082, cause: java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at java.util.ArrayList.readObject(ArrayList.java:771)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:75)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:117)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:98)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:134)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:95)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:134)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:101)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy9.selectFortuneReadByKeywords(proxy9.java)
at cn.creditease.fsonm.zeus.yidingying.web.FsoFortuneReadController.getAllWealthNocturne(FsoFortuneReadController.java:62)
at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:685)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
... 32 more
Caused by: com.alibaba.dubbo.remoting.RemotingException: java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
java.io.InvalidClassException: cn.creditease.zeus.server.model.normandy.fso.FsoFortuneRead; local class incompatible: stream classdesc serialVersionUID = -276924319438964303, local class serialVersionUID = 698673398641011543
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at java.util.ArrayList.readObject(ArrayList.java:771)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:75)
at com.alibaba.dubbo.common.serialize.support.java.JavaObjectInput.readObject(JavaObjectInput.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:87)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:117)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:98)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:134)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:95)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:134)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:190)
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:110)
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:84)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:96)
at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:144)
at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:74)
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53)
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:77)
... 49 more
---------------------------------------------------------------------------------
解决方法:转载的!!!
java.io.InvalidClassException:CartonPrintVO; local class incompatible: stream classdesc serialVersio
2013-06-16 06:40 2949人阅读 评论(0) 收藏 举报
分类: Java专栏(130)
现象:
Java.io.InvalidClassException:CartonPrintVO; local class incompatible: stream classdesc serialVersionUID = xxxxx, local class serialVersionUID = xxxxx
解决办法:
今天在修改了一个VO类后报出了
java.io.InvalidClassException: www.gbsou.com.CartonPrintVO; local class incompatible: stream classdesc serialVersionUID = 1412277949381450533, local class serialVersionUID = -3559189311748262112
异常,分析了下原因:
本地和远程的类中serialVersionUID 值不一样.
解决方案:
将本地的序列化的类中的版本号(serialVersionUID )改成和远程中一样
从上列异常中可以看出
stream classdesc serialVersionUID = 1412277949381450533, (远程)
local class serialVersionUID = -3559189311748262112 (本地)
所以你只需要吧本地的序列化类里的private static final long serialVersionUID = 改成远程的就行了
没有 private static final long serialVersionUID = 这行代码的加上这行代码。
相关推荐
- **布尔变量**:POJO类中布尔变量不加is前缀,避免框架反序列化错误。 - **包名**:使用小写字母,点分隔单词,单数形式,类名如有复数含义可使用复数。 3. **命名冲突**: - 避免子父类成员变量、不同代码块...
- **强制规定**:在POJO类中,布尔类型的变量不应加`is`前缀,以避免部分框架解析时可能出现的序列化错误。例如:应避免使用`Boolean isDeleted`这种形式的属性及其相应的方法`isDeleted()`,因为这可能导致RPC框架...
- **布尔变量**:不建议在POJO类中使用is前缀,以免引起序列化错误。 2. **代码格式**: - **包名**:使用小写字母,点分隔,每个单词都是一个自然语义的英语单词,包名使用单数形式,类名如有复数含义可使用复数...
7. POJO类中的布尔变量不建议加is前缀,以免引起某些框架的序列化错误。 8. 包名使用小写字母,点分隔的每个部分都应有清晰的英文单词,包名通常是单数形式,但类名如有复数含义,可以使用复数形式。 9. 避免在子类...
- **强制**:POJO类中的布尔型变量不要加上`is`前缀,以避免序列化错误。 - 反例:定义`Boolean isDeleted`属性及其方法`isDeleted()`可能会导致框架解析时出现“误以为”对应属性名为`del`的问题。 #### 结论 ...
Protocol Buffers 是谷歌开发的一种数据序列化协议,它提供了一种高效、灵活且平台无关的方式来序列化结构化数据。这个工具允许开发者定义数据结构,然后生成能够在各种数据流中存储、交换这些数据的代码。 **...
生鲜配送平台源码java 助果果开发手册 一、Java 编程规约 (一)命名风格 【强制】代码中的命名均不能以下划线或美元符号开始,也不能以下划线或美元符号结束。...前缀,否则部分框架解析会引起序列化错误。 说
这样做的原因是避免在序列化过程中产生错误。 9. **包名及类名的命名规范** - **【强制】** 包名一律使用小写,并且每个点分隔符之间的单词只能有一个自然语义的英语单词。包名一般使用单数形式,但如果类名有...
{7.4}基本类型数据序列化}{108}{section.7.4} {7.5}String的序列化}{109}{section.7.5} {7.6}InputStream与OutputStream}{109}{section.7.6} {7.6.1}FileInputStream}{109}{subsection.7.6.1} {7.6.2}...
- 创建一个`JsonConfig`对象来配置JSON的序列化规则。 - 使用`registerJsonBeanProcessor`方法注册处理器,以便正确处理Hibernate代理对象。 - 设置日期的格式化方式。 3. **查询数据**: - 获取前端传递过来的...
8. **强制规定**:POJO类中布尔类型的变量不要加`is`前缀,避免引发框架序列化问题。 - **反例**:如`Boolean isDeleted`的属性会导致反序列化时出现问题。 9. **强制规定**:包名一律使用小写,点分隔符之间只...