"Using TextInput in Java app (No operator description object given)"
Jens
New Altair Community Member
Hi,
I built a small Java application (actually the code is Groovy, but that shouldn't have an effect) which uses the Textinput and it worked fine while Rapidminer 4.1 and Textplugin 4.0beta.
I upgraded to 4.2 (Rapidminer and Text Plugin) and receive now the error log message
G Nov 2, 2008 10:14:49 PM: Property rapidminer.home is not set. Guessing.
G Nov 2, 2008 10:14:49 PM: Trying parent directory of 'D:\Applications\RapidMiner-4.2\lib\rapidminer.jar'...gotcha!
G Nov 2, 2008 10:14:49 PM: Trying base directory of classes (build) 'D:\workspace\eclipse_workspace\TestRapidMiner'...gotcha!
G Nov 2, 2008 10:14:49 PM: ----------------------------------------------------
G Nov 2, 2008 10:14:49 PM: Initialization Settings
G Nov 2, 2008 10:14:49 PM: ----------------------------------------------------
G Nov 2, 2008 10:14:49 PM: Default system encoding for IO: windows-1252
G Nov 2, 2008 10:14:49 PM: Load core operators...
G Nov 2, 2008 10:14:49 PM: Load Weka operators: weka not found
G Nov 2, 2008 10:14:49 PM: Load JDBC drivers from lib directory: false
G Nov 2, 2008 10:14:49 PM: Load JDBC drivers from classpath: false
G Nov 2, 2008 10:14:49 PM: Load plugins: true
G Nov 2, 2008 10:14:49 PM: Load plugins from 'D:\workspace\eclipse_workspace\TestRapidMiner\lib\plugins'
G Nov 2, 2008 10:14:49 PM: ----------------------------------------------------
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\workspace\eclipse_workspace\TestRapidMiner\etc\rapidminerrc'...skipped
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\workspace\eclipse_workspace\TestRapidMiner\etc\rapidminerrc.Windows Vista'...skipped
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\.rapidminer\4_2_0_rapidminerrc'...skipped
G Nov 2, 2008 10:14:49 PM: Read rcfile 'D:\.rapidminer\4_2_0_rapidminerrc.Windows Vista'.
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\workspace\eclipse_workspace\TestRapidMiner\rapidminerrc'...skipped
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\workspace\eclipse_workspace\TestRapidMiner\rapidminerrc.Windows Vista'...skipped
G Nov 2, 2008 10:14:49 PM: Trying rapidminer.rcfile. Property not specified...skipped
G Nov 2, 2008 10:14:49 PM: Loading operators from 'operators.xml'.
G Nov 2, 2008 10:14:50 PM: Loading JDBC driver information from 'resources:jdbc_properties.xml'.
com.rapidminer.operator.OperatorCreationException: No operator description object given for 'TextInput'
at com.rapidminer.tools.OperatorService.createOperator(OperatorService.java:531)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1105)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:749)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
at runProcess1.run(runProcess1.groovy:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:778)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
at org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:401)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1105)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:749)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
at runProcess1.main(runProcess1.groovy)
I reduced the code to the essential part.
Jens
I built a small Java application (actually the code is Groovy, but that shouldn't have an effect) which uses the Textinput and it worked fine while Rapidminer 4.1 and Textplugin 4.0beta.
I upgraded to 4.2 (Rapidminer and Text Plugin) and receive now the error log message
G Nov 2, 2008 10:14:49 PM: Property rapidminer.home is not set. Guessing.
G Nov 2, 2008 10:14:49 PM: Trying parent directory of 'D:\Applications\RapidMiner-4.2\lib\rapidminer.jar'...gotcha!
G Nov 2, 2008 10:14:49 PM: Trying base directory of classes (build) 'D:\workspace\eclipse_workspace\TestRapidMiner'...gotcha!
G Nov 2, 2008 10:14:49 PM: ----------------------------------------------------
G Nov 2, 2008 10:14:49 PM: Initialization Settings
G Nov 2, 2008 10:14:49 PM: ----------------------------------------------------
G Nov 2, 2008 10:14:49 PM: Default system encoding for IO: windows-1252
G Nov 2, 2008 10:14:49 PM: Load core operators...
G Nov 2, 2008 10:14:49 PM: Load Weka operators: weka not found
G Nov 2, 2008 10:14:49 PM: Load JDBC drivers from lib directory: false
G Nov 2, 2008 10:14:49 PM: Load JDBC drivers from classpath: false
G Nov 2, 2008 10:14:49 PM: Load plugins: true
G Nov 2, 2008 10:14:49 PM: Load plugins from 'D:\workspace\eclipse_workspace\TestRapidMiner\lib\plugins'
G Nov 2, 2008 10:14:49 PM: ----------------------------------------------------
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\workspace\eclipse_workspace\TestRapidMiner\etc\rapidminerrc'...skipped
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\workspace\eclipse_workspace\TestRapidMiner\etc\rapidminerrc.Windows Vista'...skipped
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\.rapidminer\4_2_0_rapidminerrc'...skipped
G Nov 2, 2008 10:14:49 PM: Read rcfile 'D:\.rapidminer\4_2_0_rapidminerrc.Windows Vista'.
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\workspace\eclipse_workspace\TestRapidMiner\rapidminerrc'...skipped
G Nov 2, 2008 10:14:49 PM: Trying rcfile 'D:\workspace\eclipse_workspace\TestRapidMiner\rapidminerrc.Windows Vista'...skipped
G Nov 2, 2008 10:14:49 PM: Trying rapidminer.rcfile. Property not specified...skipped
G Nov 2, 2008 10:14:49 PM: Loading operators from 'operators.xml'.
G Nov 2, 2008 10:14:50 PM: Loading JDBC driver information from 'resources:jdbc_properties.xml'.
com.rapidminer.operator.OperatorCreationException: No operator description object given for 'TextInput'
at com.rapidminer.tools.OperatorService.createOperator(OperatorService.java:531)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1105)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:749)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
at runProcess1.run(runProcess1.groovy:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:778)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
at org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:401)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1105)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:749)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
at runProcess1.main(runProcess1.groovy)
I reduced the code to the essential part.
I'm sure someelse had the same problem before, but I wasn't able to find a post describing this.
import com.rapidminer.RapidMiner;
import com.rapidminer.Process;
import com.rapidminer.operator.*;
import com.rapidminer.tools.OperatorService;
RapidMiner.init(false, false, false, true);
OperatorChain textInput = (OperatorChain) OperatorService.createOperator("TextInput");
Jens
0
Answers
-
I was able to solve the problem, the property rapidminer.home system property was not pointing to the right directory
System.setProperty("rapidminer.home", "D:\\Applications\\RapidMiner-4.2");
0