Options

Problem(Helppp)!

platanas20platanas20 Member Posts: 22 Contributor II
edited November 2018 in Help
Hi all again,

I have created a RapidMiner project which i use ''Read Document'' operator and some others.I have built java code in order to run the this project.As result i take these errors:
run:
Oct 13, 2011 1:41:07 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Property rapidminer.home is not set. Guessing.
Oct 13, 2011 1:41:07 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of 'C:\Program Files\Rapid-I\RapidMiner5\lib\rapidminer.jar'...gotcha!
Oct 13, 2011 1:41:07 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Oct 13, 2011 1:41:09 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Oct 13, 2011 1:41:09 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for 'ODBC Bridge (e.g. Access)'
Oct 13, 2011 1:41:09 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Oct 13, 2011 1:41:09 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
Oct 13, 2011 1:41:11 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The operator class 'text:read_document' is unknown. Possibly you must install a plugin for operators of group 'text'.</em>
Oct 13, 2011 1:41:11 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The output port <var>output</var> is unknown at operator <var>Read Document</var>.</em>
Oct 13, 2011 1:41:11 PM com.rapidminer.tools.WrapperLoggingHandler log
INFO: No filename given for result file, using stdout for logging results!
Oct 13, 2011 1:41:11 PM com.rapidminer.Process run
INFO: Process C:\Users\platanas\Desktop\diplomatiki\Rapid Miner Java\RM2 (1)\RM2\demoprocess.rmp starts
Oct 13, 2011 1:41:11 PM com.rapidminer.tools.WrapperLoggingHandler logWarning
WARNING: Example set has no nominal label: using shuffled partition instead of stratified partition!
Oct 13, 2011 1:41:11 PM NewJFrame jButton1ActionPerformed
SEVERE: null
com.rapidminer.operator.UserError: The dummy operator Read Document (replacing text:read_document) cannot be executed.
        at com.rapidminer.operator.DummyOperator.doWork(DummyOperator.java:88)
        at com.rapidminer.operator.Operator.execute(Operator.java:831)
        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:831)
        at com.rapidminer.Process.run(Process.java:902)
        at com.rapidminer.Process.run(Process.java:798)
        at com.rapidminer.Process.run(Process.java:793)
        at com.rapidminer.Process.run(Process.java:783)
        at NewJFrame.jButton1ActionPerformed(NewJFrame.java:89)
        at NewJFrame.access$000(NewJFrame.java:23)
        at NewJFrame$1.actionPerformed(NewJFrame.java:48)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6041)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5806)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4413)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4243)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2440)
        at java.awt.Component.dispatchEvent(Component.java:4243)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
When i delete the operator ''Read Document'' the project in java runs correctly.Does anuone know wheere i can find the problem??
Tagged:

Answers

  • Options
    Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University Professor Posts: 1,995 RM Engineering
    Hi,

    RapidMiner cannot find the TextProcessing extension and therefore replaces the Read Document operator with the dummy operator. Make sure to include the TextProcessing extension in your project.

    Regards,
    Marco
  • Options
    kersorkersor Member Posts: 26 Maven
    hi,

    When i use the read document procces in a java application i have the problem:

    WARNING: Caught exception in concurrent execution of Read Document (Read Document): java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1.

    I change the encoding to ansi,utf-8 but  nothing.

    Any suggestions??
  • Options
    Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University Professor Posts: 1,995 RM Engineering
    Hi,

    do you have by chance selected "parallelize main process"? It looks like the Parallelize Processing extension has a problem there. You might want to try it without any parallelization to see if it works.
    Apart from that, please post the full stack trace here.

    Regards,
    Marco
Sign In or Register to comment.