ejstatd icon indicating copy to clipboard operation
ejstatd copied to clipboard

access denied RuntimePermission "setIO"

Open numberformat opened this issue 5 years ago • 0 comments

Got the following error after I started ejstatd and was unable to connect using visualvm then hit ctrl-C and got the below error.

$ java -version java version "1.8.0_221" Java(TM) SE Runtime Environment (build 1.8.0_221-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

$ mvn exec:java -Dexec.args="-pr 2222 -ph 2223 -pv 2224" [INFO] Scanning for projects... [INFO] [INFO] --------------------< com.github.anthony-o:ejstatd >-------------------- [INFO] Building ejstatd 1.0.0 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- exec-maven-plugin:1.5.0:java (default-cli) @ ejstatd ---

Some time later I press CTRL-C then I get this:

Exception in thread "Thread-0" java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "setIO") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) at java.security.AccessController.checkPermission(AccessController.java:886) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.System.checkIO(System.java:253) at java.lang.System.setOut(System.java:175) at org.fusesource.jansi.AnsiConsole.systemUninstall(AnsiConsole.java:295) at org.apache.maven.shared.utils.logging.MessageUtils.doSystemUninstall(MessageUtils.java:104) at org.apache.maven.shared.utils.logging.MessageUtils.access$100(MessageUtils.java:33) at org.apache.maven.shared.utils.logging.MessageUtils$1.run(MessageUtils.java:197)

numberformat avatar Nov 28 '19 23:11 numberformat