Scheduled task return a null pointer exception

0
Good morning.  When i try to execute locally a scheduled event i get the following error. No suggestion for me?   com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException     at Scheduler.SE_EvaluateOpenInstructions.nested.687ce42f-828d-4442-9e0e-f94be5005550 [0 of 2] (JavaAction : 'EvaluateInstruction')     at Scheduler.SE_EvaluateOpenInstructions (NestedLoopedMicroflow : '') Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:30) Caused by: java.lang.NullPointerException: null     at scheduler.impl.ScheduleManager.prepareActionMonitor(ScheduleManager.java:575) ...
asked
2 answers
0

Looks like an issue in the JavaAction EvaluateInstruction

This part of the logging contains little information about what is exactly throwing the error, do you have a more detailed log message?
And have you tried reproducing the issue? E.g. by calling the event from a Microflow, try to find out which iteration is throwing the error and what the data involved looks like

answered
0

Here is the full stacktrace when the error occurs
 

Exception in execution of monitored action 'Scheduler.SE_EvaluateOpenInstructions' (execution id: 5ef717fe-96ed-46b2-bfea-eaf6dbffaf79, execution type: SCHEDULED_EVENT)

--------

com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException
    at Scheduler.SE_EvaluateOpenInstructions.nested.687ce42f-828d-4442-9e0e-f94be5005550 [0 of 5] (JavaAction : 'EvaluateInstruction')
    at Scheduler.SE_EvaluateOpenInstructions (NestedLoopedMicroflow : '')

Advanced stacktrace:
    at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85)

Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException
    at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156)

Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:30)

Caused by: java.lang.NullPointerException: null
    at scheduler.impl.ScheduleManager.prepareActionMonitor(ScheduleManager.java:575)
    at scheduler.impl.ScheduleManager.startAction(ScheduleManager.java:249)
    at scheduler.actions.EvaluateInstruction.executeAction(EvaluateInstruction.java:75)
    at scheduler.actions.EvaluateInstruction.executeAction(EvaluateInstruction.java:24)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)
    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)
    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)
    at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)
    at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)
    at com.mendix.basis.actionmanagement.UserActionCallBuilderImpl.execute(UserActionCallBuilderImpl.scala:30)
    at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:56)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32)
    at scala.Option.flatMap(Option.scala:283)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172)
    at scala.Option.flatMap(Option.scala:283)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)
    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)
    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)
    at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)
    at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)
    at com.mendix.basis.component.InternalCoreBase.executeSync(InternalCoreBase.java:376)
    at com.mendix.modules.microflowengine.actions.other.NestedLoopedMicroflowAction.$anonfun$executeLoop$2(NestedLoopedMicroflowAction.scala:67)
    at com.mendix.modules.microflowengine.actions.other.NestedLoopedMicroflowAction.$anonfun$executeLoop$2$adapted(NestedLoopedMicroflowAction.scala:58)
    at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
    at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
    at scala.collection.AbstractIterable.foreach(Iterable.scala:926)
    at scala.collection.IterableOps$WithFilter.foreach(Iterable.scala:896)
    at com.mendix.modules.microflowengine.actions.other.NestedLoopedMicroflowAction.executeLoop(NestedLoopedMicroflowAction.scala:58)
    at com.mendix.modules.microflowengine.actions.other.NestedLoopedMicroflowAction.execute(NestedLoopedMicroflowAction.scala:43)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32)
    at scala.Option.flatMap(Option.scala:283)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172)
    at scala.Option.flatMap(Option.scala:283)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)
    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)
    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54)
    at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)
    at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152)
    at com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:40)
    at com.mendix.basis.actionmanagement.UserScheduledAction.executeScheduledAction(UserScheduledAction.scala:39)
    at com.mendix.basis.actionmanagement.ScheduledAction$ScheduledRun.$anonfun$run$1(ScheduledAction.scala:26)
    at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)
    at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49)
    at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25)
    at com.mendix.basis.actionmanagement.ScheduledAction$ScheduledRun.monitor(ScheduledAction.scala:14)
    at com.mendix.basis.actionmanagement.ScheduledAction$ScheduledRun.run(ScheduledAction.scala:26)
    at com.mendix.basis.actionmanagement.ScheduledAction.execute(ScheduledAction.scala:67)
    at com.mendix.basis.actionmanagement.ScheduledAction.run(ScheduledAction.scala:47)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
 

answered