[
http://jira.jboss.com/jira/browse/JBPM-470?page=all ]
Ronald van Kuijk closed JBPM-470.
---------------------------------
Resolution: Out of Date
3.0 will not receive fixes anymore
JBPM 3.0.2 and Hibernate 3.1 Error
----------------------------------
Key: JBPM-470
URL:
http://jira.jboss.com/jira/browse/JBPM-470
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.0.2
Environment: Windows XP Professional. Java JDK 1.5. MySql 5.0.15
Reporter: Luke Mauldin
Assigned To: Tom Baeyens
The below code cancels a timer after a task is completed:
JbpmSession jbpmSession = JBPMUtil.getJbpmSessionFactory().openJbpmSession();
SchedulerInstance.CancelledTimer cancelledTimer = new
SchedulerInstance.CancelledTimer("remind",executionContext.getToken());
SchedulerSession schedulerSession = jbpmSession.getSchedulerSession();
schedulerSession.cancelTimers(cancelledTimer);
executionContext.getToken().signal();
jbpmSession.close();
When run with Hibernate 3.0.5, the code runs fine. When run with Hibernate 3.1, there is
an exception:
java.sql.SQLException: Unknown column 'token' in 'where clause'.
The sql query generated has a where clause of
"where name_ = ? and token = ?". Token is defined as token_ in the database
thus the sql query cannot be executed.
The relevant portion of the Timer.hbm.xml is:
<property name="name" column="NAME_" />
<many-to-one name="token"
column="TOKEN_"
foreign-key="FK_TIMER_TOKEN"/>
The Timer.hbm.xml looks fine to me. If this is not a JBPM bug/error I will post it to
the Hibernate issue tracking system.
--
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