JobQueue: Could not retrieve job object. Job will not be executed.

0
The Queue module is used for performance reasons. The process is as follows: Microflow 1: Create Job, Associate to DocumentSet Entity, Add Job To Queue java action. Microflow 2: Job as Input param. retrieve DocumentSet, make webservice call (successfull, no errors).  Everything looks Okay. However, at the end of microflow2  the error below appears which causes a complete rollback. The status of the Job remains on 'Running', but the webservice request and response are gone because of the rollback. A similair process (only with another webservice call in it) works fine.   Anyone an idea what this might be? Update: Solved. As the log indicated, there was one object autocomitted which causes the error. Commiting the object solved the problem.  9:55:42 AMappINFOCaused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"current_activity":{"type":"End"},"name":"Module.Microflow2","type":"Microflow"}', all database changes executed by this action were rolled back 9:55:42 AMappINFOat scala.Option.foreach(Option.scala:257) 9:55:42 AMappINFOModule.Entity: 1 instances 9:55:42 AMappINFOat com.mendix.basis.action.RequestScope.$anonfun$endTransaction$1$adapted(RequestScope.scala:129) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57) 9:55:42 AMappINFOat com.mendix.basis.action.RequestScope.verifyNoAutoCommitsForSystemSessionExists$1(RequestScope.scala:129) 9:55:42 AMappINFOat scala.Option.foreach(Option.scala:257) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) 9:55:42 AMappINFOat queue.repositories.JobRepository.executeJob(JobRepository.java:19) 9:55:42 AMappERRORJobQueue: Error during execution of microflow Module.Microflow2. 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:160) 9:55:42 AMappINFOat com.mendix.basis.action.RequestScope.$anonfun$endTransaction$7$adapted(RequestScope.scala:142) 9:55:42 AMappINFOat com.mendix.basis.component.InternalCore.execute(InternalCore.java:634) 9:55:42 AMappINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) 9:55:42 AMappINFOCaused by: com.mendix.systemwideinterfaces.MendixRuntimeException: Autocommitted objects detected at end of transaction for system session for entities: 9:55:42 AMappINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.ActionManager$1.execute(ActionManager.java:201) 9:55:42 AMappINFOat com.mendix.basis.action.RequestScope.endTransaction(RequestScope.scala:142) 9:55:42 AMappINFOat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:206) 9:55:42 AMappINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) 9:55:42 AMappINFOat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 9:55:42 AMappINFOat java.lang.Thread.run(Thread.java:748) 9:55:42 AMappINFOCaused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"current_activity":{"type":"End"},"name":"Module.Microflow2","type":"Microflow"}', all database changes executed by this action were rolled back 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.java:210) 9:55:42 AMappINFOCaused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"current_activity":{"type":"End"},"name":"Module.Microflow2","type":"Microflow"}', all database changes executed by this action were rolled back 9:55:42 AMappINFOat com.mendix.basis.action.RequestScope.$anonfun$endTransaction$1(RequestScope.scala:138) 9:55:42 AMappINFOat com.mendix.basis.action.RequestScope.$anonfun$endTransaction$7(RequestScope.scala:145) 9:55:42 AMappINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:169) 9:55:42 AMappINFOat com.mendix.basis.action.ContextImpl.endTransaction(ContextImpl.java:210) 9:55:42 AMappINFOat queue.usecases.QueueHandler.run(QueueHandler.java:80) 9:55:42 AMappINFOat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 9:55:42 AMappINFOat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) 9:55:42 AMappERRORJobQueue: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"current_activity":{"type":"End"},"name":"Module.Microflow2","type":"Microflow"}', all database changes executed by this action were rolled back 9:55:42 AMappINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55) 9:55:42 AMappINFOat java.util.concurrent.FutureTask.run(FutureTask.java:266) 9:55:42 AMappINFOat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 9:55:42 AMappINFOat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 9:55:42 AMappERRORJobQueue: Could not retrieve job object. Job will not be executed. 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:55) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:68) 9:55:42 AMappINFOat com.mendix.core.Core.execute(Core.java:219) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18) 9:55:42 AMappINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) 9:55:42 AMappINFOat com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) 9:55:42 AMappINFOat com.mendix.basis.component.InternalCore.execute(InternalCore.java:628)  
asked
0 answers