Details
-
Fix
-
Status: Released (View Workflow)
-
Blocker
-
Resolution: Fixed
-
2.7.1
-
None
Description
Current Situation
When running JITL jobs the exception NoSuchElementException: None.get occurs. This happens with logging with step.out().println(m);
Desired Behavior
No exception should be thrown when logging in JITL Jobs
Stacktrace
2024-09-09 00:21:03.797-0400 [MAIN] [End] [Error] returnCode=99, errorState=failed, reason=failed, msg=com.sos.jitl.jobs.ssh.exception.SOSJobSSHException: NoSuchElementException: None.get
com.sos.jitl.jobs.ssh.exception.SOSJobSSHException: NoSuchElementException: None.get
at com.sos.jitl.jobs.ssh.SSHJob.processOrder(SSHJob.java:169)
at com.sos.js7.job.Job$1.run(Job.java:141)
at js7.launcher.forjava.internal.BlockingInternalJobAdapter.js7$launcher$forjava$internal$BlockingInternalJobAdapter$$anon$1$$_$run$$anonfun$1$$anonfun$1(BlockingInternalJobAdapter.scala:46)
at cats.effect.IOFiber.runLoop(IOFiber.scala:264)
at cats.effect.IOFiber.autoCedeR(IOFiber.scala:1423)
at cats.effect.IOFiber.run(IOFiber.scala:119)
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:842)
Caused by: java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:627)
at scala.None$.get(Option.scala:626)
at cats.effect.IOPlatform.unsafeRunSync(IOPlatform.scala:42)
at js7.base.thread.CatsBlocking$syntax$.await(CatsBlocking.scala:40)
at js7.base.thread.CatsBlocking$syntax$.awaitInfinite(CatsBlocking.scala:50)
at js7.launcher.forjava.internal.BlockingStdWriter.write(ObserverWriter.scala:14)
at java.base/java.io.PrintWriter.newLine(PrintWriter.java:565)
at java.base/java.io.PrintWriter.println(PrintWriter.java:710)
at java.base/java.io.PrintWriter.println(PrintWriter.java:821)
at com.sos.js7.job.OrderProcessStepLogger.info(OrderProcessStepLogger.java:42)
at com.sos.js7.job.OrderProcessStepLogger.info(OrderProcessStepLogger.java:49)
at com.sos.jitl.jobs.ssh.SSHJob.processOrder(SSHJob.java:144)