jBPM process deletion fails with WrongClassException exception
Issue
I'm calling GraphSession.deleteProcessInstance(..) similar to what is documented here: https://access.redhat.com/site/solutions/18923
I'm getting a lot of failures with the following exception:
[java] ERROR Failed to delete Process Instance 889
[java] org.jbpm.persistence.JbpmPersistenceException: could not delete ProcessInstance(889)
[java] at org.jbpm.db.GraphSession.deleteProcessInstance(GraphSession.java:432)
[java] at org.jbpm.db.GraphSession.deleteProcessInstance(GraphSession.java:400)
...
[java] Caused by: org.hibernate.WrongClassException: Object with id: 785 was not of the specified subclass: org.jbpm.logging.log.ProcessLog (Discriminator: X)
The exception only appears to occur when attempting to delete 'X' (org.jbpm.graph.log.ProcessInstanceEndLog) and 'D' (org.jbpm.context.log.VariableDeleteLog) class logs.
Environment
- Red Hat JBoss SOA Platform
- 5.3.1
- jBPM
- 3.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
