Problem / Exception while importing a CSV document

gms
gms New Altair Community Member
edited November 2024 in Community Q&A
Dear all,

I am new to Rapidminer. I downloaded the ZIP Container V 5.3.012

When I try to import a CSV file per drag & drop I get the following (Java) exception:
06-Aug-2013 10:06:23 com.rapidminer.repository.gui.RepositoryTree$RepositoryTree
Transferhandler importData
WARNING: Cannot accept drop flavor: java.awt.datatransfer.UnsupportedFlavorExcep
tion: transferedOperatorArray
java.awt.datatransfer.UnsupportedFlavorException: transferedOperatorArray
       at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(Unknown Source)
       at sun.awt.datatransfer.TransferableProxy.getTransferData(Unknown Source
)
       at java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(Unkn
own Source)
       at com.rapidminer.repository.gui.RepositoryTree$RepositoryTreeTransferha
ndler.importData(RepositoryTree.java:157)
       at javax.swing.TransferHandler$DropHandler.drop(Unknown Source)
       at java.awt.dnd.DropTarget.drop(Unknown Source)
       at javax.swing.TransferHandler$SwingDropTarget.drop(Unknown Source)
       at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Sourc
e)
       at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEven
t(Unknown Source)
       at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Un
known Source)
       at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
       at java.awt.Component.dispatchEventImpl(Unknown Source)
       at java.awt.Container.dispatchEventImpl(Unknown Source)
       at java.awt.Component.dispatchEvent(Unknown Source)
       at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
       at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)

       at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
       at java.awt.Container.dispatchEventImpl(Unknown Source)
       at java.awt.Window.dispatchEventImpl(Unknown Source)
       at java.awt.Component.dispatchEvent(Unknown Source)
       at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
       at java.awt.EventQueue.access$400(Unknown Source)
       at java.awt.EventQueue$2.run(Unknown Source)
       at java.awt.EventQueue$2.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
       at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
       at java.awt.EventQueue$3.run(Unknown Source)
       at java.awt.EventQueue$3.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
       at java.awt.EventQueue.dispatchEvent(Unknown Source)
       at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
       at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
       at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: canno
t add to layout: constraint must be a string
       at java.awt.CardLayout.addLayoutComponent(Unknown Source)
       at java.awt.Container.addImpl(Unknown Source)
       at java.awt.Container.add(Unknown Source)
       at com.rapidminer.operator.nio.LoadingContentPane.<init>(LoadingContentP
ane.java:49)
       at com.rapidminer.operator.nio.CSVSyntaxConfigurationWizardStep.makePane
l(CSVSyntaxConfigurationWizardStep.java:279)
       at com.rapidminer.operator.nio.CSVSyntaxConfigurationWizardStep.<init>(C
SVSyntaxConfigurationWizardStep.java:129)
       at com.rapidminer.operator.nio.CSVImportWizard.<init>(CSVImportWizard.ja
va:75)
       at com.rapidminer.operator.nio.CSVImportWizard.<init>(CSVImportWizard.ja
va:48)
       at com.rapidminer.gui.MainFrame$1.actionPerformed(MainFrame.java:322)
       at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
       at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
       at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
       at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
       at javax.swing.AbstractButton.doClick(Unknown Source)
       at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
       at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
       at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
       at java.awt.Component.processMouseEvent(Unknown Source)
Import using the File - Import Data does not work either.
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: canno
t add to layout: constraint must be a string
        at java.awt.CardLayout.addLayoutComponent(Unknown Source)
        at java.awt.Container.addImpl(Unknown Source)
        at java.awt.Container.add(Unknown Source)
        at com.rapidminer.operator.nio.LoadingContentPane.<init>(LoadingContentP
ane.java:49)
        at com.rapidminer.operator.nio.CSVSyntaxConfigurationWizardStep.makePane
l(CSVSyntaxConfigurationWizardStep.java:279)
        at com.rapidminer.operator.nio.CSVSyntaxConfigurationWizardStep.<init>(C
SVSyntaxConfigurationWizardStep.java:129)
        at com.rapidminer.operator.nio.CSVImportWizard.<init>(CSVImportWizard.ja
va:75)
        at com.rapidminer.operator.nio.CSVImportWizard.<init>(CSVImportWizard.ja
va:48)
        at com.rapidminer.gui.MainFrame$1.actionPerformed(MainFrame.java:322)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$400(Unknown Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Any ideas? Very much appreciated!

All the best,
Greg

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Nils_Woehler
    Nils_Woehler New Altair Community Member
    Hi Greg,

    which OS are you using?

    Best,
    Nils
  • gms
    gms New Altair Community Member
    Nils wrote:

    Hi Greg,

    which OS are you using?

    Best,
    Nils
    Win7 32bit

    Just downloaded Version 5.2.008, which works fine.
  • Nils_Woehler
    Nils_Woehler New Altair Community Member
    Hi Greg,

    how do you start RM? By invoking the script or by double-clicking on the rapidminer.jar?
    Or you trying to import just one or multiple CSV files?

    I just tried it myself and for me everything works fine.

    Best,
    Nils
  • ldamiani
    ldamiani New Altair Community Member
    hi, I am having the same error. I am running rapid miner on a MAC OSX 10.6 and starting it by double clicking on RapidMinerGUI (scripts directory).
  • bmoose
    bmoose New Altair Community Member
    I have the same problem: RM 5.3.013, Mac OS X 10.7.5.
    I start by clicking RapidMinerGUI (scripts directory) or by running as a script from the terminal - always the same error.
  • bmoose
    bmoose New Altair Community Member
    Pointing JAVA_HOME to JDK 1.7 resolved the issue for me.
    bmoose wrote:

    I have the same problem: RM 5.3.013, Mac OS X 10.7.5.
    I start by clicking RapidMinerGUI (scripts directory) or by running as a script from the terminal - always the same error.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.