java.lang.ExceptionInInitializerError

Terracotta Project Issue Tracker | Kalai Kannaiyan | 9 years ago
  1. 0

    Tested with 2.5.1 rev 6645, with tc.management.mbeans.enabled = true/false and with authentication ON Steps: 1. Logon to perf03 machine (l2 machine) 2. Navigate to tc-config.xml location folder -> /shares/perf/perfTests2/tests/tims/setup/lawton> 3. Edit the tc-config.xml file with <servers> <server> <data>....</data> <logs>....</logs> <authentication> <password-file>/export1/bench/perfTests/jmxremote.password</password-file> <access-file>/export1/bench/perfTests/jmxremote.access</access-file> </authentication> </server> 4. Copy the jmxremote.access and jmxremote.password.template from to tc-config.xml location folder -> cp /usr/java/jdk1.5.0_12/jre/lib/management/jmxremote.access . cp /usr/java/jdk1.5.0_12/jre/lib/management/jmxremote.password.template . 5. rename jmxremote.password.template to jmxremote.password -> mv jmxremote.password.template jmxremote.password 6. chmod +w jmxremote.password 7. Edit the jmxremote.password file -> add myusername mypassword line at the end of this file 8. Edit the jmxremote.access file -> add myusername readwrite line at the end of this file 9. Copy the jmxremote.password and mxremote.access files to /export1/bench/perfTests 10. Launch the tims test with mbeans enabled 11. Launch the admin console and click the connect 12. Authentication window is displayed 13. Enter the username: myusername and password: mypassword 15. successfully connected to the admin console 14. Launch the jconsole 15. In the Jconsole, select the Remote connection and enter perf:terracotta.lan:9520, username: myusername and password: mypassword Actual: Connection failed: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: com.tc.management.L2Management$BindAddrSocketFactory (no security manager: RMI class loader disabled) are displayed in the Jconsole window 16. Added the java-options on the server -Djava.security.manager -> Navigate to /shares/perf/perfTests2/tests/tims/setup/ and edit the defaultValues file default_l2_java_options> -Xms2g -Xmx2g -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+HeapDumpOnOutOfMemoryError -Dtc.stage.monitor=true -Dtc.stage.monitor.delay=2000 -Dcom.sun.management.jmxremote -Djava.security.manager 17. Repeat the above steps 10 to 15 Actual: Exception in thread "main" java.lang.ExceptionInInitializerError at com.tc.server.TCServerMain.main(TCServerMain.java:17) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.Thread.setContextClassLoader(Thread.java:1306) at com.tc.logging.TCLogging.<clinit>(TCLogging.java:363) ... 1 more

    Terracotta Project Issue Tracker | 9 years ago | Kalai Kannaiyan
    java.lang.ExceptionInInitializerError
  2. 0

    Tested with 2.5.1 rev 6645, with tc.management.mbeans.enabled = true/false and with authentication ON Steps: 1. Logon to perf03 machine (l2 machine) 2. Navigate to tc-config.xml location folder -> /shares/perf/perfTests2/tests/tims/setup/lawton> 3. Edit the tc-config.xml file with <servers> <server> <data>....</data> <logs>....</logs> <authentication> <password-file>/export1/bench/perfTests/jmxremote.password</password-file> <access-file>/export1/bench/perfTests/jmxremote.access</access-file> </authentication> </server> 4. Copy the jmxremote.access and jmxremote.password.template from to tc-config.xml location folder -> cp /usr/java/jdk1.5.0_12/jre/lib/management/jmxremote.access . cp /usr/java/jdk1.5.0_12/jre/lib/management/jmxremote.password.template . 5. rename jmxremote.password.template to jmxremote.password -> mv jmxremote.password.template jmxremote.password 6. chmod +w jmxremote.password 7. Edit the jmxremote.password file -> add myusername mypassword line at the end of this file 8. Edit the jmxremote.access file -> add myusername readwrite line at the end of this file 9. Copy the jmxremote.password and mxremote.access files to /export1/bench/perfTests 10. Launch the tims test with mbeans enabled 11. Launch the admin console and click the connect 12. Authentication window is displayed 13. Enter the username: myusername and password: mypassword 15. successfully connected to the admin console 14. Launch the jconsole 15. In the Jconsole, select the Remote connection and enter perf:terracotta.lan:9520, username: myusername and password: mypassword Actual: Connection failed: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: com.tc.management.L2Management$BindAddrSocketFactory (no security manager: RMI class loader disabled) are displayed in the Jconsole window 16. Added the java-options on the server -Djava.security.manager -> Navigate to /shares/perf/perfTests2/tests/tims/setup/ and edit the defaultValues file default_l2_java_options> -Xms2g -Xmx2g -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+HeapDumpOnOutOfMemoryError -Dtc.stage.monitor=true -Dtc.stage.monitor.delay=2000 -Dcom.sun.management.jmxremote -Djava.security.manager 17. Repeat the above steps 10 to 15 Actual: Exception in thread "main" java.lang.ExceptionInInitializerError at com.tc.server.TCServerMain.main(TCServerMain.java:17) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.Thread.setContextClassLoader(Thread.java:1306) at com.tc.logging.TCLogging.<clinit>(TCLogging.java:363) ... 1 more

    Terracotta Project Issue Tracker | 9 years ago | Kalai Kannaiyan
    java.lang.ExceptionInInitializerError
  3. 0

    java.security.AccessControlException: access denied

    Oracle Community | 10 years ago | 843793
    java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to start embedded Google App Engine Server for Integration Tests

    Stack Overflow | 4 years ago | nwaltham
    java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)
  6. 0

    JTurbo Self-Help: FAQ

    newatlanta.com | 1 year ago
    java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.AccessControlException

      access denied (java.lang.RuntimePermission setContextClassLoader)

      at java.security.AccessControlContext.checkPermission()
    2. Java RT
      Thread.setContextClassLoader
      1. java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
      2. java.security.AccessController.checkPermission(AccessController.java:427)
      3. java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      4. java.lang.Thread.setContextClassLoader(Thread.java:1306)
      4 frames
    3. com.tc.logging
      TCLogging.<clinit>
      1. com.tc.logging.TCLogging.<clinit>(TCLogging.java:363)
      1 frame
    4. com.tc.server
      TCServerMain.main
      1. com.tc.server.TCServerMain.main(TCServerMain.java:17)
      1 frame