The operator class 'concurrency:cross_validation' is unknown. Possibly you must install a plugin..
Hi all,
I have used cross_validation operator in my RapidMiner process and it worked fine in RapidMiner studio but when I tried to run it using Java code then it results in errors stating "The operator class 'concurrency:cross_validation' is unknown. Possibly you must install a plugin for operators of group 'concurrency' ".
My Java code is:
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
RapidMiner.init();
Process process1 = new Process(new File(absoluteDiskPath + "/RM/FrequentlyImpactedBPA-Tcodes.rmp"));
Operator op1 = process1.getOperator("Read Excel Input-All Defect Reports");
op1.setParameter(ExcelExampleSource.PARAMETER_EXCEL_FILE,
absoluteDiskPath + "/Files/Input-All Defect Reports.xls");
Operator op2 = process1.getOperator("Write Excel");
op2.setParameter(ExcelExampleSource.PARAMETER_EXCEL_FILE,
absoluteDiskPath + "/Files/Output_Objective 1_ImpactedBPA__withTcodes.xlsx");
process1.run();
Process process6 = new Process(new File(absoluteDiskPath + "/RM/Classification prediction model.rmp"));
Operator op3 = process6.getOperator("Read Excel - passfail");
op3.setParameter(ExcelExampleSource.PARAMETER_EXCEL_FILE,
absoluteDiskPath + "/Files/passfail.xlsx");
Operator op4 = process6.getOperator("Read Excel - Input-All Defect Reports.xls");
op4.setParameter(ExcelExampleSource.PARAMETER_EXCEL_FILE,
absoluteDiskPath + "/Files/Input-All Defect Reports.xls");
Operator op5 = process6.getOperator("Write Excel");
op5.setParameter(ExcelExampleSource.PARAMETER_EXCEL_FILE,
StockFile + "/Output - Classification prediction model.xlsx");
process6.run();
And logs for your reference:
Mar 03, 2017 12:29:37 PM com.rapidminer.tools.I18N <clinit>
INFO: Set locale to en.
Mar 03, 2017 12:29:38 PM com.rapidminer.tools.PlatformUtilities logInfo
INFO: rapidminer.home is 'D:\555362\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\IqAnalytics\WEB-INF'.
Mar 03, 2017 12:29:38 PM com.rapidminer.core.license.ProductConstraintManager initialize
INFO: Initializing license manager.
Mar 03, 2017 12:29:38 PM com.rapidminer.core.license.ProductConstraintManager initialize
INFO: Using default license location.
Mar 03, 2017 12:29:38 PM com.rapidminer.core.license.ProductConstraintManager initialize
INFO: Registering default product.
Mar 03, 2017 12:30:12 PM com.rapidminer.tools.WrapperLoggingHandler log
INFO: No filename given for result file, using stdout for logging results!
Mar 03, 2017 12:30:12 PM com.rapidminer.Process run
INFO: Process \555362\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\IqAnalytics\WEB-INF\RM\FrequentlyImpactedBPA-Tcodes.rmp starts
Mar 03, 2017 12:30:14 PM com.rapidminer.Process run
INFO: Process \555362\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\IqAnalytics\WEB-INF\RM\FrequentlyImpactedBPA-Tcodes.rmp finished successfully after 1 s
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The operator class 'concurrency:cross_validation' is unknown. Possibly you must install a plugin for operators of group 'concurrency'.</em>
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter parseOperator
INFO: The parameter 'split_on_batch_attribute' is unknown for operator 'Cross Validation' (" dummy ")."
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter parseOperator
INFO: The parameter 'leave_one_out' is unknown for operator 'Cross Validation' (" dummy ")."
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter parseOperator
INFO: The parameter 'number_of_folds' is unknown for operator 'Cross Validation' (" dummy ")."
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter parseOperator
INFO: The parameter 'sampling_type' is unknown for operator 'Cross Validation' (" dummy ")."
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter parseOperator
INFO: The parameter 'use_local_random_seed' is unknown for operator 'Cross Validation' (" dummy ")."
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter parseOperator
INFO: The parameter 'local_random_seed' is unknown for operator 'Cross Validation' (" dummy ")."
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter parseOperator
INFO: The parameter 'enable_parallel_execution' is unknown for operator 'Cross Validation' (" dummy ")."
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">Operator '<class>dummy</class>' may not have children. Ignoring.
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">Operator '<class>dummy</class>' may not have children. Ignoring.
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The input port <var>example set</var> is unknown at operator <var>Cross Validation</var>.</em>
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The output port <var>model</var> is unknown at operator <var>Cross Validation</var>.</em>
Mar 03, 2017 12:30:14 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The output port <var>performance 1</var> is unknown at operator <var>Cross Validation</var>.</em>
Mar 03, 2017 12:30:14 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet com.cts.iq.rapidminer.TestIntegration threw exception
java.lang.NullPointerException
at com.cts.iq.rapidminer.TestIntegration.doGet(TestIntegration.java:125)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
at com.cts.iq.servlet.TestInsightResults.doGet(TestInsightResults.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:958)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Mar 03, 2017 12:30:14 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [com.cts.iq.servlet.TestInsightResults] in context with path [/IqAnalytics] threw exception
java.lang.NullPointerException
at com.cts.iq.rapidminer.TestIntegration.doGet(TestIntegration.java:125)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
at com.cts.iq.servlet.TestInsightResults.doGet(TestInsightResults.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:958)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Kindly help with the solution
Answers
-
Are you running RapidMiner Server 7.3? The Concurrency Extension needs to be installed manually as it is not bundled. RapidMiner Server 7.4 has it bundled automatically.
0 -
Hi,
the problem is rather simple: Operators inside the "concurrency:" extension are not Open Source. Therefore they are not available if you use Studio as a library, unless you acquire an OEM license.
Regards,
Marco
1 -
Hi
I tried with RapidMiner Studio 7.4, but the problem is still same. Can you tell me how to install concurrency plugin manually.
1 -
Hi,
Can you share me the procurement procedure for OEM licence.
Thank You,
Poonam Saini0 -
You would need to contact our Sales department. https://rapidminer.com/us/contact-us/
0 -
I've got the same problem, after added external Rapidminer jar files, my little program (similar to the posted one) works fine within Eclipse. But when I create a runnable jar, it isn't working, I got the same exception. What's the solution for this?
0