Java Snippet Error on Mac OSX

Hi,

I notice that when I copy one workflow where the java snippet node was working into a new workflow, the java snippet gives the following errors: (I'm running Mac OSX 10.6.6)

 

Invalid settings:
Unable to compile expression
ERROR at line 8
AbstractSnippetExpression cannot be resolved to a type
 
ERROR at line 6
The import org.knime.ext.sun.nodes.script.expression.AbstractSnippetExpression cannot be resolved
 
ERROR at line 7
The import org.knime.ext.sun.nodes.script.expression.Abort cannot be resolved
 
ERROR at line 13
Abort cannot be resolved to a type
 
ERROR at line 13
The method internalEvaluate() of type Expression25 must override or implement a supertype method
 
Any ideas on what is going on? I only have one line of code:
 
return $Sample$.replace("SRC","");
 
Thanks,
Eric

 

Invalid settings:
Unable to compile expression
ERROR at line 8
AbstractSnippetExpression cannot be resolved to a type
 
ERROR at line 6
The import org.knime.ext.sun.nodes.script.expression.AbstractSnippetExpression cannot be resolved
 
ERROR at line 7
The import org.knime.ext.sun.nodes.script.expression.Abort cannot be resolved
 
ERROR at line 13
Abort cannot be resolved to a type
 
ERROR at line 13
The method internalEvaluate() of type Expression25 must override or implement a supertype method

Hi Eric,

copy and pasting java snippet nodes between workflows generally works. I could not reproduce your problem by using a java snippet node with your code.

Could you please try to create a new simple workflow containing just a data generator and a java snippet with your code and copy those two nodes to another workflow?

Dominik