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.

  • 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
    via by Tim Eck,
  • Terracotta Project Issue Tracker
    via by Unknown author,
  • 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
    via by Tim Eck,
  • Null Pointer Exception MySQL
    via GitHub by sentostv
    ,
  • BadPaddingException with Jasypt library
    via Stack Overflow by Kashif Nazar
    ,
  • gwt java.lang.ExceptionInInitializerError
    via Stack Overflow by user1459976
    ,
    • 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)

    Users with the same issue

    raytest
    3 times, last one,
    Unknown visitor1 times, last one,
    Stefan Braune
    2 times, last one,
    Deepak Grover
    1 times, last one,
    Unknown visitor1 times, last one,
    4 more bugmates