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

hascode.com | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

    hascode.com | 6 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