I am getting this error all of the sudden. It was working before until today. I wonder if java updated or something and killed this from working.
Error I am getting:
java.io.InvalidClassException: javax.swing.JComponent; local class incompatible: stream classdesc serialVersionUID = -1030230214076481435, local class serialVersionUID = -2790168081368361182
This happens when I do the following
....
ObjectInputStream open = new ObjectInputStream(openFile);
Object obj = open.readObject(); <--- dies here
What should I try to fix this issue. I would love to be able to open my files again.
Thanks.
Yes. I suspect you have switched versions of Java. Note that the javadoc for JComponent says this:
There is not much you can so apart from switching back to the JRE / JDK you were using previously. The long-term fix is to reengineer your application to store the state some other way.