java.security.AccessControlException: access denied (“java.lang.RuntimePermission” “setDefaultUncaughtExceptionHandler”)

hascode.com | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    hasCode.com » Blog Archive » Elasticsearch Integration Testing with Java

    hascode.com | 5 months ago
    java.security.AccessControlException: access denied (“java.lang.RuntimePermission” “setDefaultUncaughtExceptionHandler”)

    Root Cause Analysis

    1. java.security.AccessControlException

      access denied (“java.lang.RuntimePermission” “setDefaultUncaughtExceptionHandler”)

      at org.apache.maven.surefire.junit4.JUnit4Provider.execute()
    2. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      4. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
      4 frames