Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute a Workflow KNIME with a Batch file

I would like to execute a workflow KNIME with a Batch file but i have an error :

ERROR KNIME-Worker-2 Call Local Workflow  Execute failed : java.lang.NullPointerException 

My workflow knime work well on Knime but i don't know why I have this error.

This is my Batch file :

"C:\Program Files\KNIME\knime.exe" -nosave -consoleLog -noexit -nosplash -reset 
-application org.knime.product.KNIME_BATCH_APPLICATION 
-preferences="C:\Users\Admnistrator\Desktop\KNIME_Preferences.epf" 
-workflowDir="C:\Users\Admnistrator\knime-workspace\SPC_SIMTest" 

Knime report Java :

Java was started but returned exit code = 4

I'm not find solution. Can you help me ?

like image 757
R.Bun Avatar asked Jul 16 '26 23:07

R.Bun


1 Answers

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. In particular, return code 4 indicates if an error during execution occurred

Often this sort of problem can be fixed by openning the workflow in the KNIME desktop, checking for any 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 problems. 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 to your command line can sometimes avoid issues like this.

like image 164
SteveR Avatar answered Jul 19 '26 03:07

SteveR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!