Jump to content
Changes to the Jaspersoft community edition download ×

Strange serialVersionUID problem at runtime


Dufflepod

Recommended Posts

 

 I updated my environment to JDK1.6.0_11. I have rebuilt JasperReports from source and all my reports too, but I still get this UID mismatch at runtime from class JasperFillManager:

Caused by: java.io.InvalidClassException: java.util.ArrayList; local class incompatible: stream classdesc serialVersionUID = 8664875232659988799, local class serialVersionUID = 8683452581122892189
 

Like I say, I've rebuilt everything, so I'm confused. Any ideas?

Regards.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Problem solved. The class I used to compile the reports copied them to their final location. But I had used FileWrite/FileReader to do the copy instead of InputStream/OutputStream. Some binary bytes were not correctly copied, and it seems these happened to be in the serialVersionID. So it was a complete red herring!

 

I had even rebuilt the Apache commons JARs to try and get to the bottom of this. What a waste of time.

 

As a German friend of mine once said to me, 99% of the time - you can blame the programmer sitting infront of the machine.

 

How true.

 

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...