Pages: [1]
  Print  
Author Topic: RM says: my operator is a dummy Operator!!!  (Read 512 times)
siamak_want
Jr. Member
**
Posts: 87


« on: August 04, 2012, 12:47:59 PM »

Hi,

I have developed my own operator for RM and it works in RM like a charm. Now, I want to call a process which contains my own operator from my java program. But RM says:
Code:
...
com.rapidminer.operator.UserError: The dummy operator MClusterValidator (replacing tutorial:MClusterValidator) cannot be executed.

As I mentioned previously, my operator MClusterValidator works well in RM. but I am not able to call it from my own java program!!! It has made me so confused. Any Idea please?
Logged
Nils
Administrator
Sr. Member
*****
Posts: 334


« Reply #1 on: August 06, 2012, 11:30:13 AM »

Hi,

did you call RapidMiner.init() before executing the process? Plugins need to be initiated before you can use them.

Best,
Nils
Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
siamak_want
Jr. Member
**
Posts: 87


« Reply #2 on: August 07, 2012, 06:10:37 AM »

Hi Nils,

Thanks for your guide. I have called rapidminer.init().  I changed the ExecutionMode to "EMBEDDED_WITHOUT_UI" and RM find my plugins and works fine. I mean When I change the ExecutionMode to "EMBEDDED_WITH_UI" my plugins are not identified by RM. Do you know what is the difference between these two execution modes and where is the problem?

Thanks again
« Last Edit: October 11, 2012, 12:36:31 PM by siamak_want » Logged
siamak_want
Jr. Member
**
Posts: 87


« Reply #3 on: October 11, 2012, 12:37:50 PM »

Is there anyone who can help me solve my problem please?
Logged
Nils
Administrator
Sr. Member
*****
Posts: 334


« Reply #4 on: October 11, 2012, 01:33:31 PM »

Hi,

the difference between both modes is that EMBEDDED_WIHTOUT_UI is headless whereas EMBEDDED_WITH_UI is not headless.
It shouldn't change anything regarding plugin loading. So I have to admit I don't know what causes these error but you can have a look yourself at RapidMiner.java line 111.
There ExecutionMode is defined. Furthermore you can try to call Plugin.setInitPlugins(true); before RapidMiner.init()

Best,
Nils
« Last Edit: October 11, 2012, 04:48:20 PM by Nils » Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
siamak_want
Jr. Member
**
Posts: 87


« Reply #5 on: October 29, 2012, 02:40:09 PM »

Thank you Nils.
Logged
Pages: [1]
  Print  
 
Jump to: