[
https://jira.jboss.org/jira/browse/JBPM-2658?page=com.atlassian.jira.plug...
]
Huisheng Xu resolved JBPM-2658.
-------------------------------
Fix Version/s: jBPM 4.4
Resolution: Duplicate Issue
Assignee: Huisheng Xu
Process variables of type hibernate-long-id/hibernate-string-id
don't work
--------------------------------------------------------------------------
Key: JBPM-2658
URL:
https://jira.jboss.org/jira/browse/JBPM-2658
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.2
Reporter: Derek Cornelius
Assignee: Huisheng Xu
Fix For: jBPM 4.4
This is the same problem as JBPM-2474.
The problem is in HibernateIdMatcher.
if (sessionFactory!=null) {
ClassMetadata classMetadata = sessionFactory.getClassMetadata(value.getClass());
matches = ( (classMetadata!=null)
&&
(classMetadata.getIdentifierType().getClass()==getIdType())
);
}
value.getClass() is returning the Javassist proxy class that is not found.
It needs to check for "value.getClass().getSuperClass()" if value instance of
HibernateProxy.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira