[jboss-jira] [JBoss JIRA] Created: (JBPM-846) HibernateLongIdMatcher (and HibernateStringIdMatcher) is not processed correctly CGLib Enchanced classes
Alexey Kakunin (JIRA)
jira-events at lists.jboss.org
Wed Feb 21 10:46:35 EST 2007
HibernateLongIdMatcher (and HibernateStringIdMatcher) is not processed correctly CGLib Enchanced classes
--------------------------------------------------------------------------------------------------------
Key: JBPM-846
URL: http://jira.jboss.com/jira/browse/JBPM-846
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.1.3
Reporter: Alexey Kakunin
Assigned To: Tom Baeyens
Initially I though it is Hibernate Issue and reported it there: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2437
But seems from answer it is bug in jBPM.
So, if we storing some object as variable in jBPM, and this object got from Hibernate - and enhanced by CGLib - it is not processed correctly.
It is because HibernateLongIdMatcher (and HibernateStringIdMatcher) tried to get meta-data by using object.getClass() - but in this case Class-returned - is not a real class, but class enhanced by CGLib, as result, Hibernate did not returned us MetaData (because cannot find it) and as result - this object stored not as reference - but as BLOB.
Some possible solutions provided in Hibernate Issue
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list