Error in Molecule String Input

When using the new Molecule String input node I get following error message:

ERROR Molecule String Input 2:54       Retrieving SVG from view failed: Error executing JavaScript: Can't find variable: org_knime_js_base_node_quickform_input_molecule

The node else works except the image output which also shows above error message.

How can I solve this issue?

Hi,

can you attach a sample workflow, where this problem occurs for you. I will have a look at it then.

Regards,

Christian

Hi 

With the latest KNIME 3.4, I still get the error: org_knime_js_base_node_quickform_input_molecule

2017-07-19 23:43:26,171 : DEBUG : main : ExecuteAction :  :  : Creating execution job for 1 node(s)...
2017-07-19 23:43:26,171 : DEBUG : main : NodeContainer :  :  : Molecule String Input 0:1 has new state: CONFIGURED_MARKEDFOREXEC
2017-07-19 23:43:26,171 : DEBUG : main : NodeContainer :  :  : Molecule String Input 0:1 has new state: CONFIGURED_QUEUED
2017-07-19 23:43:26,172 : DEBUG : main : NodeContainer :  :  : molecules_in_rows 0 has new state: EXECUTING
2017-07-19 23:43:26,172 : DEBUG : KNIME-Worker-57 : WorkflowManager : Molecule String Input : 0:1 : Molecule String Input 0:1 doBeforePreExecution
2017-07-19 23:43:26,172 : DEBUG : KNIME-Worker-57 : NodeContainer : Molecule String Input : 0:1 : Molecule String Input 0:1 has new state: PREEXECUTE
2017-07-19 23:43:26,172 : DEBUG : KNIME-Worker-57 : WorkflowManager : Molecule String Input : 0:1 : Molecule String Input 0:1 doBeforeExecution
2017-07-19 23:43:26,172 : DEBUG : KNIME-Worker-57 : NodeContainer : Molecule String Input : 0:1 : Molecule String Input 0:1 has new state: EXECUTING
2017-07-19 23:43:26,172 : DEBUG : KNIME-Worker-57 : WorkflowFileStoreHandlerRepository : Molecule String Input : 0:1 : Adding handler c8815a65-76ed-4bc8-947a-2fda1d5f0328 (Molecule String Input 0:1: <no directory>) - 1 in total
2017-07-19 23:43:26,172 : DEBUG : KNIME-Worker-57 : LocalNodeExecutionJob : Molecule String Input : 0:1 : Molecule String Input 0:1 Start execute
2017-07-19 23:43:26,172 : DEBUG : KNIME-WFM-Parent-Notifier : NodeContainer :  :  : ROOT  has new state: EXECUTING
2017-07-19 23:43:28,267 : ERROR : KNIME-Worker-57 : MoleculeStringInputQuickFormNodeModel : Molecule String Input : 0:1 : Retrieving SVG from view failed: Error executing JavaScript: Can't find variable: org_knime_js_base_node_quickform_input_molecule
2017-07-19 23:43:28,267 : DEBUG : KNIME-Worker-57 : MoleculeStringInputQuickFormNodeModel : Molecule String Input : 0:1 : Retrieving SVG from view failed: Error executing JavaScript: Can't find variable: org_knime_js_base_node_quickform_input_molecule
java.io.IOException: Error executing JavaScript: Can't find variable: org_knime_js_base_node_quickform_input_molecule
    at org.knime.ext.phantomjs.PhantomJSImageGenerator.executeScript(PhantomJSImageGenerator.java:155)
    at org.knime.ext.js.node.quickform.input.molecule.MoleculeStringInputQuickFormNodeModel.createSVGImagePortObjectFromView(MoleculeStringInputQuickFormNodeModel.java:174)
    at org.knime.ext.js.node.quickform.input.molecule.MoleculeStringInputQuickFormNodeModel.execute(MoleculeStringInputQuickFormNodeModel.java:128)
    at org.knime.core.node.NodeModel.executeModel(NodeModel.java:567)
    at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1128)
    at org.knime.core.node.Node.execute(Node.java:915)
    at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:561)
    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(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)
    at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)
Caused by: org.openqa.selenium.WebDriverException: {"errorMessage":"Can't find variable: org_knime_js_base_node_quickform_input_molecule","request":{"headers":{"Accept-Encoding":"gzip,deflate","Connection":"Keep-Alive","Content-Length":"87","Content-Type":"application/json; charset=utf-8","Host":"localhost:23883","User-Agent":"Apache-HttpClient/4.5.3 (Java/1.8.0_60)"},"httpVersion":"1.1","method":"POST","post":"{\"script\":\"return org_knime_js_base_node_quickform_input_molecule.getSVG();\",\"args\":[]}","url":"/execute","urlParsed":{"anchor":"","query":"","file":"execute","directory":"/","path":"/execute","relative":"/execute","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/execute","queryKey":{},"chunks":["execute"]},"urlOriginal":"/session/437f0910-6cec-11e7-84aa-bd725b98ad06/execute"}}

Attached is the workflow.  I saw the same exception in either KNIME client or KNIME server.

Hope you can help me to resolve this - my team wants to enable molecule drawing at the webportal and executing the workflow once done drawing.

 

Thanks a million!
Simon