Error when chaining Column Splitter & CDK Fingerprint similarity

Hello,

 

When I use a Column Splitter node to separate 2 fingerprint columns into separate rows, I get an error when putting them into a CDK Fingerprint Similarity node.  I haven't bothered to post a test case here (I can do if requested) but can anyone confirm the below error?

 

java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
	at org.knime.core.data.container.RearrangeColumnsTable.calcNewColsASynchronously(RearrangeColumnsTable.java:480)
	at org.knime.core.data.container.RearrangeColumnsTable.create(RearrangeColumnsTable.java:344)
	at org.knime.core.node.ExecutionContext.createColumnRearrangeTable(ExecutionContext.java:369)
	at org.openscience.cdk.knime.nodes.fingerprints.similarity.SimilarityNodeModel.execute(SimilarityNodeModel.java:87)
	at org.knime.core.node.NodeModel.execute(NodeModel.java:706)
	at org.knime.core.node.NodeModel.executeModel(NodeModel.java:555)
	at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1131)
	at org.knime.core.node.Node.execute(Node.java:927)
	at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:559)
	at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:95)
	at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:179)
	at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:110)
	at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:328)
	at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:204)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:125)
	at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:248)
Caused by: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
	at java.util.concurrent.FutureTask.report(Unknown Source)
	at java.util.concurrent.FutureTask.get(Unknown Source)
	at org.knime.core.data.container.RearrangeColumnsTable$ConcurrentNewColCalculator.processFinished(RearrangeColumnsTable.java:730)
	at org.knime.core.util.MultiThreadWorker.callProcessFinished(MultiThreadWorker.java:316)
	at org.knime.core.util.MultiThreadWorker.access$0(MultiThreadWorker.java:298)
	at org.knime.core.util.MultiThreadWorker$ComputationTask.done(MultiThreadWorker.java:454)
	at java.util.concurrent.FutureTask.finishCompletion(Unknown Source)
	at java.util.concurrent.FutureTask.setException(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	... 6 more
Caused by: java.lang.ArrayIndexOutOfBoundsException

 

Thanks in advance,

Ed.

Hi Ed,

I can confirm this behaviour. The node configuration was misbehaving.

I have committed a patch. Please update your nightly build and check whether the node works correctly now.

Cheers,

Stephan

Hi Stephan,

 

Yup, it works! 

 

Thanks.

Ed.