0

I have a problem with node containing this column type:

ListCell (Collection of: ListCell (Collection of: DoubleCell))

Data looks like this:

[[-0.518, -1.431], [-1.431, -0.518]]

Next node is Java Snippet. In input options, the only Java type option for this column is String, which is wrong as you can see:

ERROR Java Snippet Execute failed: java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.Object;

Is there any solution for this problem?

Thanks for help.

jirinovo
  • 2,105
  • 3
  • 26
  • 37
  • I think that is a bug in the Java Snippet node. – Gábor Bakos Sep 18 '14 at 16:50
  • That is what I think too. I posted this to KNIME forum, but nobody has answered yet: http://tech.knime.org/forum/knime-users/java-snippet-doublecelljava-type-double-problem Maybe it will be better to post it as bug. – jirinovo Sep 18 '14 at 16:58

2 Answers2

0

The JavaSnippet node can handle collections of doubles, etc. but not collections of collections.

Kilian
  • 26
  • 3
0

Finally I got reply on KNIME forum (http://tech.knime.org/forum/knime-users/java-snippet-doublecelljava-type-double-problem)

Hi jirinovo,

the JavaSnippet node can handle collections of doubles, etc. but not collections of collections.

We will change the type definitions in the JavaSnippet node in order to handle this more dynamically and be more flexible. However this will take some time, probably until summer 2015 latest.

Cheers, Kilian

jirinovo
  • 2,105
  • 3
  • 26
  • 37