search cancel

AAI Error: JobStreamRunBuilder error for scheduler "AutoSys", "CA7": Caused by: org.hibernate.AssertionFailure: possible nonthreadsafe access to session

book

Article ID: 255377

calendar_today

Updated On:

Products

Automic Automation Intelligence

Issue/Introduction

WARN  [GenericSessionImpl] Closing a write session where the final commit() was never called. Some changes may not have been committed
 at com.termalabs.common.connection.hibernate.GenericSessionImpl.close(GenericSessionImpl.java:285)
 at com.termalabs.server.cache.jobstream.JobStreamRunUpdaterImpl.close(JobStreamRunUpdaterImpl.java:505)
 at com.termalabs.server.app.jobstream.run.PredecessorRunsCompletedJobStreamRunBuilder.associateLatestRuns(PredecessorRunsCompletedJobStreamRunBuilder.java:302)
 at com.termalabs.server.system.CommonJammerSequence.runJobStreamRunBuilder(CommonJammerSequence.java:322)
 at com.termalabs.server.system.RunCycle.runJobStreamRunBuilderForActiveRuns(RunCycle.java:847)
 at com.termalabs.server.system.RunCycle.compute(RunCycle.java:396)
 at com.termalabs.server.system.CommonJammerSequence.runCycle(CommonJammerSequence.java:226)
 at com.termalabs.server.system.CommonJammerSequence.runJammerSequence(CommonJammerSequence.java:159)
 at com.termalabs.server.system.JammerSequence.run(JammerSequence.java:136)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)

2022-08-03 09:03:03,826 WARN  [CommonJammerSequence] JobStreamRunBuilder error for scheduler "AutoSys", "CA7": com.termalabs.common.JawsException: Could not associate new runs.
 at com.termalabs.server.app.jobstream.run.PredecessorRunsCompletedJobStreamRunBuilder.associateLatestRuns(PredecessorRunsCompletedJobStreamRunBuilder.java:310)
 at com.termalabs.server.system.CommonJammerSequence.runJobStreamRunBuilder(CommonJammerSequence.java:322)
 at com.termalabs.server.system.RunCycle.runJobStreamRunBuilderForActiveRuns(RunCycle.java:847)
 at com.termalabs.server.system.RunCycle.compute(RunCycle.java:396)
 at com.termalabs.server.system.CommonJammerSequence.runCycle(CommonJammerSequence.java:226)
 at com.termalabs.server.system.CommonJammerSequence.runJammerSequence(CommonJammerSequence.java:159)
 at com.termalabs.server.system.JammerSequence.run(JammerSequence.java:136)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
Caused by: org.hibernate.AssertionFailure: possible nonthreadsafe access to session
 at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:83)
 at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)
 at com.termalabs.common.connection.hibernate.GenericSessionImpl.timedCommit(GenericSessionImpl.java:377)
 at com.termalabs.common.connection.hibernate.GenericSessionImpl.commit(GenericSessionImpl.java:254)
 at com.termalabs.server.cache.jobstream.JobStreamRunUpdaterImpl.commit(JobStreamRunUpdaterImpl.java:437)
 ... 11 in common

2022-08-03 09:03:03,842 WARN  [CommonJammerSequence] Error running jammer sequence for schedulers: "AutoSys", "CA7": com.termalabs.common.JawsException: Could not associate new runs.
 at com.termalabs.server.app.jobstream.run.PredecessorRunsCompletedJobStreamRunBuilder.associateLatestRuns(PredecessorRunsCompletedJobStreamRunBuilder.java:310)
 at com.termalabs.server.system.CommonJammerSequence.runJobStreamRunBuilder(CommonJammerSequence.java:322)
 at com.termalabs.server.system.RunCycle.runJobStreamRunBuilderForActiveRuns(RunCycle.java:847)
 at com.termalabs.server.system.RunCycle.compute(RunCycle.java:396)
 at com.termalabs.server.system.CommonJammerSequence.runCycle(CommonJammerSequence.java:226)
 at com.termalabs.server.system.CommonJammerSequence.runJammerSequence(CommonJammerSequence.java:159)
 at com.termalabs.server.system.JammerSequence.run(JammerSequence.java:136)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
Caused by: org.hibernate.AssertionFailure: possible nonthreadsafe access to session
 at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:83)
 at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)
 at com.termalabs.common.connection.hibernate.GenericSessionImpl.timedCommit(GenericSessionImpl.java:377)
 at com.termalabs.common.connection.hibernate.GenericSessionImpl.commit(GenericSessionImpl.java:254)
 at com.termalabs.server.cache.jobstream.JobStreamRunUpdaterImpl.commit(JobStreamRunUpdaterImpl.java:437)
 ... 11 in common

Environment

Release : 6.4.2-5

Resolution

Resolved in AAI version in 6.4.4