Error while creating node dialog for 'File Reader': URI is not hierarchical.

Hi everybody.

when I try to use a File Reader  I have (often) this error Error while creating node dialog for 'File Reader': URI is not hierarchical.

 

Do you have any idea of what is causing this problem?

Thank you very much

 

Here is my log:

2018-01-09 18:50:31,599 : DEBUG : main : Node : File Reader : 0:206:208 : Error while creating node dialog for 'File Reader': URI is not hierarchical
java.lang.IllegalArgumentException: URI is not hierarchical
    at sun.nio.fs.WindowsUriSupport.fromUri(WindowsUriSupport.java:122)
    at sun.nio.fs.WindowsFileSystemProvider.getPath(WindowsFileSystemProvider.java:92)
    at java.nio.file.Paths.get(Paths.java:138)
    at org.knime.core.util.FileUtil.resolveToPath(FileUtil.java:1127)
    at org.knime.core.node.util.FilesHistoryPanel$FileReaderCheckLabel.checkLocation(FilesHistoryPanel.java:328)
    at org.knime.core.node.util.FilesHistoryPanel.fileLocationChanged(FilesHistoryPanel.java:952)
    at org.knime.core.node.util.FilesHistoryPanel.access$2(FilesHistoryPanel.java:946)
    at org.knime.core.node.util.FilesHistoryPanel$4.insertUpdate(FilesHistoryPanel.java:513)
    at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
    at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:748)
    at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
    at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
    at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:669)
    at javax.swing.text.JTextComponent.setText(JTextComponent.java:1669)
    at javax.swing.plaf.basic.BasicComboBoxEditor$BorderlessTextField.setText(BasicComboBoxEditor.java:144)
    at javax.swing.plaf.basic.BasicComboBoxEditor.setItem(BasicComboBoxEditor.java:87)
    at com.sun.java.swing.plaf.windows.WindowsComboBoxUI$WindowsComboBoxEditor.setItem(WindowsComboBoxUI.java:507)
    at javax.swing.JComboBox.configureEditor(JComboBox.java:1404)
    at javax.swing.plaf.basic.BasicComboBoxUI$Handler.contentsChanged(BasicComboBoxUI.java:1864)
    at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:118)
    at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:93)
    at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:131)
    at org.knime.core.node.util.FilesHistoryPanel.updateHistory(FilesHistoryPanel.java:844)
    at org.knime.core.node.util.FilesHistoryPanel.<init>(FilesHistoryPanel.java:631)
    at org.knime.base.node.io.filereader.FileReaderNodeDialog.createFileNamePanel(FileReaderNodeDialog.java:283)
    at org.knime.base.node.io.filereader.FileReaderNodeDialog.<init>(FileReaderNodeDialog.java:261)
    at org.knime.base.node.io.filereader.FileReaderNodeFactory.createNodeDialogPane(FileReaderNodeFactory.java:126)
    at org.knime.core.node.Node$1.run(Node.java:2069)
    at org.knime.core.node.util.ViewUtils$3.run(ViewUtils.java:353)
    at org.knime.core.node.util.ViewUtils$2.run(ViewUtils.java:155)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2018-01-09 18:50:36,581 : DEBUG : main : NodeContainerEditPart :  :  : File Reader 0:206:208 (IDLE)

Hi ,

can you let me know which KNIME version you are using?

Plus please go to the following folder: \knime-workspace\.metadata\knime

and delete the files named history_filreader_history.txt

This used to be a problem with another reader node and I suspose we came across the same here.

Could you check and let me know?

Thank you and happy new year! Iris 

Thank you very much and happy new year!

I'm using KNIME 3.5.1 on Windows 7 but I don't see history_filreader_history.txt.

I have only 

  • history_ASCIIfile
  • history_class org.knime.base.node.flowvariable.createfilename.CreateFilenameNodeDialog
  • history_constant-value-key
  • history_createFileNameHistoryKey
  • history_csv_read
  • history_string2date-formats

Should I try to delete all the history?

It's very likely "history_ASCIIfile". Before you delete it: Can you paste a copy of the file content here (after you inspected that you don't disclose anything that you want to keep private...)

Before I paste it, I would like to describe the content.

I see 8 rows like this:

file:path1/filename1.csv
file:path2/filename2.csv
file:path3/filename3.csv
file:/path4/filename4.csv
file:/path5/filename5.csv
knime://knime.workflow/filename6.csv
file:path7/filename7.csv
file:path8/filename8.csv

where path2,..., path5 are old paths that I don't use anymore. Note that path4 and 5 are preceded by a "/".

Thank you very much

 

 

Hi everbody.

Any news about this problem?

Hi there
I encountered errors with the create file name node as well… on 3.7.2 on windows and mac the xls and the csv formats are creating files that are not readable…BUG?

For @adaptagis question see here: create file name Node .. Errors with formats
Ivan

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.