Pages: [1]
  Print  
Author Topic: Problem / Exception while importing a CSV document  (Read 4649 times)
gms
Newbie
*
Posts: 2


« on: August 06, 2013, 09:13:25 AM »

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:

Code:
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.

Code:
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
« Last Edit: August 06, 2013, 09:19:22 AM by gms » Logged
Nils
Administrator
Sr. Member
*****
Posts: 415


« Reply #1 on: August 06, 2013, 10:33:31 AM »

Hi Greg,

which OS are you using?

Best,
Nils
Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
gms
Newbie
*
Posts: 2


« Reply #2 on: August 06, 2013, 11:18:03 AM »

Hi Greg,

which OS are you using?

Best,
Nils

Win7 32bit

Just downloaded Version 5.2.008, which works fine.
Logged
Nils
Administrator
Sr. Member
*****
Posts: 415


« Reply #3 on: August 06, 2013, 11:30:33 AM »

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
Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
ldamiani
Newbie
*
Posts: 2


« Reply #4 on: October 05, 2013, 07:34:09 PM »

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).
Logged
bmoose
Newbie
*
Posts: 10


« Reply #5 on: November 27, 2013, 05:15:37 PM »

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.
Logged
bmoose
Newbie
*
Posts: 10


« Reply #6 on: November 27, 2013, 06:13:02 PM »

Pointing JAVA_HOME to JDK 1.7 resolved the issue for me.

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.
Logged
Pages: [1]
  Print  
 
Jump to: