java.lang.ExceptionInInitializerError

Tridion | Abdul Qadir | 3 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    NoClassDefFoundError: org/dom4j/Element

    Stack Overflow | 5 years ago | Charles
    java.lang.IllegalStateException: Failed to load ApplicationContext
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  4. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>

  1. osvzs 4 times, last 7 days ago
  2. olle.hallin 3 times, last 3 days ago
  3. rp 1 times, last 1 week ago
  4. Dunmer 1 times, last 2 weeks ago
  5. poroszd 1 times, last 3 weeks ago
78 more registered users
17 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.io.EOFException

    Detect premature EOF

    at sun.misc.Resource.getBytes()
  2. Java RT
    ClassLoader.loadClass
    1. sun.misc.Resource.getBytes(Unknown Source)
    2. java.net.URLClassLoader.defineClass(Unknown Source)
    3. java.net.URLClassLoader.access$100(Unknown Source)
    4. java.net.URLClassLoader$1.run(Unknown Source)
    5. java.net.URLClassLoader$1.run(Unknown Source)
    6. java.security.AccessController.doPrivileged(Native Method)
    7. java.net.URLClassLoader.findClass(Unknown Source)
    8. java.lang.ClassLoader.loadClass(Unknown Source)
    9. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    10. java.lang.ClassLoader.loadClass(Unknown Source)
    10 frames
  3. Hibernate EJB
    HibernatePersistence.createContainerEntityManagerFactory
    1. org.hibernate.ejb.Ejb3Configuration.<clinit>(Ejb3Configuration.java:150)
    2. org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:71)
    2 frames
  4. Spring ORM
    AbstractEntityManagerFactoryBean.afterPropertiesSet
    1. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:257)
    2. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
    2 frames
  5. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    8 frames
  6. Spring Context
    AbstractApplicationContext.getBean
    1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1093)
    1 frame
  7. com.tridion.storage
    StorageFactoryConfigurationLoader.configure
    1. com.tridion.storage.persistence.JPADAOFactory.configureBundle(JPADAOFactory.java:76)
    2. com.tridion.storage.configuration.StorageFactoryConfigurationLoader.configureStorage(StorageFactoryConfigurationLoader.java:91)
    3. com.tridion.storage.configuration.StorageFactoryConfigurationLoader.configureStorage(StorageFactoryConfigurationLoader.java:65)
    4. com.tridion.storage.configuration.StorageFactoryConfigurationLoader.configure(StorageFactoryConfigurationLoader.java:51)
    4 frames
  8. com.tridion.configuration
    ConfigurationStepLoader.configure
    1. com.tridion.configuration.step.ConfigurationStepLoader.configure(ConfigurationStepLoader.java:47)
    1 frame
  9. com.tridion.storage
    StorageManagerFactory.configure
    1. com.tridion.storage.StorageManagerFactory.configure(StorageManagerFactory.java:137)
    1 frame
  10. com.tridion.services
    BaseService.<init>
    1. com.tridion.services.BaseService.<init>(BaseService.java:113)
    1 frame
  11. com.tridion.storage
    StorageManagerFactory.<clinit>
    1. com.tridion.storage.StorageManagerFactory.<init>(StorageManagerFactory.java:104)
    2. com.tridion.storage.StorageManagerFactory.reloadInstance(StorageManagerFactory.java:84)
    3. com.tridion.storage.StorageManagerFactory.<clinit>(StorageManagerFactory.java:56)
    3 frames
  12. com.tridion.meta
    BinaryMetaFactory.getMetaByURL
    1. com.tridion.meta.BinaryMetaFactory.getMetaByURL(BinaryMetaFactory.java:271)
    1 frame