I have tried to invoke knime
workflow in batchmode
String btchtrendcheck ="E:\\KNIME\\knime.exe -application org.knime.product.KNIME_BATCH_APPLICATION -consoleLog -reset -workflowFile=\"C:\\Users\\Jana\\Desktop\\KNIMETrend.zip\""
String trendtest = "E:\\KNIME\\knime.exe -application org.knime.product.KNIME_APPLICATION";
However I get an error: java was started but returned exit code=3
(attached the error) and even on clicking OK , the workflow was not executed.
There is no error in the workflow.
Questions :
1. What does the exit code=3 mean?
2. Is there any issue with compatibility with knime?
If you run the command without options, e.g.
eclipsec.exe -consoleLog -noexit -nosplash -launcher.suppressErrors -application org.knime.product.KNIME_BATCH_APPLICATION
then you will see a list of the available options and the java return codes. A return code 3 indicates when an error occurs during loading a workflow
, and 4 indicates if an error during execution occurred
.
Most likely, you need to open the workflow in the KNIME desktop, check for errors, reset the workflow and save it again, as an error during loading (e.g partially executed loops to pick a common one) could cause this. Then try re-loading the workflow in the KNIME desktop and check no errors during load are recorded during the console.
Also, adding the option --launcher.suppressErrors
can sometimes avoid issues like this.