• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.InvalidClassException

 
Josiane Roger
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having trouble running JUnit on eclipse with a weblogic application.

I am building with ANT my project and deploy on weblogic. Then I try to run JUnit from eclipse and I get the following exception:

<pre> <2006-09-14 12 h 41 EDT> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed java.io.InvalidClassException: com.db.eps.ess.repository.domain.ApplicationContext; local class incompatible: stream classdesc serialVersionUID = -1439488433368555216, local class serialVersionUID = 2557661716428603012 java.io.InvalidClassException: com.db.eps.ess.repository.domain.ApplicationContext; local class incompatible: stream classdesc serialVersionUID = -1439488433368555216, local class serialVersionUID = 2557661716428603012 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463) ></pre>

I verify and I have only JDK 1.4.2 from bea weblogic 8.1. I removed all other JDK and I still get this error.

How can I resolve it?

Thanks !
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a fixed SerialVersionUID to that class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!