Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Current Situation
The JITL StateTransitionJob raises an NPE:
2023-10-30 08:48:19.286+01:00 [MAIN] [OrderStarted] id=#2023-10-30#T65569921568-root, pos=0 2023-10-30 08:48:19.390+01:00 [MAIN] [OrderProcessingStarted] id=#2023-10-30#T65569921568-root, Job=transition-order, label=transition-order, pos=0, Agent(url=https://agent-2-0-primary:4443, name=primaryAgent, time=2023-10-30 08:48:19.286+01:00) 2023-10-30 07:48:19.286+0000 [MAIN] [Start] Job=transition-order, Agent(url=https://agent-2-0-primary:4443, id=agent_001, name=primaryAgent) 2023-10-30 07:48:21.302+0000 [STDOUT] [INFO]Job Parameterization, Resulting Arguments: state_transition_source=prompting(JOB), state_transition_target=inprogress(JOB) 2023-10-30 07:48:21.303+0000 [MAIN] [End] [Error] returnCode=99, errorState=failed, reason=failed, msg=java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because the return value of "com.sos.jitl.jobs.orderstatustransition.OrderStateTransitionJobArguments.getWorkflowFolders()" is null java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because the return value of "com.sos.jitl.jobs.orderstatustransition.OrderStateTransitionJobArguments.getWorkflowFolders()" is null at com.sos.jitl.jobs.orderstatustransition.OrderStateTransitionJob.processOrder(OrderStateTransitionJob.java:21) at com.sos.js7.job.Job$1.run(Job.java:142) at js7.launcher.forjava.internal.BlockingInternalJobAdapter$$anon$1.$anonfun$run$2(BlockingInternalJobAdapter.scala:36) at monix.eval.internal.TaskRunLoop$.startFull(TaskRunLoop.scala:88) at monix.eval.internal.TaskRunLoop$.$anonfun$restartAsync$1(TaskRunLoop.scala:241) at monix.execution.schedulers.TracingRunnable.run(TracingRunnable.scala:33) at monix.execution.internal.InterceptRunnable.run(InterceptRunnable.scala:27) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) at java.base/java.lang.Thread.run(Thread.java:840)
Attached workflow reproduces the problem.
Desired Behavior
The job should work as designed and should not raise errors.
Attachments
Issue Links
- is related to
-
JITL-730 OrderStateTransitionJob should allow to confirm prompting orders
- Released