java.lang.ExceptionInInitializerError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Kalai Kannaiyan,
  • 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
    via by Kalai Kannaiyan,
  • JTurbo Self-Help: FAQ
    via by Unknown author,
  • ServletExec Self-Help: FAQ
    via by Unknown author,
  • BlueDragon Self-Help: FAQ
    via by Unknown author,
  • ServletExec Self-Help: FAQ
    via by Unknown author,
    • 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

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    andyglick
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    71 more bugmates