"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