The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"[SOLVED] Error: Content is not allowed in prolog"

michaelhechtmichaelhecht Member Posts: 89 Maven
edited June 2019 in Help
Hello,

I just started to try to implement RapidMiner into my own application. To make it easier for me I use Jython instead of Java,
which makes the code quite small:

import com.rapidminer.RapidMiner as RapidMiner
import com.rapidminer.Process as Process
import com.rapidminer.RapidMiner.ExecutionMode as ExecutionMode

RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE);
RapidMiner.init()
process = Process('D:/RapidMinerRepository/PolynomOptimierung.rmp')
result = process.run()

print result
On running it i get a problem in the Process-line:

Dec 8, 2011 7:56:26 AM com.rapid_i.Launcher ensureRapidMinerHomeSet
...
[Fatal Error] :1:1: Content is not allowed in prolog.
Traceback (most recent call last):
 File "jyRapid.py", line 7, in <module>
   process = Process('D:/RapidMinerRepository/PolynomOptimierung.rmp')
at com.rapidminer.Process.readProcess(Process.java:1080)
at com.rapidminer.Process.readProcess(Process.java:1055)
at com.rapidminer.Process.<init>(Process.java:254)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:210)

com.rapidminer.tools.XMLException: com.rapidminer.tools.XMLException: Cannot parse document: Content is not allowed in prolog.
The workflow works well in the GUI and in the forum I didn't find any solution, so how to fix it?
Tagged:

Best Answer

  • kludikovskykludikovsky Member Posts: 30 Maven
    Solution Accepted

    This saved my day.
    The files was sored as UTF-8. SImply converted to ANSI solved the issue.

     

    Thnx,

Answers

  • Nils_WoehlerNils_Woehler Member Posts: 463 Maven
    Hi,
    please open your .rpm file with a text editor and check if there is any other character before the "<?xml..." part.
    If so remove it and try to run your application again. If there is no other character it has to be an encoding problem.
    Try to save the .rpm file with another enconding.

    Regards,
    Nils
  • michaelhechtmichaelhecht Member Posts: 89 Maven
    Checkign the XML was the first thing I did and it was OK. Meanwhile I added some Java XML-parsing and this works fine,
    if I use "UTF-8" but fails with the same error by using "UTF-16":

    # import necessary libraries
    import com.rapidminer.RapidMiner as RapidMiner
    import com.rapidminer.Process as Process
    import com.rapidminer.RapidMiner.ExecutionMode as ExecutionMode
    import time

    # start up rapidminer
    start = time.time()
    RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE)
    RapidMiner.init()
    print "init done (%.1f sec)...\n" % (time.time()-start)

    # check wether Java can parse the XML file
    from java.io import FileInputStream
    from javax.xml.transform.stream import StreamSource
    from javax.xml.transform.stream import StreamResult
    from javax.xml.parsers import DocumentBuilderFactory

    factory  = DocumentBuilderFactory.newInstance()
    builder  = factory.newDocumentBuilder()
    input    = FileInputStream('D:/RapidMinerRepository/myprocess.xml')
    document = builder.parse(input)
    print 'First node is:',document.getDocumentElement().getNodeName()
    print "Java is done ...\n"

    # load the XML workflow for parsing and processing
    process = Process('D:/RapidMinerRepository/myprocess.xml')
    print "process loaded ...\n"

    # process workflow
    result = process.run()
    print "run finished ...\n"

    # print result information
    print "Result is:\n",result,'\n'
    Process(...) fails with both "UTF-8" and "UTF-16". Which coding I can test instead?

  • michaelhechtmichaelhecht Member Posts: 89 Maven
    Meanwihle I testes also "ISO-8895-1" and "windows-1252".

    The Java XML parser took both, Process(...) took none.
  • michaelhechtmichaelhecht Member Posts: 89 Maven
    Just to mention it: I'm working on Windows 7 64-bit and the Jython/Java version is also 64-bit, RapidMiner is "5.1.014" 64-bit.
  • michaelhechtmichaelhecht Member Posts: 89 Maven
    Here is the Java version, to be sure that it is not a problem of Jython (in fact: it isn't !):

    package jrapidminer;

    import com.rapidminer.RapidMiner;
    import com.rapidminer.RapidMiner.ExecutionMode;
    import com.rapidminer.Process;

    public class jRapidMiner
    {

        public static void main(String[] args)
        {
            String rapidMinerHome = "C:/Program Files/Rapid-I/RapidMiner5/";
            System.setProperty("rapidminer.home", rapidMinerHome);
            RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE);
            RapidMiner.init();

            try
            {
                String workflow = "D:/RapidMinerRepository/myprocess.xml";
                Process process = new Process(workflow);

                process.run();
            } catch (Exception e) {
            }
        }
    }
    and here is the output after execution:

    run:
    Dec 8, 2011 2:23:32 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
    INFO: rapidminer.home is 'C:/Program Files/Rapid-I/RapidMiner5/'.
    Dec 8, 2011 2:23:32 PM com.rapidminer.tools.ParameterService init
    INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
    Dec 8, 2011 2:23:34 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
    WARNING: Password in XML file looks like unencrypted plain text.
    Dec 8, 2011 2:23:36 PM com.rapidminer.tools.plugin.Plugin registerOperators
    INFO: No operator descriptor specified for plugin Community. Trying plugin initializtation class com.rapidminer.community.CommunityPluginInit.
    Dec 8, 2011 2:23:36 PM com.rapidminer.tools.plugin.Plugin registerOperators
    WARNING: No operator descriptor defined for: Community
    Dec 8, 2011 2:23:36 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
    WARNING: Missing database driver class name for 'ODBC Bridge (e.g. Access)'
    Dec 8, 2011 2:23:36 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
    INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
    Dec 8, 2011 2:23:36 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: Content is not allowed in prolog.
    BUILD SUCCESSFUL (total time: 4 seconds)
    Finally the XML:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.1.014">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="5.1.014" expanded="true" name="Root">
        <parameter key="logverbosity" value="init"/>
        <parameter key="random_seed" value="2001"/>
        <parameter key="send_mail" value="never"/>
        <parameter key="notification_email" value=""/>
        <parameter key="process_duration_for_mail" value="30"/>
        <parameter key="encoding" value="SYSTEM"/>
        <parameter key="parallelize_main_process" value="false"/>
        <process expanded="true" height="634" width="907">
          <operator activated="true" class="generate_data" compatibility="5.1.014" expanded="true" height="60" name="ExampleSetGenerator" width="90" x="45" y="165">
            <parameter key="target_function" value="complicated function"/>
            <parameter key="number_examples" value="1000"/>
            <parameter key="number_of_attributes" value="3"/>
            <parameter key="attributes_lower_bound" value="-10.0"/>
            <parameter key="attributes_upper_bound" value="10.0"/>
            <parameter key="use_local_random_seed" value="true"/>
            <parameter key="local_random_seed" value="-1"/>
            <parameter key="datamanagement" value="double_array"/>
          </operator>
          <operator activated="true" class="optimize_by_generation_aga" compatibility="5.1.014" expanded="true" height="94" name="AGA" width="90" x="179" y="30">
            <parameter key="max_number_of_new_attributes" value="1"/>
            <parameter key="limit_max_total_number_of_attributes" value="false"/>
            <parameter key="max_total_number_of_attributes" value="-1"/>
            <parameter key="use_local_random_seed" value="false"/>
            <parameter key="local_random_seed" value="-1"/>
            <parameter key="show_stop_dialog" value="false"/>
            <parameter key="maximal_fitness" value="Infinity"/>
            <parameter key="population_size" value="5"/>
            <parameter key="maximum_number_of_generations" value="50"/>
            <parameter key="use_plus" value="false"/>
            <parameter key="use_diff" value="false"/>
            <parameter key="use_mult" value="true"/>
            <parameter key="use_div" value="false"/>
            <parameter key="reciprocal_value" value="false"/>
            <parameter key="use_early_stopping" value="false"/>
            <parameter key="generations_without_improval" value="-1"/>
            <parameter key="tournament_size" value="0.25"/>
            <parameter key="start_temperature" value="1.0"/>
            <parameter key="dynamic_selection_pressure" value="true"/>
            <parameter key="keep_best_individual" value="false"/>
            <parameter key="p_initialize" value="0.5"/>
            <parameter key="p_crossover" value="0.5"/>
            <parameter key="crossover_type" value="uniform"/>
            <parameter key="p_generate" value="0.1"/>
            <parameter key="use_heuristic_mutation_probability" value="true"/>
            <parameter key="p_mutation" value="0.1"/>
            <parameter key="use_square_roots" value="false"/>
            <parameter key="use_power_functions" value="false"/>
            <parameter key="use_sin" value="false"/>
            <parameter key="use_cos" value="false"/>
            <parameter key="use_tan" value="false"/>
            <parameter key="use_atan" value="false"/>
            <parameter key="use_exp" value="false"/>
            <parameter key="use_log" value="false"/>
            <parameter key="use_absolute_values" value="false"/>
            <parameter key="use_min" value="false"/>
            <parameter key="use_max" value="false"/>
            <parameter key="use_sgn" value="false"/>
            <parameter key="use_floor_ceil_functions" value="false"/>
            <parameter key="restrictive_selection" value="true"/>
            <parameter key="remove_useless" value="true"/>
            <parameter key="remove_equivalent" value="true"/>
            <parameter key="equivalence_samples" value="5"/>
            <parameter key="equivalence_epsilon" value="0.05"/>
            <parameter key="equivalence_use_statistics" value="true"/>
            <parameter key="search_fourier_peaks" value="0"/>
            <parameter key="attributes_per_peak" value="1"/>
            <parameter key="epsilon" value="0.1"/>
            <parameter key="adaption_type" value="gaussian"/>
            <parameter key="parallelize_evaluation_process" value="true"/>
            <process expanded="true" height="616" width="820">
              <operator activated="true" class="x_validation" compatibility="5.1.002" expanded="true" height="130" name="XValidation" width="90" x="45" y="30">
                <parameter key="create_complete_model" value="false"/>
                <parameter key="average_performances_only" value="true"/>
                <parameter key="leave_one_out" value="false"/>
                <parameter key="number_of_validations" value="10"/>
                <parameter key="sampling_type" value="shuffled sampling"/>
                <parameter key="use_local_random_seed" value="false"/>
                <parameter key="local_random_seed" value="-1"/>
                <parameter key="parallelize_training" value="false"/>
                <parameter key="parallelize_testing" value="false"/>
                <process expanded="true" height="634" width="394">
                  <operator activated="true" class="linear_regression" compatibility="5.1.014" expanded="true" height="94" name="LinearRegression" width="90" x="152" y="30">
                    <parameter key="feature_selection" value="M5 prime"/>
                    <parameter key="alpha" value="0.05"/>
                    <parameter key="max_iterations" value="10"/>
                    <parameter key="forward_alpha" value="0.05"/>
                    <parameter key="backward_alpha" value="0.05"/>
                    <parameter key="eliminate_colinear_features" value="true"/>
                    <parameter key="min_tolerance" value="0.05"/>
                    <parameter key="use_bias" value="true"/>
                    <parameter key="ridge" value="1.0E-8"/>
                  </operator>
                  <connect from_port="training" to_op="LinearRegression" to_port="training set"/>
                  <connect from_op="LinearRegression" from_port="model" to_port="model"/>
                  <connect from_op="LinearRegression" from_port="exampleSet" to_port="through 1"/>
                  <connect from_op="LinearRegression" from_port="weights" to_port="through 2"/>
                  <portSpacing port="source_training" spacing="0"/>
                  <portSpacing port="sink_model" spacing="0"/>
                  <portSpacing port="sink_through 1" spacing="0"/>
                  <portSpacing port="sink_through 2" spacing="0"/>
                  <portSpacing port="sink_through 3" spacing="0"/>
                </process>
                <process expanded="true" height="634" width="394">
                  <operator activated="true" class="apply_model" compatibility="5.1.014" expanded="true" height="76" name="ModelApplier" width="90" x="45" y="30">
                    <list key="application_parameters"/>
                    <parameter key="create_view" value="false"/>
                  </operator>
                  <operator activated="true" class="performance" compatibility="5.1.014" expanded="true" height="76" name="Performance" width="90" x="219" y="30">
                    <parameter key="use_example_weights" value="true"/>
                  </operator>
                  <connect from_port="model" to_op="ModelApplier" to_port="model"/>
                  <connect from_port="test set" to_op="ModelApplier" to_port="unlabelled data"/>
                  <connect from_port="through 2" to_port="averagable 2"/>
                  <connect from_op="ModelApplier" from_port="labelled data" to_op="Performance" to_port="labelled data"/>
                  <connect from_op="Performance" from_port="performance" to_port="averagable 1"/>
                  <portSpacing port="source_model" spacing="0"/>
                  <portSpacing port="source_test set" spacing="0"/>
                  <portSpacing port="source_through 1" spacing="0"/>
                  <portSpacing port="source_through 2" spacing="54"/>
                  <portSpacing port="source_through 3" spacing="0"/>
                  <portSpacing port="sink_averagable 1" spacing="0"/>
                  <portSpacing port="sink_averagable 2" spacing="90"/>
                  <portSpacing port="sink_averagable 3" spacing="0"/>
                </process>
              </operator>
              <connect from_port="example set source" to_op="XValidation" to_port="training"/>
              <connect from_op="XValidation" from_port="averagable 1" to_port="performance sink"/>
              <portSpacing port="source_example set source" spacing="0"/>
              <portSpacing port="sink_performance sink" spacing="0"/>
            </process>
          </operator>
          <operator activated="true" class="rename_by_constructions" compatibility="5.1.014" expanded="true" height="76" name="Construction2Names" width="90" x="313" y="165"/>
          <operator activated="true" class="linear_regression" compatibility="5.1.014" expanded="true" height="94" name="LinearRegression (2)" width="90" x="447" y="255">
            <parameter key="feature_selection" value="M5 prime"/>
            <parameter key="alpha" value="0.05"/>
            <parameter key="max_iterations" value="10"/>
            <parameter key="forward_alpha" value="0.05"/>
            <parameter key="backward_alpha" value="0.05"/>
            <parameter key="eliminate_colinear_features" value="true"/>
            <parameter key="min_tolerance" value="0.05"/>
            <parameter key="use_bias" value="true"/>
            <parameter key="ridge" value="1.0E-8"/>
          </operator>
          <operator activated="true" class="apply_model" compatibility="5.1.014" expanded="true" height="76" name="ModelApplier (2)" width="90" x="648" y="345">
            <list key="application_parameters"/>
            <parameter key="create_view" value="false"/>
          </operator>
          <operator activated="true" class="write_model" compatibility="5.1.014" expanded="true" height="60" name="Write Model" width="90" x="742" y="428">
            <parameter key="model_file" value="D:\RapidMinerRepository\polymodel"/>
            <parameter key="overwrite_existing_file" value="true"/>
            <parameter key="output_type" value="XML Zipped"/>
          </operator>
          <connect from_op="ExampleSetGenerator" from_port="output" to_op="AGA" to_port="example set in"/>
          <connect from_op="AGA" from_port="example set out" to_op="Construction2Names" to_port="example set input"/>
          <connect from_op="AGA" from_port="attribute weights out" to_port="result 3"/>
          <connect from_op="AGA" from_port="performance out" to_port="result 4"/>
          <connect from_op="Construction2Names" from_port="example set output" to_op="LinearRegression (2)" to_port="training set"/>
          <connect from_op="LinearRegression (2)" from_port="model" to_op="ModelApplier (2)" to_port="model"/>
          <connect from_op="LinearRegression (2)" from_port="exampleSet" to_op="ModelApplier (2)" to_port="unlabelled data"/>
          <connect from_op="LinearRegression (2)" from_port="weights" to_port="result 2"/>
          <connect from_op="ModelApplier (2)" from_port="labelled data" to_port="result 1"/>
          <connect from_op="ModelApplier (2)" from_port="model" to_op="Write Model" to_port="input"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
          <portSpacing port="sink_result 3" spacing="0"/>
          <portSpacing port="sink_result 4" spacing="0"/>
          <portSpacing port="sink_result 5" spacing="0"/>
        </process>
      </operator>
    </process>
  • michaelhechtmichaelhecht Member Posts: 89 Maven
    Meanwhile I tested the posted Java code on Windows XP with RapidMiner 5.0 with a different workflow.
    The error message is the same. So either I always install my software with the wrong configuration or
    there is a basic error in the Java code ?!

    Here is the XML:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.0">
      <context>
        <input>
          <location/>
        </input>
        <output>
          <location/>
          <location/>
        </output>
        <macros/>
      </context>
      <operator activated="true" class="process" expanded="true" name="Process">
        <parameter key="logverbosity" value="3"/>
        <parameter key="random_seed" value="2001"/>
        <parameter key="send_mail" value="1"/>
        <parameter key="process_duration_for_mail" value="30"/>
        <parameter key="encoding" value="SYSTEM"/>
        <process expanded="true" height="100" width="413">
          <operator activated="true" class="generate_data" expanded="true" height="60" name="Generate Data" width="90" x="67" y="62">
            <parameter key="target_function" value="random"/>
            <parameter key="number_examples" value="100"/>
            <parameter key="number_of_attributes" value="5"/>
            <parameter key="attributes_lower_bound" value="-10.0"/>
            <parameter key="attributes_upper_bound" value="10.0"/>
            <parameter key="use_local_random_seed" value="false"/>
            <parameter key="local_random_seed" value="1992"/>
            <parameter key="datamanagement" value="0"/>
          </operator>
          <operator activated="true" class="write_csv" expanded="true" height="60" name="Write CSV" width="90" x="313" y="30">
            <parameter key="csv_file" value="D:\TEMP\rapidminer.csv"/>
            <parameter key="column_separator" value=";"/>
            <parameter key="write_attribute_names" value="true"/>
            <parameter key="quote_nominal_values" value="true"/>
            <parameter key="encoding" value="SYSTEM"/>
          </operator>
          <connect from_op="Generate Data" from_port="output" to_op="Write CSV" to_port="input"/>
          <connect from_op="Write CSV" from_port="through" 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>
    Netbeans output:

    run:
    2011-12-08 18:46:23 CONFIG: Initializing I18N (RapidMiner.splashMessage())
    2011-12-08 18:46:23 CONFIG: Ensuring RapidMiner Home is set (RapidMiner.splashMessage())
    2011-12-08 18:46:23 INFO: rapidminer.home is 'C:/Programme/Rapid-I/RapidMiner5/'. (Launcher.ensureRapidMinerHomeSet())
    2011-12-08 18:46:23 CONFIG: Reading Configuration Files (RapidMiner.splashMessage())
    2011-12-08 18:46:23 CONFIG: Reading configuration resource com/rapidminer/resources/rapidminerrc. (ParameterService.loadRCFile())
    2011-12-08 18:46:23 CONFIG: Trying rcfile 'C:\Dokumente und Einstellungen\Michael\.RapidMiner5\5_0_1_rapidminerrc'...skipped (ParameterService.loadRCFile())
    2011-12-08 18:46:23 CONFIG: Read rcfile 'C:\Dokumente und Einstellungen\Michael\.RapidMiner5\5_0_1_rapidminerrc.Windows XP'. (ParameterService.loadRCFile())
    2011-12-08 18:46:23 CONFIG: Trying rcfile 'C:\Dokumente und Einstellungen\Michael\Eigene Dateien\NetBeansProjects\jRapidMiner\rapidminerrc'...skipped (ParameterService.loadRCFile())
    2011-12-08 18:46:23 CONFIG: Trying rcfile 'C:\Dokumente und Einstellungen\Michael\Eigene Dateien\NetBeansProjects\jRapidMiner\rapidminerrc.Windows XP'...skipped (ParameterService.loadRCFile())
    2011-12-08 18:46:23 CONFIG: Property rapidminer.rcfile not specified...skipped (ParameterService.loadRCFile())
    2011-12-08 18:46:23 CONFIG: Registering Plugins (RapidMiner.splashMessage())
    2011-12-08 18:46:23 CONFIG: Read extension state. (ManagedExtension.readConfiguration())
    2011-12-08 18:46:23 CONFIG: Scanning plugins in C:\Programme\Rapid-I\RapidMiner5\lib\plugins. (Plugin.initAll())
    2011-12-08 18:46:23 CONFIG: Loading renderers from 'Text Processing'. (RendererService.init())
    2011-12-08 18:46:26 CONFIG: Reading parse rules from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_text-5.0.4.jar!/com/rapidminer/resources/parserulesTextProcessing.xml (XMLImporter.importParseRules())
    2011-12-08 18:46:26 CONFIG: Loading renderers from 'Weka'. (RendererService.init())
    2011-12-08 18:46:26 CONFIG: Reading parse rules from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_weka-5.0.0.jar!/com/rapidminer/resources/parserulesWekaExtension.xml (XMLImporter.importParseRules())
    2011-12-08 18:46:26 CONFIG: Loading renderers from 'Web Mining'. (RendererService.init())
    2011-12-08 18:46:26 CONFIG: Reading parse rules from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_web-5.0.2.jar!/com/rapidminer/resources/parserulesWeb.xml (XMLImporter.importParseRules())
    2011-12-08 18:46:26 CONFIG: Loading renderers from 'Series'. (RendererService.init())
    2011-12-08 18:46:26 CONFIG: Reading parse rules from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_series-5.0.1.jar!/com/rapidminer/resources/parserulesValueSeries.xml (XMLImporter.importParseRules())
    2011-12-08 18:46:26 CONFIG: Loading renderers from 'Reporting'. (RendererService.init())
    2011-12-08 18:46:26 CONFIG: Reading parse rules from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_reporting-5.0.2.jar!/com/rapidminer/resources/parserulesReporting.xml (XMLImporter.importParseRules())
    2011-12-08 18:46:26 CONFIG: Initializing Setup (RapidMiner.splashMessage())
    2011-12-08 18:46:26 CONFIG: Default encoding is windows-1252. (RapidMiner.init())
    2011-12-08 18:46:26 CONFIG: Initializing Operators (RapidMiner.splashMessage())
    2011-12-08 18:46:26 CONFIG: Loading operators from 'OperatorsCore.xml'. (OperatorService.registerOperators())
    2011-12-08 18:46:26 CONFIG: Loading operator documentation from jar:file:/C:/Programme/Rapid-I/RapidMiner5/lib/rapidminer.jar!/com/rapidminer/resources/i18n/OperatorsCoreDocumentation.xml. (OperatorDocBundle$XMLControl.newBundle())
    2011-12-08 18:46:29 CONFIG: Loading operators from 'C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_text-5.0.4.jar'. (OperatorService.registerOperators())
    2011-12-08 18:46:29 CONFIG: Loading operator documentation from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_text-5.0.4.jar!/com/rapidminer/resources/i18n/OperatorsDocTextProcessing.xml. (OperatorDocBundle$XMLControl.newBundle())
    2011-12-08 18:46:29 CONFIG: Loading operators from 'C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_weka-5.0.0.jar'. (OperatorService.registerOperators())
    2011-12-08 18:46:29 CONFIG: Loading operator documentation from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_weka-5.0.0.jar!/com/rapidminer/resources/i18n/OperatorsDocWekaExtension.xml. (OperatorDocBundle$XMLControl.newBundle())
    2011-12-08 18:46:29 CONFIG: Creating operators from factory com.rapidminer.tools.WekaOperatorFactory (OperatorService.parseOperators())
    2011-12-08 18:46:33 CONFIG: Loading operators from 'C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_web-5.0.2.jar'. (OperatorService.registerOperators())
    2011-12-08 18:46:33 CONFIG: Loading operator documentation from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_web-5.0.2.jar!/com/rapidminer/resources/i18n/OperatorsDocWeb.xml. (OperatorDocBundle$XMLControl.newBundle())
    2011-12-08 18:46:33 CONFIG: Loading operators from 'C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_series-5.0.1.jar'. (OperatorService.registerOperators())
    2011-12-08 18:46:33 CONFIG: Loading operator documentation from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_series-5.0.1.jar!/com/rapidminer/resources/i18n/OperatorsDocValueSeries.xml. (OperatorDocBundle$XMLControl.newBundle())
    2011-12-08 18:46:34 CONFIG: Loading operators from 'C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_reporting-5.0.2.jar'. (OperatorService.registerOperators())
    2011-12-08 18:46:34 CONFIG: Loading operator documentation from jar:file:C:\Programme\Rapid-I\RapidMiner5\lib\plugins\managed\rmx_reporting-5.0.2.jar!/com/rapidminer/resources/i18n/OperatorsDocReporting.xml. (OperatorDocBundle$XMLControl.newBundle())
    2011-12-08 18:46:34 CONFIG: Number of registered operator classes: 542; number of registered operator descriptions: 678; number of replacements: 531 (OperatorService.init())
    2011-12-08 18:46:34 CONFIG: Loading operator usage statistics. (UsageStatistics.load())
    2011-12-08 18:46:34 CONFIG: Initializing XML Transformation Rules (RapidMiner.splashMessage())
    2011-12-08 18:46:34 CONFIG: Reading parse rules from jar:file:/C:/Programme/Rapid-I/RapidMiner5/lib/rapidminer.jar!/com/rapidminer/resources/parserules.xml (XMLImporter.importParseRules())
    2011-12-08 18:46:34 CONFIG: Initializing Data Repository (RapidMiner.splashMessage())
    2011-12-08 18:46:34 CONFIG: Loading repositories from C:\Dokumente und Einstellungen\Michael\.RapidMiner5\repositories.xml (RepositoryManager.load())
    2011-12-08 18:46:34 CONFIG: Adding repository NewLocalRepository (RepositoryManager.addRepository())
    2011-12-08 18:46:34 CONFIG: Adding repository D-Temp-RapidMinerRepository (RepositoryManager.addRepository())
    2011-12-08 18:46:34 CONFIG: Loading JDBC Drivers (RapidMiner.splashMessage())
    2011-12-08 18:46:34 CONFIG: Loading JDBC driver information from 'resource jdbc_properties.xml'. (DatabaseService.loadJDBCProperties())
    2011-12-08 18:46:34 CONFIG: Loaded JDBC driver com.mysql.jdbc.Driver (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 CONFIG: Loaded JDBC driver org.postgresql.Driver (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 CONFIG: Loaded JDBC driver net.sourceforge.jtds.jdbc.Driver (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 CONFIG: Loaded JDBC driver org.hsqldb.jdbcDriver (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 WARNING: Missing database driver class name for 'ODBC Bridge (e.g. Access)' (JDBCProperties.<init>())
    2011-12-08 18:46:34 CONFIG: Loaded JDBC driver net.sourceforge.jtds.jdbc.Driver (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 CONFIG: Loaded JDBC driver com.ingres.jdbc.IngresDriver (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 CONFIG: Loaded JDBC driver ca.ingres.jdbc.IngresDriver (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 INFO: JDBC driver COM.ibm.db2.jdbc.app.DB2Driver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 INFO: JDBC driver com.ibm.as400.access.AS400JDBCDriver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 INFO: JDBC driver com.ibm.db2.jcc.DB2Driver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 INFO: JDBC driver com.ibm.db2.jcc.DB2Driver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 INFO: JDBC driver com.microsoft.jdbc.sqlserver.SQLServerDriver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 CONFIG: Loaded JDBC driver jdbc.gupta.sqlbase.SqlbaseDriver (JDBCProperties.registerDrivers())
    2011-12-08 18:46:34 CONFIG: Initializing XML Serialization (RapidMiner.splashMessage())
    2011-12-08 18:46:34 CONFIG: Defining XML Serialization Alias Pairs (RapidMiner.splashMessage())
    2011-12-08 18:46:34 CONFIG: Initializing Renderers (RapidMiner.splashMessage())
    2011-12-08 18:46:34 CONFIG: Loading renderers from 'file:/C:/Programme/Rapid-I/RapidMiner5/lib/rapidminer.jar!/com/rapidminer/resources/ioobjects.xml'. (RendererService.init())
    2011-12-08 18:46:34 CONFIG: Loading renderers from 'ioobjects.xml'. (RendererService.init())
    [Fatal Error] :1:1: Content is not allowed in prolog.
    BUILD SUCCESSFUL (total time: 12 seconds)
  • michaelhechtmichaelhecht Member Posts: 89 Maven
    Now I got a little closer to the problem!

    I generated manually a new file with the only content:
    <?xml version="1.0" encoding="UTF-8"?>
    The result:

    ...
    [Fatal Error] :1:1: Content is not allowed in prolog.
    It seems that the error message is not appropriate to the error!
  • michaelhechtmichaelhecht Member Posts: 89 Maven
    ARRRGGGHHHH  ;D :( :-\

    Sometimes I really wonder if someone really reads the posts or not!

    Here is the quite simple solution of the quite stupid error:

    original code
    Process process = new Process(workflowPath);
    corrected code
    Process process = new Process(new File(workflowPath));
    Tomorrow I will send working code for the Jython version (for those who are interested).
    Extended: See http://rapid-i.com/rapidforum/index.php/topic,4408.0.html

    Best regards, Michael
  • Nils_WoehlerNils_Woehler Member Posts: 463 Maven
    Uh, that really was quit simple. Maybe too simple i haven't seen it either  :o
    But i'm glad you solved it!

    Cheers,
    Nils
Sign In or Register to comment.