"RapidMiner integration to NetBeans: home not found / Text plugin load fails"

User: "terminal6"
New Altair Community Member
Updated by Jocelyn
Hello,

I'm new to RapidMiner and trying to use RapidMiner 4.2 with the TextPlugin 4.2 in a NetBeans RC Application. I created a project file using the GUI and tested it with the GUI where it works fine.

The NetBeans setup is that I have my module RMClustering that is supposed to use RapidMiner and two library rapper modules RapidMiner4.2Wrapper (containing rapidminer.jar) and RapidMiner4.2TextWrapper (containing the text plugin jar) and declared the necessary dependencies.
The coding and compiling works fine, so I assume the sources are found and used properly by NetBeans.

But when trying to run the clustering process I get RapidMiner errors I cannot make sense of as it is supposed to run out of the jar. Instead it stops because it cannot locate rapidminer.home with given the code in ensureRapidMinerHomeSet() seems to be a full RapidMiner installation directory:

java.lang.IllegalStateException: You are trying to access file: . from the default package. Please see http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package
        at org.netbeans.ProxyClassLoader.printDefaultPackageWarning(ProxyClassLoader.java:539)
        at org.netbeans.ProxyClassLoader.getResource(ProxyClassLoader.java:312)
        at com.rapidminer.tools.ParameterService.ensureRapidMinerHomeSet(ParameterService.java:95)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:232)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:205)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:373)
        at de.uni_mannheim.informatik.ki.blogalyzer.analyse.rmclustering.RMClusterWorker.run(RMClusterWorker.java:67)
SEVERE [global]
java.lang.RuntimeException: Property 'rapidminer.home' not set!
        at com.rapidminer.tools.ParameterService.getProperty(ParameterService.java:498)
        at com.rapidminer.tools.ParameterService.ensureRapidMinerHomeSet(ParameterService.java:124)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:232)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:205)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:373)
[catch] at de.uni_mannheim.informatik.ki.blogalyzer.analyse.rmclustering.RMClusterWorker.run(RMClusterWorker.java:67)
G Mar 2, 2009 8:01:39 AM: Property rapidminer.home is not set. Guessing.
G Mar 2, 2009 8:01:40 AM: Trying base directory of classes (build) 'failed

Because of the code in ensureRapidMinerHomeSet() I then tried to let it run against the installation directory I have on my machine using System.setProperty(...) and then it starts up but fails to load the text plugin. But I cannot see why as it works with the GUI-batch file.
As the error log is longer, I attached it instead of pasting it here.
From what I see, RapidMiner is somehow not able to load the plugins directory, no matter if I provide the text operators.xml or not.
>>>>>
G Feb 27, 2009 6:08:17 PM: [Error] Cannot read 'S:\Mannheim\WS08-09\Studienarbeit\rapidminer-4.2\lib\plugins'.
<<<<<

Interestingly the error messages are differ depending in providing the installation root 'S:\Mannheim\WS08-09\Studienarbeit\rapidminer-4.2' or the installation jar 'S:\Mannheim\WS08-09\Studienarbeit\rapidminer-4.2\lib\rapidminer.jar':
For the jar it only gives the above error line, for the installation root it additionally gives "Cannot register ... java.lang.NoClassDefFoundError" errors for each Text Plugin operator.

So if there's a fix for initial the rapidminer.home issue, I would prefer this as I would not need a full RapidMiner installation for my application to run.

Any help is highly appreciated.

Thanks,
Dietmar

[attachment deleted by admin]

Find more posts tagged with