java.lang.ExceptionInInitializerError

Terracotta Project Issue Tracker | Tim Eck | 9 years ago
  1. 0

    We can potentially set the thread context loader to null when loading/initializing user land classes. Under JBoss (at least version 4.0.5-GA), there is a bug in their in-house fork of commons-loggging. http://jira.jboss.com/jira/browse/JBAS-4437 java.lang.ExceptionInInitializerError at sun.reflect.GeneratedSerializationConstructorAccessor60.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:77) at com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:65) at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:1064) at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:1025) at com.tc.object.TCObjectImpl.createPeerObjectIfNecessary(TCObjectImpl.java:166) at com.tc.object.TCObjectImpl.hydrate(TCObjectImpl.java:101) at com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:511) at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:409) at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:402) at com.tc.object.bytecode.ManagerImpl.lookupObject(ManagerImpl.java:605) at com.tc.object.bytecode.ManagerUtil.lookupObject(ManagerUtil.java:161) at java.util.HashMap.lookUpAndStoreIfNecessary(Unknown Source) at java.util.HashMap.get(Unknown Source) <snip -- application code> Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:353) at XXX-APPLICATION-CODE.<clinit>(Workflow.java:40) ... 84 more Caused by: java.lang.NullPointerException at org.apache.commons.logging.impl.Log4jProxy$1.run(Log4jProxy.java:66) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.impl.Log4jProxy.threadContextClassLoader(Log4jProxy.java:88) at org.apache.commons.logging.impl.Log4jProxy.<init>(Log4jProxy.java:94) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:39) at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 88 more

    Terracotta Project Issue Tracker | 9 years ago | Tim Eck
    java.lang.ExceptionInInitializerError
  2. 0

    Terracotta Project Issue Tracker

    terracotta.org | 6 months ago
    java.lang.ExceptionInInitializerError
  3. 0

    We can potentially set the thread context loader to null when loading/initializing user land classes. Under JBoss (at least version 4.0.5-GA), there is a bug in their in-house fork of commons-loggging. http://jira.jboss.com/jira/browse/JBAS-4437 java.lang.ExceptionInInitializerError at sun.reflect.GeneratedSerializationConstructorAccessor60.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:77) at com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:65) at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:1064) at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:1025) at com.tc.object.TCObjectImpl.createPeerObjectIfNecessary(TCObjectImpl.java:166) at com.tc.object.TCObjectImpl.hydrate(TCObjectImpl.java:101) at com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:511) at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:409) at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:402) at com.tc.object.bytecode.ManagerImpl.lookupObject(ManagerImpl.java:605) at com.tc.object.bytecode.ManagerUtil.lookupObject(ManagerUtil.java:161) at java.util.HashMap.lookUpAndStoreIfNecessary(Unknown Source) at java.util.HashMap.get(Unknown Source) <snip -- application code> Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:353) at XXX-APPLICATION-CODE.<clinit>(Workflow.java:40) ... 84 more Caused by: java.lang.NullPointerException at org.apache.commons.logging.impl.Log4jProxy$1.run(Log4jProxy.java:66) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.impl.Log4jProxy.threadContextClassLoader(Log4jProxy.java:88) at org.apache.commons.logging.impl.Log4jProxy.<init>(Log4jProxy.java:94) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:39) at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 88 more

    Terracotta Project Issue Tracker | 9 years ago | Tim Eck
    java.lang.ExceptionInInitializerError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Null Pointer Exception MySQL

    GitHub | 2 years ago | sentostv
    java.lang.RuntimeException: java.lang.ExceptionInInitializerError

  1. tfr 1 times, last 4 months ago
  2. Stefan Braune 2 times, last 8 months ago
  3. Deepak Grover 1 times, last 9 months ago
4 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.lang.ExceptionInInitializerError

    No message provided

    at sun.reflect.GeneratedSerializationConstructorAccessor60.newInstance()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.GeneratedSerializationConstructorAccessor60.newInstance(Unknown Source)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    2 frames
  3. com.tc.object
    ManagerUtil.lookupObject
    1. com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:77)
    2. com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:65)
    3. com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:1064)
    4. com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:1025)
    5. com.tc.object.TCObjectImpl.createPeerObjectIfNecessary(TCObjectImpl.java:166)
    6. com.tc.object.TCObjectImpl.hydrate(TCObjectImpl.java:101)
    7. com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:511)
    8. com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:409)
    9. com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:402)
    10. com.tc.object.bytecode.ManagerImpl.lookupObject(ManagerImpl.java:605)
    11. com.tc.object.bytecode.ManagerUtil.lookupObject(ManagerUtil.java:161)
    11 frames
  4. Java RT
    HashMap.get
    1. java.util.HashMap.lookUpAndStoreIfNecessary(Unknown Source)
    2. java.util.HashMap.get(Unknown Source)
    2 frames