Permissions on Mac

This topic contains 0 replies, has 1 voice, and was last updated by  TheWireMaster 1 month, 1 week ago.

  • Author
    Posts
  • #10583
     TheWireMaster 
    Keymaster

    This may be useful to others.
    I was trying to deploy a simple contract on my Mac and I got this error:

    Exception in thread “main” java.lang.ExceptionInInitializerError
    at org.eclipse.jetty.server.AbstractConnector.(AbstractConnector.java:201)
    at org.eclipse.jetty.server.AbstractNetworkConnector.
    (AbstractNetworkConnector.java:44)
    at org.eclipse.jetty.server.ServerConnector.
    (ServerConnector.java:219)
    at org.eclipse.jetty.server.ServerConnector.
    (ServerConnector.java:142)
    at nxt.http.API.(API.java:161)
    at nxt.configuration.SubSystem$7.init(SubSystem.java:174)
    at java.base/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
    at nxt.Nxt$Init.init(Nxt.java:418)
    at nxt.Nxt$Init.access$000(Nxt.java:408)
    at nxt.Nxt.init(Nxt.java:393)
    at nxt.tools.ContractManager.main(ContractManager.java:169)
    Caused by: java.security.AccessControlException: access denied (“java.lang.RuntimePermission” “getenv.JETTY_AVAILABLE_PROCESSORS”)
    at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
    at java.base/java.security.AccessController.checkPermission(AccessController.java:895)
    at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
    at java.base/java.lang.System.getenv(System.java:993)
    at org.eclipse.jetty.util.ProcessorUtils.init(ProcessorUtils.java:34)
    at org.eclipse.jetty.util.ProcessorUtils.
    (ProcessorUtils.java:30)
    … 11 more

    Riker answered:

    It’s an issue with permissions on Mac. Add the following line to nxt.properties to disable these security checks for now nxt.disableSecurityPolicy=true

    that solved the problem.

You must be logged in to reply to this topic.

©2019 Ardor Rocks

or

Log in with your credentials

or    

Forgot your details?

or

Create Account