java.lang.RuntimeException: Cannot read file "<unknown>"

Hi,

very rarely, I get the error [1] during the execution of a node which I have developed (SDK KNIME 2.7.4). The exection could last more than 10h.

Has anybody experienced a similar error ? What could be root of the problem ?

Let me insist that it happens very rarely, but I would like to manage this situatons (it could be a bug in my KNIME Node) to avoid the crash.

Thanks in advance.

Oscar

 

[1]

java.lang.RuntimeException: Cannot read file "<unknown>"
    at org.knime.core.data.container.Buffer.iterator(Buffer.java:1584)
    at org.knime.core.data.container.ContainerTable.iterator(ContainerTable.java:129)
    at org.knime.core.node.BufferedDataTable.iterator(BufferedDataTable.java:319)
    at org.knime.core.data.container.RearrangeColumnsTable.iterator(RearrangeColumnsTable.java:287)
    at org.knime.core.node.BufferedDataTable.iterator(BufferedDataTable.java:319)
    at org.knime.core.data.container.RearrangeColumnsTable.iterator(RearrangeColumnsTable.java:287)
    at org.knime.core.node.BufferedDataTable.iterator(BufferedDataTable.java:319)
    at org.knime.core.data.container.WrappedTable.iterator(WrappedTable.java:114)
    at org.knime.core.node.BufferedDataTable.iterator(BufferedDataTable.java:319)
    at org.knime.core.node.BufferedDataTable.iterator(BufferedDataTable.java:1)
    at com.pibr.node.common.newdatastr.DataSetV1.<init>(DataSetV1.java:354)
    at com.pibr.node.featureselection.ga.wrapper.lazy.knn.KnnWrapperFeatureSelectionWorker$KNNWrappedFeatureSelectionChr.fitness(KnnWrapperFeatureSelectionWorker.java:182)
    at org.apache.commons.math3.genetics.Chromosome.getFitness(Chromosome.java:47)
    at org.apache.commons.math3.genetics.Chromosome.compareTo(Chromosome.java:65)
    at org.apache.commons.math3.genetics.ListPopulation.getFittestChromosome(ListPopulation.java:109)
    at com.pibr.node.featureselection.ga.common.FeatureSelectionWorker.evolve(FeatureSelectionWorker.java:248)
    at com.pibr.node.featureselection.ga.wrapper.lazy.knn.KnnWrapperFeatureSelectionWorker.kNNWrappedFeatureSelection(KnnWrapperFeatureSelectionWorker.java:70)
    at com.pibr.node.featureselection.ga.wrapper.lazy.knn.KnnWrapperFeatureSelectionNodeModel.execute(KnnWrapperFeatureSelectionNodeModel.java:83)
    at org.knime.core.node.NodeModel.execute(NodeModel.java:680)
    at org.knime.core.node.NodeModel.executeModel(NodeModel.java:536)
    at org.knime.core.node.Node.invokeNodeModelExecute(Node.java:1000)
    at org.knime.core.node.Node.execute(Node.java:894)
    at org.knime.core.node.workflow.SingleNodeContainer.performExecuteNode(SingleNodeContainer.java:895)
    at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:100)
    at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:166)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:124)
    at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:239)
Caused by: java.io.IOException: Unable to read table from file, table has been cleared.
    at org.knime.core.data.container.BufferFromFileIteratorVersion20.<init>(BufferFromFileIteratorVersion20.java:110)
    at org.knime.core.data.container.Buffer.iterator(Buffer.java:1571)
    ... 29 more

Hi Oscar,

Just for the records: I am currently discussing this offline with Antoni. We will post any details as soon as we have them. We were suspecting problems with fast executing loops or blobs but none of that is involved. It must be something trivial. The next step would be to try to reproduce the problem with "Cache" node upstream the problematic node and check if that helps.

Cheers,

 Bernd