[
http://jira.jboss.com/jira/browse/JBPM-1289?page=comments#action_12418882 ]
Thomas Heute commented on JBPM-1289:
------------------------------------
Actually it happens only if the Scheduler service is enabled (and basically if
DeleteJobsSynchronization is called)
'session is closed' error, when letting jbpm create an
hibernate session in a transactional environment
-------------------------------------------------------------------------------------------------------
Key: JBPM-1289
URL:
http://jira.jboss.com/jira/browse/JBPM-1289
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Core Engine
Affects Versions: jBPM jPDL 3.2.2
Reporter: Thomas Heute
The following scenario seems to fail:
1) Open a Tx
2) Open a jbpmSession
--> jbpm will create a new Hibernate session in DBPersistenceService, and mark it to
be close
3) do jbpm operation(s)
4) close the jbpm session
--> jbpm closes the Hibernate session
5) close the Tx
--> This will fail because of JobSession$DeleteJobsSynchronization which tries to
execute operations with the now closed Hibernate session
org.hibernate.SessionException: Session is closed!
at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1258)
at
org.jbpm.db.JobSession$DeleteJobsSynchronization.beforeCompletion(JobSession.java:190)
This is a major issue for jbpm upgrade in JBoss Portal
--
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