Using Rapidminer in an Applet

Zdenek
Zdenek New Altair Community Member
edited November 5 in Community Q&A
Hi there,
I use some rapidminer operators in an applet, but when I tried to deploy, I get a plenty of security errors. For example, great problem is creating OperatorDescription, because I cant get ClassLoader.getSystemClassLoader() in an unsigned applet. Is there a way how to avoid using signed applets?
operatorDescription = new OperatorDescription(
  ClassLoader.getSystemClassLoader(),
  "DecisionTreeLearner",
  "com.rapidminer.operator.learner.tree.DecisionTreeLearner",
  "description can be written here", null, null, null);

Answers

  • land
    land New Altair Community Member
    Hi,
    did you try to avoid creating an OperatorDescription and instead create the Operator via OperatorService.createOperator(Operator.class)?

    Greetings,
      Sebastian
  • Zdenek
    Zdenek New Altair Community Member
    Yes, I have tried:
    OperatorService.createOperator(com.rapidminer.operator.learner.tree.DecisionTreeLearner.class);
    but I got only:
    com.rapidminer.operator.OperatorCreationException: 
          No operator description object given for 'com.rapidminer.operator.learner.tree.DecisionTreeLearner
          at com.rapidminer.tools.OperatorService.createOperator(OperatorService.java:429)
           ....
    I think the problem is don't call RapidMiner.init(); method, becase initializaton itself causes unsigned applet security exception.
    So the question should be probably reformulated to: How to initialize Rapidminer in an unsigned applet?