java.lang.ExceptionInInitializerError

Hibernate JIRA | Todd Nine | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I have attached a zip containing my mapping files my POJOS, and the hacked testcase that uses the hibernate configuration file instead of the SpringFramework context file. I used the straight hibernate file to eliminate the possibliity of a spring 1.2 bug. I receive this error when it is trying to lookup the index of "applicationId" on the "Document" Mapping. When debugging the code, the JoinedSubclassEntityPersister is for com.llic.business.Document. Below is the stack trace. java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at junit.framework.TestSuite.createTest(TestSuite.java:131) at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at junit.framework.TestSuite.<init>(TestSuite.java:75) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(RemoteTestRunner.java:397) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:441) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194) Caused by: java.lang.NullPointerException at org.hibernate.persister.entity.BasicEntityPersister.getPropertyIndex(BasicEntityPersister.java:1333) at org.hibernate.persister.entity.JoinedSubclassEntityPersister.getPropertyTableName(JoinedSubclassEntityPersister.java:528) at org.hibernate.engine.JoinHelper.getLHSTableName(JoinHelper.java:125) at org.hibernate.loader.OuterJoinLoader.walkEntityAssociationTree(OuterJoinLoader.java:305) at org.hibernate.loader.OuterJoinLoader.walkEntityTree(OuterJoinLoader.java:357) at org.hibernate.loader.OuterJoinLoader.walkEntityTree(OuterJoinLoader.java:203) at org.hibernate.loader.AbstractEntityLoader.initAll(AbstractEntityLoader.java:63) at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:112) at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:66) at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:48) at org.hibernate.loader.entity.BatchingEntityLoader.createBatchingEntityLoader(BatchingEntityLoader.java:102) at org.hibernate.persister.entity.BasicEntityPersister.createEntityLoader(BasicEntityPersister.java:1406) at org.hibernate.persister.entity.BasicEntityPersister.createEntityLoader(BasicEntityPersister.java:1410) at org.hibernate.persister.entity.BasicEntityPersister.createLoaders(BasicEntityPersister.java:2421) at org.hibernate.persister.entity.BasicEntityPersister.postInstantiate(BasicEntityPersister.java:2414) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:231) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043) at com.llic.dao.HibernateTest.<clinit>(HibernateTest.java:23) ... 11 more

    Hibernate JIRA | 1 decade ago | Todd Nine
    java.lang.ExceptionInInitializerError
  2. 0

    I have attached a zip containing my mapping files my POJOS, and the hacked testcase that uses the hibernate configuration file instead of the SpringFramework context file. I used the straight hibernate file to eliminate the possibliity of a spring 1.2 bug. I receive this error when it is trying to lookup the index of "applicationId" on the "Document" Mapping. When debugging the code, the JoinedSubclassEntityPersister is for com.llic.business.Document. Below is the stack trace. java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at junit.framework.TestSuite.createTest(TestSuite.java:131) at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at junit.framework.TestSuite.<init>(TestSuite.java:75) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(RemoteTestRunner.java:397) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:441) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194) Caused by: java.lang.NullPointerException at org.hibernate.persister.entity.BasicEntityPersister.getPropertyIndex(BasicEntityPersister.java:1333) at org.hibernate.persister.entity.JoinedSubclassEntityPersister.getPropertyTableName(JoinedSubclassEntityPersister.java:528) at org.hibernate.engine.JoinHelper.getLHSTableName(JoinHelper.java:125) at org.hibernate.loader.OuterJoinLoader.walkEntityAssociationTree(OuterJoinLoader.java:305) at org.hibernate.loader.OuterJoinLoader.walkEntityTree(OuterJoinLoader.java:357) at org.hibernate.loader.OuterJoinLoader.walkEntityTree(OuterJoinLoader.java:203) at org.hibernate.loader.AbstractEntityLoader.initAll(AbstractEntityLoader.java:63) at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:112) at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:66) at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:48) at org.hibernate.loader.entity.BatchingEntityLoader.createBatchingEntityLoader(BatchingEntityLoader.java:102) at org.hibernate.persister.entity.BasicEntityPersister.createEntityLoader(BasicEntityPersister.java:1406) at org.hibernate.persister.entity.BasicEntityPersister.createEntityLoader(BasicEntityPersister.java:1410) at org.hibernate.persister.entity.BasicEntityPersister.createLoaders(BasicEntityPersister.java:2421) at org.hibernate.persister.entity.BasicEntityPersister.postInstantiate(BasicEntityPersister.java:2414) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:231) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043) at com.llic.dao.HibernateTest.<clinit>(HibernateTest.java:23) ... 11 more

    Hibernate JIRA | 1 decade ago | Todd Nine
    java.lang.ExceptionInInitializerError

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.hibernate.persister.entity.BasicEntityPersister.getPropertyIndex()
    2. Hibernate
      BasicEntityPersister.postInstantiate
      1. org.hibernate.persister.entity.BasicEntityPersister.getPropertyIndex(BasicEntityPersister.java:1333)
      2. org.hibernate.persister.entity.JoinedSubclassEntityPersister.getPropertyTableName(JoinedSubclassEntityPersister.java:528)
      3. org.hibernate.engine.JoinHelper.getLHSTableName(JoinHelper.java:125)
      4. org.hibernate.loader.OuterJoinLoader.walkEntityAssociationTree(OuterJoinLoader.java:305)
      5. org.hibernate.loader.OuterJoinLoader.walkEntityTree(OuterJoinLoader.java:357)
      6. org.hibernate.loader.OuterJoinLoader.walkEntityTree(OuterJoinLoader.java:203)
      7. org.hibernate.loader.AbstractEntityLoader.initAll(AbstractEntityLoader.java:63)
      8. org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:112)
      9. org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:66)
      10. org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:48)
      11. org.hibernate.loader.entity.BatchingEntityLoader.createBatchingEntityLoader(BatchingEntityLoader.java:102)
      12. org.hibernate.persister.entity.BasicEntityPersister.createEntityLoader(BasicEntityPersister.java:1406)
      13. org.hibernate.persister.entity.BasicEntityPersister.createEntityLoader(BasicEntityPersister.java:1410)
      14. org.hibernate.persister.entity.BasicEntityPersister.createLoaders(BasicEntityPersister.java:2421)
      15. org.hibernate.persister.entity.BasicEntityPersister.postInstantiate(BasicEntityPersister.java:2414)
      15 frames
    3. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:231)
      1 frame
    4. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
      1 frame
    5. com.llic.dao
      HibernateTest.<clinit>
      1. com.llic.dao.HibernateTest.<clinit>(HibernateTest.java:23)
      1 frame
    6. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      4 frames
    7. JUnit
      TestSuite.<init>
      1. junit.framework.TestSuite.createTest(TestSuite.java:131)
      2. junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
      3. junit.framework.TestSuite.<init>(TestSuite.java:75)
      3 frames
    8. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(RemoteTestRunner.java:397)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:441)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)
      4 frames