Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027310Openbravo ERPA. Platformpublic2014-08-11 20:342022-02-01 08:05
mtaal 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0027310: Check if transaction is active in DalBaseProcess
Hi,
I get the stacktrace below in a process.

gr. Martin

fff0bb6f 2014-08-11 14:27:01,890 [DefaultQuartzScheduler_Worker-6] ERROR org.openbravo.base.util.CheckException - Tx is not active
org.openbravo.base.util.CheckException: Tx is not active
        at org.openbravo.base.util.Check.isTrue(Check.java:51)
        at org.openbravo.dal.core.SessionHandler.checkInvariant(SessionHandler.java:350)
        at org.openbravo.dal.core.SessionHandler.commitAndClose(SessionHandler.java:252)
        at org.openbravo.dal.service.OBDal.commitAndClose(OBDal.java:174)
        at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:98)
        at org.openbravo.scheduling.DefaultJob.execute(DefaultJob.java:58)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
fff0bb6f 2014-08-11 14:27:01,892 [DefaultQuartzScheduler_Worker-6] ERROR org.openbravo.scheduling.DefaultJob - Error executing process org.openbravo.scheduling.ProcessBundle@b83ade0
org.hibernate.SessionException: Session was already closed
        at org.hibernate.impl.SessionImpl.close(SessionImpl.java:320)
        at org.openbravo.dal.core.SessionHandler.closeSession(SessionHandler.java:156)
        at org.openbravo.dal.core.SessionHandler.commitAndClose(SessionHandler.java:281)
        at org.openbravo.dal.service.OBDal.commitAndClose(OBDal.java:174)
        at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:98)
        at org.openbravo.scheduling.DefaultJob.execute(DefaultJob.java:58)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Create a process which commits the transaction but does not close the session.

Do a check if the transaction is still active before doing commit and close.

It is important to solve this as it results in not-needed errors in the log.
No tags attached.
Issue History
2014-08-11 20:34mtaalNew Issue
2014-08-11 20:34mtaalAssigned To => AugustoMauch
2014-08-11 20:34mtaalModules => Core
2014-08-11 20:34mtaalTriggers an Emergency Pack => No
2014-09-29 08:31alostaleTarget Version3.0PR14Q4 => 3.0PR15Q1
2014-12-16 22:11shuehnerNote Added: 0072579
2014-12-22 10:53alostaleTarget Version3.0PR15Q1 =>
2015-03-11 11:23alostaleStatusnew => acknowledged
2015-03-17 14:38alostaleAssigned ToAugustoMauch => platform
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

Notes
(0072579)
shuehner   
2014-12-16 22:11   
i think that is a duplicate or some other duplicate exists for the same topic.
See bugs reported for errors in some ci job.