Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access denied RuntimePermission "setIO" #2

Open
numberformat opened this issue Nov 28, 2019 · 0 comments
Open

access denied RuntimePermission "setIO" #2

numberformat opened this issue Nov 28, 2019 · 0 comments

Comments

@numberformat
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant