Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1025935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:00:17+00:00 2026-05-16T12:00:17+00:00

We have a production system that uses a lot of Serialization. What be basically

  • 0

We have a production system that uses a lot of Serialization. What be basically do is store an object called ProcessData in the jbpm database as byte array. Thus this is serialized.

Consider the following Object.

public class ProcessData implements Serializable {
  private static final long serialVersionUID = -4859440951531011062L;

  public void getX() {
    //not important
  }
}

Now lets say we have this object stored in the JBPM database as byte array and we are using this in production.

Now later we want to upgrade this ProcessData object with a new data

public class ProcessData implements Serializable {
  private static final long serialVersionUID = -4859440951531011062L;

  public void getX() {
    //not important
  }

  public void getY() {
    //not important
  }
}

Now the problem is when JBPM loads the old stored ProcessData object, we get an exception
Caused by: java.io.InvalidClassException: my.package.ProcessData; local class incompatible: stream classdesc serialVersionUID = 6651422488035743444, local class serialVersionUID = -7966721901330644987

Now my question is, how can we solve this problem? How can we make read the serialized object and sort of transform it in this new class. Is it even possible?
Remember that we have limited control over the JBPM library.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:00:18+00:00Added an answer on May 16, 2026 at 12:00 pm

    It looks like you are not using the sample code in either case, since in your example you are defining the serialVersionUID (this is good) and it is the same before and after, but in your error, the UID’s are different. For this to occur, the UID is either not defined (thus generated), or has been changed between versions. The generated case would also cause a change between versions since the class signatures are different.

    In either case, this would be the expected behaviour.

    It looks like the real code being run doesn’t actually match your example. To load the old code, you will have to set the UID in the new version to match the one that already exists in the persisted classes (6651422488035743444L). Also, it is simpler to manage the UID’s if you use simple numbers, like versions 1,2,3.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net app that uses System.IO.Path.GetTempFileName() for temporary files. In the production
We have a production system that uses MongoDB as it's data storage and writes
I have a production system that uses ActiveMQ (5.3.2) to send messages from server
I have a class that uses 'System.Net.Sockets.Socket' directly for network comunication, and currently I
We have a production Java system which is using a lot more threads than
We have a query that is taking around 5 sec on our production system,
I am developing a system that will have a database backend. I am intending
I have a Rails app that uses Amazon S3 to store Paperclip attachments. My
I have a C# program that uses a production grammar to generate 3D models
I have a class that creates and uses a System.Threading.Timer, something like this: using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.