[SOLVED] Trying to run RapidMiner (Unuk rev 708) in Eclipse
Following the instructions in "How to Extend RapidMiner 5", I've grabbed the RapidMiner_Extension_Template and RapidMiner_Extension_Tutorial and then RapidMiner_Unuk (rev 708), all within Eclipse (Juno SR1). It took a lot of jar-adding to get the RapidMiner_Unuk project to compile, but it finally does. Now, when I try to run RapidMinerGUI as a Java application, I get this exception:
By comparison, a similar Eclipse project I set up using the RapidMiner 5.2.008 distribution's src directory runs just fine although it does not have a resources/ directory. One key difference is that I did add the RapidMiner 5.2.008 distribution's lib/rapidminer.jar to the project's Java build path. If I try the same trick with RapidMiner_Unuk, it sorta works: I get to the welcome window but the icons are replaced by "gui.action.welcome.*" strings (clearly it can't find its resources). The log is as follows:
This happens in the RapidMiner class's initializer, when it hits this line:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at java.io.Reader.<init>(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at java.util.Scanner.<init>(Unknown Source)
at com.rapidminer.RapidMiner.<clinit>(RapidMiner.java:311)
Apparently it can't find "/com/rapidminer/resources/i18n/language_definitions.txt", although I can't see why, since the file is indeed present in the "resources/" subdirectory of the Eclipse project directory (RapidMiner_Unuk). If I wrap the offending lines in a try-catch block (which is acceptable, it just means the language defaults to English), initialization goes on a bit longer, then it chokes on another resource-fetch, in the LogService initializer:
Scanner scanLanguageDefs = new Scanner(RapidMiner.class.getResourceAsStream("/com/rapidminer/resources/i18n/language_definitions.txt"));
Again, the resource "resources/com/rapidminer/resources/i18n/LogMessages.properties" is present.
private static final Logger GLOBAL_LOGGER = Logger.getLogger("com.rapidminer", "com.rapidminer.resources.i18n.LogMessages");
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.rapidminer.gui.safemode.SafeMode.launchStarts(SafeMode.java:57)
at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:527)
Caused by: java.util.MissingResourceException: Can't find com.rapidminer.resources.i18n.LogMessages bundle
at java.util.logging.Logger.setupResourceInfo(Unknown Source)
at java.util.logging.Logger.getLogger(Unknown Source)
at com.rapidminer.tools.LogService.<clinit>(LogService.java:138)
... 2 more
By comparison, a similar Eclipse project I set up using the RapidMiner 5.2.008 distribution's src directory runs just fine although it does not have a resources/ directory. One key difference is that I did add the RapidMiner 5.2.008 distribution's lib/rapidminer.jar to the project's Java build path. If I try the same trick with RapidMiner_Unuk, it sorta works: I get to the welcome window but the icons are replaced by "gui.action.welcome.*" strings (clearly it can't find its resources). The log is as follows:
My mistake is probably a simple one, but which is it?
nov. 07, 2012 5:05:31 PM com.rapidminer.gui.safemode.SafeMode launchStarts
INFO: com.rapidminer.gui.safemode.SafeMode.lock_left_behind
nov. 07, 2012 5:05:31 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Nov 07, 2012 5:05:31 PM com.rapidminer.tools.I18N <clinit>
INFO: Set locale to en.
Nov 07, 2012 5:05:31 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.dialog.confirm.safemode.enter_safe_mode.title
Nov 07, 2012 5:05:32 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.dialog.confirm.safemode.enter_safe_mode.title
Nov 07, 2012 5:05:32 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.dialog.confirm.safemode.enter_safe_mode.message
Nov 07, 2012 5:05:47 PM com.rapidminer.gui.safemode.SafeMode applySafeMode
INFO: com.rapidminer.gui.safemode.SafeMode.entering_safe_mode
Nov 07, 2012 5:05:47 PM com.rapidminer.RapidMiner performFirstInitialization
INFO: Performing upgrade from version 5.2.008 to version 5.3.000
Nov 07, 2012 5:05:47 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Property rapidminer.home is not set. Guessing.
Nov 07, 2012 5:05:47 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of 'C:\Program Files\Rapid-I\RapidMiner5\lib\launcher.jar'...gotcha!
Nov 07, 2012 5:05:47 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of 'C:\Program Files\Rapid-I\RapidMiner5\lib\rapidminer.jar'...gotcha!
Nov 07, 2012 5:05:56 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Nov 07, 2012 5:06:07 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for ODBC Bridge (e.g. Access)
Nov 07, 2012 5:06:07 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Nov 07, 2012 5:06:07 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
[Fatal Error] :1:1: Premature end of file.
Nov 07, 2012 5:06:09 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.run_remote_now.label
Nov 07, 2012 5:06:09 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.tour.label
Nov 07, 2012 5:06:09 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.clear_db_cache.label
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.new.icon
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.new.label
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.new.tip
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.open_recent.icon
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.open_recent.label
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.open_recent.tip
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.open.icon
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.open.label
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.open.tip
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.wizard.icon
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.wizard.label
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.wizard.tip
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.tutorial.icon
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.tutorial.label
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.tutorial.tip
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.tour.icon
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.tour.label
Nov 07, 2012 5:06:10 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.welcome.tour.tip
Nov 07, 2012 5:06:11 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.export_pdf.label
Nov 07, 2012 5:06:13 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.export_pdf.label
Nov 07, 2012 5:06:14 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.repository.not_accessible.message
Nov 07, 2012 5:06:14 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.action.link.label
Nov 07, 2012 5:06:14 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.dockkey.macro_viewer.name
Nov 07, 2012 5:06:14 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.dockkey.macro_viewer.tip
Nov 07, 2012 5:06:16 PM com.rapidminer.tools.I18N getMessage
WARNING: Missing I18N key: gui.progress.loading_documentation.label
No file exists
0
Answers
-
Hi,
the sourcecode contains a .project file from Eclipse. Did you let Eclipse use that? There should be no configuration at all necessary when checking RM out via SVN in Eclipse.
Regards,
Marco0 -
Silly me. The tarball did include that file (and the others starting with a period) but it got dropped when they were copied to the Eclipse project. Windows Explorer won't copy hidden files, and Linux hides files whose names start with periods. Windows Explorer even has problems naming files with initial periods.Marco Boeck wrote:
the sourcecode contains a .project file from Eclipse. Did you let Eclipse use that? There should be no configuration at all necessary when checking RM out via SVN in Eclipse.
Any way, it works now! Thanks.0