Hi all,
I've been trying to do batch mode calls to my worksflows and they doesn't work with the 2.4.1 Knime version (but do with 2.3.2).
The stack error produced is:
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(Unknown Source)
at org.knime.core.util.FileUtil.addZipEntry(FileUtil.java:518)
at org.knime.core.util.FileUtil.addOneDir(FileUtil.java:493)
at org.knime.core.util.FileUtil.zipDir(FileUtil.java:443)
at org.knime.core.util.FileUtil.zipDir(FileUtil.java:381)
at org.knime.core.util.FileUtil.zipDir(FileUtil.java:628)
at org.knime.core.util.FileUtil.zipDir(FileUtil.java:589)
at org.knime.core.node.workflow.BatchExecutor.mainRun(BatchExecutor.java:590)
at org.knime.product.headless.KNIMEBatchApplication.start(KNIMEBatchApplication.java:102)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Then the exported workflow becomes corrupt (size 1kb).
So, the error is produced when Knime try to read the worflow file and all that I have found about this refers to an implementation error owing to have opened a file twice.
The worst thing is that my Knime 2.4.1 installation also becomes corrupt.
Can you help me to resolve the problem?
Thanks,
Andreu Raya