This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes serialVersionUID error message when executing swing based application from netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "serialVersionUID error message when executing swing based application from netbeans" Watch "serialVersionUID error message when executing swing based application from netbeans" New topic
Author

serialVersionUID error message when executing swing based application from netbeans

Vinit Gaba
Greenhorn

Joined: Aug 09, 2011
Posts: 5

I am executing a swing base application from Netbeans and have got below error message. Any Idea, please help to know.

System Error: #5000001: java.io.InvalidClassException: com.matrixone.apps.domain.util.MapList; local class incompatible: stream classdesc serialVersionUID = 2137290906967962447, local class serialVersionUID = -3551146439161972187

Thanks,
Vinit
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Your class file has changed since you serialized it. Unless you've added, removed or changed non-transient fields, you can solve this by adding a private static final long serialVersionUID field to your class. You can let your IDE generate it for you, or use the serialver executable inside your JDK's bin folder.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: serialVersionUID error message when executing swing based application from netbeans
 
Similar Threads
JBoss client/EJB local class incompatible
class versioning
java.io.InvalidClassException
PeerGoneException
java.io.InvalidClassException