Exception: java.security.AccessControlException

royapurba007
royapurba007 New Altair Community Member
edited November 5 in Community Q&A

Hello All,

 

I am trying to run a simple viola jones algorithm for detecting human eyes in the images using RapidMiner's Fast Haar Detector operator. 

But, unfortunately I'm getting error like,

 

Exception: java.security.AccessControlException
Message: access denied ("java.lang.RuntimePermission" "modifyThread")
Stack trace:

java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
java.security.AccessController.checkPermission(AccessController.java:884)
java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
com.rapidminer.security.PluginSecurityManager.checkPermission(PluginSecurityManager.java:42)
java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess(ThreadPoolExecutor.java:742)
java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:1397)
com.burgsys.image.core.parallel.Parallel.ForEachFeature(Parallel.java:54)
com.burgsys.image.core.detector.Adaboost.thresholdFunction(Adaboost.java:129)
com.burgsys.image.core.detector.Adaboost.trainFast(Adaboost.java:75)
com.burgsys.image.core.ioobjects.DetectorFastIOObject.selectFeatures(DetectorFastIOObject.java:70)
com.burgsys.image.op.detector.OperatorDetectorFast.doWork(OperatorDetectorFast.java:72)
com.rapidminer.operator.Operator.execute(Operator.java:1004)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:428)
com.rapidminer.operator.Operator.execute(Operator.java:1004)
com.rapidminer.Process.execute(Process.java:1310)
com.rapidminer.Process.run(Process.java:1285)
com.rapidminer.Process.run(Process.java:1176)
com.rapidminer.Process.run(Process.java:1129)
com.rapidminer.Process.run(Process.java:1124)
com.rapidminer.Process.run(Process.java:1114)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)

 

The process XML is as follows,

<?xml version="1.0" encoding="UTF-8"?><process version="8.1.001">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="6.0.002" expanded="true" name="Process">
<process expanded="true">
<operator activated="true" class="image:read_image_set" compatibility="7.0.000" expanded="true" height="68" name="Read Image Set" width="90" x="313" y="85">
<list key="categories">
<parameter key="positive" value="C:\Users\U708980\Desktop\eye-detection-data\positive"/>
<parameter key="negative" value="C:\Users\U708980\Desktop\eye-detection-data\negative"/>
</list>
</operator>
<operator activated="true" class="image:Fast_Haar_detector" compatibility="7.0.000" expanded="true" height="68" name="Fast Haar Detector" width="90" x="514" y="34">
<parameter key="number_of_features" value="500"/>
<parameter key="window_width" value="20"/>
<parameter key="window_height" value="15"/>
<parameter key="cascade_threshold_change" value="30"/>
</operator>
<operator activated="true" class="image:read_image" compatibility="7.0.000" expanded="true" height="68" name="Read Image" width="90" x="514" y="391">
<parameter key="source_file" value="C:\Users\U708980\Desktop\eye-detection-data\test\3.jpg"/>
</operator>
<operator activated="true" class="legacy:write_model" compatibility="8.1.001" expanded="true" height="68" name="Write Model" width="90" x="715" y="34">
<parameter key="model_file" value="C:\Users\U708980\Desktop\eye.mod"/>
</operator>
<operator activated="true" class="image:Apply_detector" compatibility="7.0.000" expanded="true" height="82" name="Apply Detector" width="90" x="916" y="85">
<parameter key="base_scale" value="1.0"/>
<parameter key="maximal_scale" value="20.0"/>
<parameter key="detection_post-processing" value="number_of_the_best_detections "/>
<parameter key="number_of_detections" value="2.0"/>
</operator>
<operator activated="true" class="image:Interest_point_visualizer" compatibility="7.0.000" expanded="true" height="82" name="ROI Visualizer" width="90" x="1050" y="289"/>
<connect from_op="Read Image Set" from_port="collection of images" to_op="Fast Haar Detector" to_port="collection of images"/>
<connect from_op="Fast Haar Detector" from_port="Detector" to_op="Write Model" to_port="input"/>
<connect from_op="Read Image" from_port="output" to_op="Apply Detector" to_port="image"/>
<connect from_op="Write Model" from_port="through" to_op="Apply Detector" to_port="Detector"/>
<connect from_op="Apply Detector" from_port="RoI" to_op="ROI Visualizer" to_port="RoI"/>
<connect from_op="Apply Detector" from_port="image" to_op="ROI Visualizer" to_port="image"/>
<connect from_op="ROI Visualizer" from_port="image" to_port="result 1"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="0"/>
</process>
</operator>
</process>

 

Could somebody please help me in solving this??

 

Regards,

Apurba Roy

 

 

 

 

 

Answers

  • sgenzer
    sgenzer
    Altair Employee

    hello @royapurba007 welcome to the community. Unfortunately that image processing extension is VERY old, rather buggy, and not currently supported. Hence I am not surprised at all that you're getting error messages.

     

    However I believe that my friends in RapidMiner Research are playing around with this to see how it can be improved. I'm tagging my friend @pschlunder in hopes he can chime in...

     

    Scott

     

  • royapurba007
    royapurba007 New Altair Community Member

    Thank you!! 

     

    Regards,

    Apurba Roy

  • pschlunder
    pschlunder New Altair Community Member

    Hi @royapurba007,

    the extension is a bit older and still uses an older way of performing parallelization, and it looks like the error is caused by that. Try disabling the "parallel process" option and check if it works afterwards and please let me know.

     

    Regards,

    Philipp

     
  • royapurba007
    royapurba007 New Altair Community Member

    Hello @pschlunder,

     

    Unfortunately, It's throwing the same error even after disabling the parallel processing option!!

     

    RM.png

     

    Regards,

    Roy

  • pschlunder
    pschlunder New Altair Community Member

    Hi @royapurba007,

    I'm sorry to hear that. I'd like to look into the code to provide more information or a potential solution, but right now I don't have access to it, since the extension is not developed by us. I might be able to get access but this might take a while.

     

    But there is one more thing you can try: If you have a large license (or I guess the trial license for Auto Model should also work) you grant extra permissions to unsigned extensions in the RapidMiner settings, as displayed in the following screenshot:

    additional_rights.PNG

    Make sure to apply the changes and restart Studio after checking the "Grant additional permissions" option.

     

    Regards,

    Philipp

     
  • xesuspablo_gonz
    xesuspablo_gonz New Altair Community Member

    Is there any solution for an educational licence?

    It was supposed an educational licence there has no limitations, but I cannot grant permisions to unsigned extensions...

    :(

  • sgenzer
    sgenzer
    Altair Employee

    hello @xesuspablo_gonz - so just to be clear, educational licenses do indeed have limitations. Please see our information page here: https://rapidminer.com/educational-program/

     

    Scott