dcsimg
Weblogic, Tomcat Serialization Exception
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amir_Pashazadeh
Posted On:   Saturday, May 15, 2004 03:23 AM

Hi We are developing a project using WebLogic as EJB Container and Tomcat as Web container. Everything worked fine till yesterday, but today we have following exception: java.io.InvalidClassException: com.ito.lms.shared.helper.dto.GeneralDto; local class incompatible: stream classdesc serialVersionUID = 3870047233022601258, local class serialVersionUID = 6352150953147461504 java.io.InvalidClassException: com.ito.lms.shared.helper.dto.GeneralDto; local class incompatible: stream classdesc serialVersionUID = 3870047233022601258, local class serialVersionUID = 6352150953147461504 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputS   More>>

Hi



We are developing a project using WebLogic as EJB Container and Tomcat as Web container. Everything worked fine till yesterday, but today we have following exception:

			

java.io.InvalidClassException: com.ito.lms.shared.helper.dto.GeneralDto; local class incompatible: stream classdesc serialVersionUID = 3870047233022601258, local class serialVersionUID = 6352150953147461504
java.io.InvalidClassException: com.ito.lms.shared.helper.dto.GeneralDto; local class incompatible: stream classdesc serialVersionUID = 3870047233022601258, local class serialVersionUID = 6352150953147461504
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:33)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:209)
at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:227)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:733)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:570)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:681)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:617)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:282)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.InvalidClassException: com.ito.lms.shared.helper.dto.GeneralDto; local class incompatible: stream classdesc serialVersionUID = 3870047233022601258, local class serialVersionUID = 6352150953147461504
...


It seems that local copy of com.ito.lms.shared.helper.dto.GeneralDto and its remote copy are not the same, but we recompiled and redeployed the project a couple of times! Nothing changed, even we compared CRC of class files (in local jar files, and remote ear file) they are the same, but still the same exception is thrown.



Does anybody know why does this problem occure? How can we recover from it?



Amir Pashazadeh

   <<Less

Re: Weblogic, Tomcat Serialization Exception

Posted By:   Amin_Vidal  
Posted On:   Friday, July 23, 2004 08:40 AM

The problem may be that you are obfuscating one class and not the other.
About | Sitemap | Contact