Closed drjrm3 closed 6 years ago
Please note that I came across this error when I was trying to create a minimal example for a request to have more informative output when an input file is not provided. We have a more complex workflow for which I did not provide input and I got the following output so I think the error is caused by not providing an input.
a) I'm not sure why this output is generated on my complex example but not the simple example above.
b) If the below output is, indeed, caused by simply not providing an input .yml
then I would request that a more clear explanation be given as to the failure reason.
Error: Failed to run workflow, java.lang.NullPointerException
at com.ibm.spectrumcomputing.cwl.exec.util.evaluator.InputsEvaluator.evalCWLFileArray(InputsEvaluator.java:125)
at com.ibm.spectrumcomputing.cwl.exec.util.evaluator.InputsEvaluator.evalSecondaryFiles(InputsEvaluator.java:79)
at com.ibm.spectrumcomputing.cwl.exec.util.evaluator.InputsEvaluator.eval(InputsEvaluator.java:59)
at com.ibm.spectrumcomputing.cwl.exec.service.CWLInstanceService.buildMainInstance(CWLInstanceService.java:269)
at com.ibm.spectrumcomputing.cwl.exec.service.CWLInstanceService.createMainInstance(CWLInstanceService.java:186)
at com.ibm.spectrumcomputing.cwl.exec.service.CWLExecService.submit(CWLExecService.java:105)
at com.ibm.spectrumcomputing.cwl.exec.CWLExecLauncher.runCommand(CWLExecLauncher.java:332)
at com.ibm.spectrumcomputing.cwl.exec.CWLExecLauncher.launchCWLExec(CWLExecLauncher.java:104)
at com.ibm.spectrumcomputing.cwl.Application.main(Application.java:33)
Fixed at db9c2d6, if the required argument is not provided, the exit code will be 252 and the message will be like: The argument [foo] for step [required_args] is required.
A simple workflow which requires a string runs even when no input is provided.
cwltool
fails to run on the same example as expected.