【发布时间】:2016-10-14 14:41:10
【问题描述】:
我正在使用 Java 的 batch mode 执行 KNIME 工作流。
输出似乎表明成功,但进程永远不会返回(我必须使用超时参数来杀死它)。
问题:有人知道为什么这个过程永远不会返回吗?
Executing [C:\Program Files\KNIME\KNIME.exe, -noexit, -nosplash, -nosave, -reset, -application, org.knime.product.KNIME_BATCH_APPLICATION, -workflowFile="C:\...\workflow.knwf", -workflow.variable=template.sdf,C:\...\template.sdf,String, --launcher.suppressErrors] [main] at AntBuildLogger.messageLogged()
KNIME.exe stdout: CompilerOracle: exclude javax/swing/text/GlyphView.getBreakSpot [Thread-2] at AntBuildLogger.messageLogged()
KNIME.exe stdout: INFO main BatchExecutor ===== Executing workflow C:\...\workflow.knwf ===== [Thread-2] at AntBuildLogger.messageLogged()
...
KNIME.exe stdout: INFO main BatchExecutor Workflow execution done Finished in 3 secs (3937ms) [Thread-2] at AntBuildLogger.messageLogged()
KNIME.exe stdout: INFO main BatchExecutor ============= Workflow executed sucessfully =============== [Thread-2] at AntBuildLogger.messageLogged()
我使用的是 Windows 10 和 KNIME 3.2.1。
我正在以编程方式使用 Ant Exec 任务,因此我非常确信所有输入/输出/错误 streams are handled correctly(我也在使用该代码来调用许多其他可执行文件)。
【问题讨论】:
-
也许没有
-noexit参数? -
是的,非常感谢您发现这一点!请转换为答案。