Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
"Error: Unknown operator class: 'process'!"
Hello all.
I am new to RapidMiner program. I have written a program based on RapidMiner, but it came out an error I could not solve, although I tried all the method I knew.
I have already solved this problem, thanks for help!Here is my program. This program reads an xml file of a RapidMiner process, and try to run it.
G Oct 21, 2010 5:01:27 PM: [Error] Cannot register 'ExcelExampleSetWriter': java.lang.NoClassDefFoundError: jxl/format/CellFormat
G Oct 21, 2010 5:01:27 PM: [Error] Cannot register 'NeuralNet': java.lang.NoClassDefFoundError: org/joone/engine/NeuralNetListener
G Oct 21, 2010 5:01:27 PM: [Error] Cannot register 'NeuralNetSimple': java.lang.NoClassDefFoundError:
Second, I don't get this error. I have already import the package, why it still can not see Process class. Where is the "process" class instead of "Process" class?
com.rapidminer.tools.XMLException: Unknown operator class: 'process'!
at com.rapidminer.operator.Operator.createFromXML(Operator.java:1460)
at com.rapidminer.Process.readProcess(Process.java:859)
at com.rapidminer.Process.<init>(Process.java:168)
at com.Test.main(Test.java:48)
Best,
flyfire
I am new to RapidMiner program. I have written a program based on RapidMiner, but it came out an error I could not solve, although I tried all the method I knew.
I have already solved this problem, thanks for help!Here is my program. This program reads an xml file of a RapidMiner process, and try to run it.
import java.io.File;Here is the error log.
import com.rapidminer.Process;
import com.rapidminer.RapidMiner;
import com.rapidminer.example.ExampleSet;
import com.rapidminer.operator.IOContainer;
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
/*
* 配置一个Process工作的XML文件,这个文件可以在示例文件夹里挑选出一个来.
* 在这里我们用了最简单的读取样本的流程文件
*/
File file = new File("D:\\java\\Workspace\\RapidMinerTest\\src\\com\\rapidminer\\resources\\customs_Kmeans.xml");
System.setProperty("rapidminer.home", "E:\\Program Files\\Rapid-I\\RapidMiner5");
//System.setProperty("rapidminer.rcfile", "E:\\Program Files\\Rapid-I\\RapidMiner5\\resources\\com\\rapidminer\\resources\\rapidminerrc");
System.setProperty("rapidminer.init.weka","false");
RapidMiner.init();
//Process temp = RapidMiner.readProcessFile(file);
Process temp = new Process(file);
System.out.println("---------------");
IOContainer io = temp.run();
ExampleSet exampleSet = io.get(ExampleSet.class);
System.out.println("exampleSet:==============" );
System.out.println(exampleSet.getAttributes());
System.out.println("ExampleSource Operator:");
System.out.println(temp.getRootOperator().getOperator(0));
}catch(Exception e){
e.printStackTrace();
}
}
}
First, I don't get that why these errors show up. My project has include the path of rapidminer.jar, even xpp3.jar and xstream.jar.
G Oct 21, 2010 5:01:26 PM: rapidminer.home is 'E:\Program Files\Rapid-I\RapidMiner5'.
G Oct 21, 2010 5:01:26 PM: ----------------------------------------------------
G Oct 21, 2010 5:01:26 PM: Initialization Settings
G Oct 21, 2010 5:01:26 PM: ----------------------------------------------------
G Oct 21, 2010 5:01:26 PM: Default system encoding for IO: GBK
G Oct 21, 2010 5:01:26 PM: Load core operators...
G Oct 21, 2010 5:01:26 PM: Load Weka operators: weka not found
G Oct 21, 2010 5:01:26 PM: Load JDBC drivers from lib directory: true
G Oct 21, 2010 5:01:26 PM: Load JDBC drivers from classpath: false
G Oct 21, 2010 5:01:26 PM: Load plugins: true
G Oct 21, 2010 5:01:26 PM: Load plugins from 'E:\Program Files\Rapid-I\RapidMiner5\lib\plugins'
G Oct 21, 2010 5:01:26 PM: ----------------------------------------------------
G Oct 21, 2010 5:01:26 PM: Trying rcfile 'E:\Program Files\Rapid-I\RapidMiner5\etc\rapidminerrc'...skipped
G Oct 21, 2010 5:01:26 PM: Trying rcfile 'E:\Program Files\Rapid-I\RapidMiner5\etc\rapidminerrc.Windows 7'...skipped
G Oct 21, 2010 5:01:26 PM: Trying rcfile 'C:\Users\20\.rapidminer\4_4_0_rapidminerrc'...skipped
G Oct 21, 2010 5:01:26 PM: Trying rcfile 'C:\Users\20\.rapidminer\4_4_0_rapidminerrc.Windows 7'...skipped
G Oct 21, 2010 5:01:26 PM: Trying rcfile 'D:\java\Workspace\RapidMinerTest\rapidminerrc'...skipped
G Oct 21, 2010 5:01:26 PM: Trying rcfile 'D:\java\Workspace\RapidMinerTest\rapidminerrc.Windows 7'...skipped
G Oct 21, 2010 5:01:26 PM: Read rcfile 'E:\Program Files\Rapid-I\RapidMiner5\resources\com\rapidminer\resources\rapidminerrc'.
G Oct 21, 2010 5:01:26 PM: Loading operators from 'operators.xml'.
G Oct 21, 2010 5:01:27 PM: [Error] Cannot register 'ExcelExampleSetWriter': java.lang.NoClassDefFoundError: jxl/format/CellFormat
G Oct 21, 2010 5:01:27 PM: [Error] Cannot register 'NeuralNet': java.lang.NoClassDefFoundError: org/joone/engine/NeuralNetListener
G Oct 21, 2010 5:01:27 PM: [Error] Cannot register 'NeuralNetSimple': java.lang.NoClassDefFoundError: org/encog/neural/data/NeuralDataSet
G Oct 21, 2010 5:01:28 PM: Loading JDBC driver information from 'resources:jdbc_properties.xml'.
G Oct 21, 2010 5:01:28 PM: [Warning] Cannot register renderer: java.lang.NoClassDefFoundError: org/joone/engine/OutputPatternListener
G Oct 21, 2010 5:01:28 PM: [Warning] Cannot register renderer: java.lang.NoClassDefFoundError: org/encog/neural/data/NeuralData
com.rapidminer.tools.XMLException: Unknown operator class: 'process'!
at com.rapidminer.operator.Operator.createFromXML(Operator.java:1460)
at com.rapidminer.Process.readProcess(Process.java:859)
at com.rapidminer.Process.<init>(Process.java:168)
at com.Test.main(Test.java:48)
G Oct 21, 2010 5:01:27 PM: [Error] Cannot register 'ExcelExampleSetWriter': java.lang.NoClassDefFoundError: jxl/format/CellFormat
G Oct 21, 2010 5:01:27 PM: [Error] Cannot register 'NeuralNet': java.lang.NoClassDefFoundError: org/joone/engine/NeuralNetListener
G Oct 21, 2010 5:01:27 PM: [Error] Cannot register 'NeuralNetSimple': java.lang.NoClassDefFoundError:
Second, I don't get this error. I have already import the package, why it still can not see Process class. Where is the "process" class instead of "Process" class?
com.rapidminer.tools.XMLException: Unknown operator class: 'process'!
at com.rapidminer.operator.Operator.createFromXML(Operator.java:1460)
at com.rapidminer.Process.readProcess(Process.java:859)
at com.rapidminer.Process.<init>(Process.java:168)
at com.Test.main(Test.java:48)
Best,
flyfire
Tagged:
0
Answers
I seem to remember this coming up before, check out ...
http://rapid-i.com/rapidforum/index.php/topic,2367.0.html
Moreover there was some talk of providing a guide to application embedding; you'll have to pay when it emerges, but as they say, 'time is money' .
Good luck!
Thank you for your reply. I don't quite get the "pay" means. Isn't rapidminer an open-source software, there is something to pay but only the newest operators. However, here is the Process class, I think maybe it is not the "pay" problem.
I already include the rapidminer.jar, the xpp3.jar, the xstream.jar in my Eclipse Libraries set.
I have changed the rapidminer.jar from version 4.4 to version 5.0. It seemed to identify the class Process.
Here is the running message. Although it came out all red font, I could pass the following line. But when it came to this line, my program jumped to error catching part. The error message is:
java.lang.NullPointerException
at com.rapidminer.operator.clustering.clusterer.KMeans.generateClusterModel(KMeans.java:152)
at com.rapidminer.operator.clustering.clusterer.AbstractClusterer.doWork(AbstractClusterer.java:95)
at com.rapidminer.operator.Operator.execute(Operator.java:771)
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:368)
at com.rapidminer.operator.Operator.execute(Operator.java:771)
at com.rapidminer.Process.run(Process.java:899)
at com.rapidminer.Process.run(Process.java:795)
at com.rapidminer.Process.run(Process.java:790)
at com.rapidminer.Process.run(Process.java:780)
at com.Test.main(Test.java:99)
Does somebody know what does this means?
My original mining stream does work in the rapidminer GUI, so the xml file probably has no errors.
just to make it clear: RapidMiner is of course OpenSource (more exactly: AGPL3), but we offer the service to help you with the integration, which of course is not for free.
Are you trying to import an old RapidMiner 4.4 process to RapidMiner 5? This might cause some problems...
Greetings,
Sebastian