AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")

15 views
Skip to first unread message

SHARAD GARG

unread,
Mar 11, 2019, 10:11:48 AM3/11/19
to Marathon Java GUI Testing
Picked up JAVA_TOOL_OPTIONS: -DkeepLog=false -Dmarathon.launch.mode=applet -Dmarathon.mode=recording -Dstart.window.title="Applet Viewer: SwingSet3Init.class" -Dmarathon.agent=file:marathonv5/marathon-java/marathon-java-agent/build/libs/marathon-java-agent-5.2.5.0.jar -javaagent:"marathonv5/marathon-java/marathon-java-agent/build/libs/marathon-java-agent-5.2.5.0.jar"=38675 -Dmarathon.recorder=file:marathonv5/marathon-java/marathon-java-recorder/build/libs/marathon-java-recorder-5.2.5.0.jar  -javaagent:"marathonv5/marathon-java/marathon-java-recorder/build/libs/marathon-java-recorder-5.2.5.0.jar"=39084
    Mar 11, 2019 9:58:03 AM net.sourceforge.marathon.javaagent.JavaAgentHook$1 eventDispatched
    INFO: Checking for window: Thread[AWT-EventQueue-0,6,main]
    Mar 11, 2019 9:58:03 AM net.sourceforge.marathon.javaagent.JavaAgentHook$1$1 run
    INFO: JavaVersion: 1.8.0_60
    Exception in thread "AWT-EventQueue-0" java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.security.AccessController.checkPermission(AccessController.java:884)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at sun.applet.AppletSecurity.checkAccess(AppletSecurity.java:250)
        at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:315)
        at java.lang.Thread.init(Thread.java:391)
        at java.lang.Thread.init(Thread.java:349)
        at java.lang.Thread.<init>(Thread.java:461)
        at fi.iki.elonen.NanoHTTPD.start(NanoHTTPD.java:2322)
        at fi.iki.elonen.NanoHTTPD.start(NanoHTTPD.java:2304)
        at net.sourceforge.marathon.javaagent.JavaAgentHook$1$1.run(JavaAgentHook.java:80)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.marathon.javaagent.JavaAgentHook$1.eventDispatched(JavaAgentHook.java:69)


Getting this error on doing "./gradlew build" for marathon v5. Am I missing something here? 

Thanks,
Sharad

Dakshinamurthy Karra

unread,
Mar 11, 2019, 10:17:00 AM3/11/19
to marathon...@googlegroups.com
I guess the tests are failing because you didn’t setup java security. Build it with -x test to exclude tests. 

--
Looking for professional help with your Marathon projects?
Go visit: http://marathontesting.com
---
You received this message because you are subscribed to the Google Groups "Marathon Java GUI Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marathon-testi...@googlegroups.com.
To post to this group, send email to marathon...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail Mobile on iPhone.

SHARAD GARG

unread,
Mar 12, 2019, 3:07:18 AM3/12/19
to Marathon Java GUI Testing
Thanks. I am able to build now. 

How do I launch marathon after building it? The documentation link doesn't seem to be working. https://marathontesting.com/marathonite-user-guide/preface/
Reply all
Reply to author
Forward
0 new messages