RM says: my operator is a dummy Operator!!!

siamak_want
siamak_want New Altair Community Member
edited November 5 in Community Q&A
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:

...
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?

Answers

  • Nils_Woehler
    Nils_Woehler New Altair Community Member
    Hi,

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

    Best,
    Nils
  • siamak_want
    siamak_want New Altair Community Member
    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
  • siamak_want
    siamak_want New Altair Community Member
    Is there anyone who can help me solve my problem please?
  • Nils_Woehler
    Nils_Woehler New Altair Community Member
    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
  • siamak_want
    siamak_want New Altair Community Member
    Thank you Nils.