[SOLVED] Problem with running RM in console mode (no GUI)

RLynxRLynx Member Posts: 18 Contributor II
edited November 2018 in Help
I get an error when running simple process in console mode (no GUI), but it works fine in GUI mode...

I start it by executing batch file:

cd C:\Program Files\Rapid-I\RapidMiner5\scripts
rapidminer -f "E:\Dima\RapidMiner\Repository\All CUSIPs\CrashTesting2.rmp"

Process xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.1.001">
 <context>
   <input/>
   <output/>
   <macros/>
 </context>
 <operator activated="true" class="process" compatibility="5.1.001" expanded="true" name="Process">
   <parameter key="logfile" value="E:\Dima\RapidMiner\Results\Log_Optim_LC_CD_Diff1.log"/>
   <process expanded="true" height="640" width="815">
     <operator activated="true" class="retrieve" compatibility="5.1.001" expanded="true" height="60" name="Retrieve" width="90" x="45" y="210">
       <parameter key="repository_entry" value="//Samples/data/Iris"/>
     </operator>
     <operator activated="true" class="rename" compatibility="5.1.001" expanded="true" height="76" name="Rename" width="90" x="229" y="247">
       <parameter key="old_name" value="a1"/>
       <parameter key="new_name" value="Predict"/>
       <list key="rename_additional_attributes">
         <parameter key="a2" value="DValue"/>
       </list>
     </operator>
     <operator activated="true" class="r:execute_script_r" compatibility="5.1.000" expanded="true" height="76" name="Execute Script (R)" width="90" x="380" y="75">
       <parameter key="script" value="library(ftsa)&#10;rmse &lt;- error(forecast=Forecasts$Predict,true=Forecasts$DValue,method=&quot;rmse&quot;)&#10;Measure &lt;- as.data.frame(rmse)"/>
       <enumeration key="inputs">
         <parameter key="name_of_variable" value="Forecasts"/>
       </enumeration>
       <list key="results">
         <parameter key="Measure" value="Data Table"/>
       </list>
     </operator>
     <operator activated="true" class="extract_macro" compatibility="5.1.001" expanded="true" height="60" name="Extract Measure" width="90" x="581" y="75">
       <parameter key="macro" value="RMSE"/>
       <parameter key="macro_type" value="data_value"/>
       <parameter key="attribute_name" value="rmse"/>
       <parameter key="example_index" value="1"/>
     </operator>
     <connect from_op="Retrieve" from_port="output" to_op="Rename" to_port="example set input"/>
     <connect from_op="Rename" from_port="example set output" to_op="Execute Script (R)" to_port="input 1"/>
     <connect from_op="Execute Script (R)" from_port="output 1" to_op="Extract Measure" to_port="example set"/>
     <connect from_op="Extract Measure" from_port="example set" to_port="result 1"/>
     <portSpacing port="source_input 1" spacing="0"/>
     <portSpacing port="sink_result 1" spacing="0"/>
     <portSpacing port="sink_result 2" spacing="0"/>
   </process>
 </operator>
</process>

And console output:

Jan 10, 2011 11:33:59 AM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: rapidminer.home is 'C:\Program Files\Rapid-I\RapidMiner5\scripts\..'.
2011-01-10 11:33:59 CONFIG: Locale not specified explicitly. Set default locale to US. (RapidMiner.init())
2011-01-10 11:33:59 CONFIG: Initializing I18N (RapidMiner.splashMessage())
2011-01-10 11:33:59 CONFIG: Ensuring RapidMiner Home is set (RapidMiner.splashMessage())
2011-01-10 11:33:59 INFO: rapidminer.home is 'C:\Program Files\Rapid-I\RapidMiner5\scripts\..'. (Launcher.ensureRapidMinerHomeSet())
2011-01-10 11:33:59 CONFIG: Reading Configuration Files (RapidMiner.splashMessage())
2011-01-10 11:33:59 CONFIG: Reading configuration resource com/rapidminer/resources/rapidminerrc. (ParameterService.loadAllRCFiles())
2011-01-10 11:33:59 CONFIG: Neither system property 'rapidminer.config.dir' nor environment variable 'RAPIDMINER_CONFIG_DIR' not set. Ignored. (ParameterService.getGlobalConfigDir())
2011-01-10 11:33:59 CONFIG: Trying rcfile 'C:\Documents and Settings\dprokhorov\.RapidMiner5\5_1_001_rapidminerrc'...skipped (ParameterService.loadRCFile())
2011-01-10 11:33:59 CONFIG: Read rcfile 'C:\Documents and Settings\dprokhorov\.RapidMiner5\5_1_001_rapidminerrc.Windows XP'. (ParameterService.loadRCFile())
2011-01-10 11:33:59 CONFIG: Trying rcfile 'C:\Program Files\Rapid-I\RapidMiner5\scripts\rapidminerrc'...skipped (ParameterService.loadRCFile())
2011-01-10 11:33:59 CONFIG: Trying rcfile 'C:\Program Files\Rapid-I\RapidMiner5\scripts\rapidminerrc.Windows XP'...skipped (ParameterService.loadRCFile())
2011-01-10 11:33:59 CONFIG: Property rapidminer.rcfile not specified...skipped (ParameterService.loadAllRCFiles())
2011-01-10 11:33:59 CONFIG: Registering Plugins (RapidMiner.splashMessage())
2011-01-10 11:33:59 CONFIG: Read extension state. (ManagedExtension.readConfiguration())
2011-01-10 11:33:59 CONFIG: Scanning plugins in C:\Program Files\Rapid-I\RapidMiner5\scripts\..\lib\plugins. (Plugin.findAndRegisterPlugins())
2011-01-10 11:34:00 CONFIG: Loading renderers from 'WhiBo'. (RendererService.init())
2011-01-10 11:34:00 CONFIG: Reading parse rules from jar:file:/C:/Program%20Files/Rapid-I/RapidMiner5/scripts/../lib/plugins/rapidminer-WhiBo-0.9.001.jar!/rs/fon/whibo/resources/parse.xml (XMLImporter.importParseRules())
2011-01-10 11:34:00 CONFIG: Loading renderers from 'Text Processing'. (RendererService.init())
2011-01-10 11:34:00 CONFIG: Reading parse rules from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_text-5.1.0.jar!/com/rapidminer/resources/parserulesTextProcessing.xml (XMLImporter.importParseRules())
2011-01-10 11:34:00 CONFIG: Loading renderers from 'PMML'. (RendererService.init())
2011-01-10 11:34:00 CONFIG: Reading parse rules from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_pmml-5.0.2.jar!/com/rapidminer/resources/parserulesPMML.xml (XMLImporter.importParseRules())
2011-01-10 11:34:00 CONFIG: Loading renderers from 'Weka'. (RendererService.init())
2011-01-10 11:34:00 CONFIG: Reading parse rules from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_weka-5.0.1.jar!/com/rapidminer/resources/parserulesWekaExtension.xml (XMLImporter.importParseRules())
2011-01-10 11:34:00 CONFIG: Loading renderers from 'R Extension'. (RendererService.init())
2011-01-10 11:34:00 CONFIG: Reading parse rules from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_r-5.1.0.jar!/com/rapidminer/resources/parserulesR.xml (XMLImporter.importParseRules())
2011-01-10 11:34:00 CONFIG: Loading renderers from 'PaREn Wizard'. (RendererService.init())
2011-01-10 11:34:00 CONFIG: Reading parse rules from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_paren-5.0.1.jar!/com/rapidminer/resources/parserulesParen.xml (XMLImporter.importParseRules())
2011-01-10 11:34:00 CONFIG: Loading renderers from 'Web Mining'. (RendererService.init())
2011-01-10 11:34:00 CONFIG: Reading parse rules from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_web-5.0.4.jar!/com/rapidminer/resources/parserulesWeb.xml (XMLImporter.importParseRules())
2011-01-10 11:34:00 CONFIG: Loading renderers from 'Reporting'. (RendererService.init())
2011-01-10 11:34:00 CONFIG: Reading parse rules from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_reporting-5.0.2.jar!/com/rapidminer/resources/parserulesReporting.xml (XMLImporter.importParseRules())
2011-01-10 11:34:00 CONFIG: Loading renderers from 'Series'. (RendererService.init())
2011-01-10 11:34:00 CONFIG: Reading parse rules from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_series-5.0.2.jar!/com/rapidminer/resources/parserulesValueSeries.xml (XMLImporter.importParseRules())
2011-01-10 11:34:00 CONFIG: Initializing Operators (RapidMiner.splashMessage())
2011-01-10 11:34:00 CONFIG: Loading operators from 'OperatorsCore.xml'. (OperatorService.registerOperators())
2011-01-10 11:34:00 CONFIG: Loading operator documentation from jar:file:/C:/Program%20Files/Rapid-I/RapidMiner5/lib/rapidminer.jar!/com/rapidminer/resources/i18n/OperatorsCoreDocumentation.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:02 WARNING: Password in XML file looks like unencrypted plain text. (ParameterTypePassword.decryptPassword())
2011-01-10 11:34:03 CONFIG: Loading operators from 'C:\Program Files\Rapid-I\RapidMiner5\scripts\..\lib\plugins\rapidminer-WhiBo-0.9.001.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:03 CONFIG: Loading operator documentation from jar:file:/C:/Program%20Files/Rapid-I/RapidMiner5/scripts/../lib/plugins/rapidminer-WhiBo-0.9.001.jar!/rs/fon/whibo/resources/WhiboOperatorsDoc.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:03 CONFIG: Loading operators from 'C:\Documents and Settings\dprokhorov\.RapidMiner5\managed\rmx_text-5.1.0.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:03 CONFIG: Loading operator documentation from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_text-5.1.0.jar!/com/rapidminer/resources/i18n/OperatorsDocTextProcessing.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:03 CONFIG: Loading operators from 'C:\Documents and Settings\dprokhorov\.RapidMiner5\managed\rmx_parallel-5.0.1.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:03 CONFIG: Loading operator documentation from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_parallel-5.0.1.jar!/com/rapidminer/resources/i18n/OperatorsDocParallel.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:03 CONFIG: Loading operators from 'C:\Documents and Settings\dprokhorov\.RapidMiner5\managed\rmx_pmml-5.0.2.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:03 CONFIG: Loading operator documentation from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_pmml-5.0.2.jar!/com/rapidminer/resources/i18n/OperatorsDocPMML.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:03 CONFIG: Loading operators from 'C:\Documents and Settings\dprokhorov\.RapidMiner5\managed\rmx_weka-5.0.1.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:03 CONFIG: Loading operator documentation from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_weka-5.0.1.jar!/com/rapidminer/resources/i18n/OperatorsDocWekaExtension.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:03 CONFIG: Creating operators from factory com.rapidminer.tools.WekaOperatorFactory (OperatorService.parseOperators())
2011-01-10 11:34:06 CONFIG: Loading operators from 'C:\Documents and Settings\dprokhorov\.RapidMiner5\managed\rmx_r-5.1.0.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:06 CONFIG: Loading operator documentation from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_r-5.1.0.jar!/com/rapidminer/resources/i18n/OperatorsDocR.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:06 CONFIG: Creating operators from factory com.rapidminer.operator.r.ROperatorFactory (OperatorService.parseOperators())
2011-01-10 11:34:06 CONFIG: Loading operators from 'C:\Documents and Settings\dprokhorov\.RapidMiner5\managed\rmx_paren-5.0.1.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:06 CONFIG: Loading operator documentation from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_paren-5.0.1.jar!/com/rapidminer/resources/i18n/OperatorsDocParen.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:06 CONFIG: Loading operators from 'C:\Documents and Settings\dprokhorov\.RapidMiner5\managed\rmx_web-5.0.4.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:06 CONFIG: Loading operator documentation from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_web-5.0.4.jar!/com/rapidminer/resources/i18n/OperatorsDocWeb.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:06 CONFIG: Loading operators from 'C:\Documents and Settings\dprokhorov\.RapidMiner5\managed\rmx_reporting-5.0.2.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:06 CONFIG: Loading operator documentation from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_reporting-5.0.2.jar!/com/rapidminer/resources/i18n/OperatorsDocReporting.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:06 CONFIG: Loading operators from 'C:\Documents and Settings\dprokhorov\.RapidMiner5\managed\rmx_series-5.0.2.jar'. (OperatorService.registerOperators())
2011-01-10 11:34:06 CONFIG: Loading operator documentation from jar:file:/C:/Documents%20and%20Settings/dprokhorov/.RapidMiner5/managed/rmx_series-5.0.2.jar!/com/rapidminer/resources/i18n/OperatorsDocValueSeries.xml. (OperatorDocBundle$XMLControl.newBundle())
2011-01-10 11:34:07 CONFIG: Number of registered operator classes: 591; number of registered operator descriptions: 736; number of replacements: 534 (OperatorService.init())
2011-01-10 11:34:07 CONFIG: Loading operator usage statistics. (UsageStatistics.load())
2011-01-10 11:34:07 CONFIG: Initializing XML Transformation Rules (RapidMiner.splashMessage())
2011-01-10 11:34:07 CONFIG: Reading parse rules from jar:file:/C:/Program%20Files/Rapid-I/RapidMiner5/lib/rapidminer.jar!/com/rapidminer/resources/parserules.xml (XMLImporter.importParseRules())
2011-01-10 11:34:07 CONFIG: Loading JDBC Drivers (RapidMiner.splashMessage())
2011-01-10 11:34:07 CONFIG: Loading JDBC driver information from 'resource jdbc_properties.xml'. (DatabaseService.loadJDBCProperties())
2011-01-10 11:34:07 CONFIG: Loaded JDBC driver com.mysql.jdbc.Driver (JDBCProperties.registerDrivers())
2011-01-10 11:34:07 CONFIG: Loaded JDBC driver org.postgresql.Driver (JDBCProperties.registerDrivers())
2011-01-10 11:34:07 CONFIG: Loaded JDBC driver net.sourceforge.jtds.jdbc.Driver (JDBCProperties.registerDrivers())
2011-01-10 11:34:07 CONFIG: Loaded JDBC driver org.hsqldb.jdbcDriver (JDBCProperties.registerDrivers())
2011-01-10 11:34:07 WARNING: Missing database driver class name for 'ODBC Bridge (e.g. Access)' (JDBCProperties.<init>())
2011-01-10 11:34:07 CONFIG: Loaded JDBC driver net.sourceforge.jtds.jdbc.Driver (JDBCProperties.registerDrivers())
2011-01-10 11:34:07 CONFIG: Loaded JDBC driver com.ingres.jdbc.IngresDriver (JDBCProperties.registerDrivers())
2011-01-10 11:34:07 INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
2011-01-10 11:34:07 INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
2011-01-10 11:34:07 CONFIG: Neither system property 'rapidminer.config.dir' nor environment variable 'RAPIDMINER_CONFIG_DIR' not set. Ignored. (ParameterService.getGlobalConfigDir())
2011-01-10 11:34:07 CONFIG: Initializing Data Repository (RapidMiner.splashMessage())
2011-01-10 11:34:07 CONFIG: Loading repositories from C:\Documents and Settings\dprokhorov\.RapidMiner5\repositories.xml (RepositoryManager.load())
2011-01-10 11:34:07 CONFIG: Adding repository Repository (RepositoryManager.addRepository())
2011-01-10 11:34:07 CONFIG: Initializing XML Serialization (RapidMiner.splashMessage())
2011-01-10 11:34:07 CONFIG: Defining XML Serialization Alias Pairs (RapidMiner.splashMessage())
2011-01-10 11:34:08 CONFIG: Initializing Renderers (RapidMiner.splashMessage())
2011-01-10 11:34:08 CONFIG: Loading renderers from 'file:/C:/Program%20Files/Rapid-I/RapidMiner5/lib/rapidminer.jar!/com/rapidminer/resources/ioobjects.xml'. (RendererService.init())
2011-01-10 11:34:08 CONFIG: Loading renderers from 'ioobjects.xml'. (RendererService.init())
2011-01-10 11:34:08 INFO: No filename given for result file, using stdout for logging results! (WrapperLoggingHandler.log())
2011-01-10 11:34:08 INFO: Process E:\Dima\RapidMiner\Repository\All CUSIPs\CrashTesting2.rmp starts (Process.run())
2011-01-10 11:34:08 WARNING: Using deprecated example set stream version 1 (ExampleSetToStream.<init>())
Cannot find JRI native library!
Please make sure that the JRI native library is in a directory listed in java.library.path.

java.lang.UnsatisfiedLinkError: no jri in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.rosuda.JRI.Rengine.<clinit>(Rengine.java:43)
at org.rosuda.JRI.JRIEngine.<init>(JRIEngine.java:220)
at com.rapidminer.tools.r.JRIRSession.initializeEngine(JRIRSession.java:320)
at com.rapidminer.tools.r.JRIRSession.<init>(JRIRSession.java:78)
at com.rapidminer.tools.r.RSessionManager.acquireSession(RSessionManager.java:234)
at com.rapidminer.tools.r.RSessionManager.acquireSession(RSessionManager.java:195)
at com.rapidminer.operator.r.RScriptOperator.doWork(RScriptOperator.java:185)
at com.rapidminer.operator.Operator.execute(Operator.java:829)
at com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
at com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:709)
at com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:369)
at com.rapidminer.operator.Operator.execute(Operator.java:829)
at com.rapidminer.Process.run(Process.java:901)
at com.rapidminer.Process.run(Process.java:797)
at com.rapidminer.Process.run(Process.java:792)
at com.rapidminer.Process.run(Process.java:782)
at com.rapidminer.RapidMinerCommandLine.run(RapidMinerCommandLine.java:132)
at com.rapidminer.RapidMinerCommandLine.main(RapidMinerCommandLine.java:168)

Any ideas how to fix it?

Answers

  • haddockhaddock Member Posts: 849 Maven
    Hi there,

    The Java error message is saying it cannot find some DLL, which on Windows is solved by setting the PATH environment variable to include the directory of the  DLL. If in doubt Google http://www.google.fr/search?q=java.library.path+window  ;D There is however some good news, in that  the GUI grinds R at all. Readers of these columns in recent times will have noticed that this not always true.

    Onward!

  • RLynxRLynx Member Posts: 18 Contributor II
    Added
    C:\Program Files\R\R-2.11.1\library\rJava\jri
    to PATH variable...
    Now it works! Thank you :)
Sign In or Register to comment.