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.

  • 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
    via by Todd Nine,
  • 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
    via by Todd Nine,
    • 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
    No Bugmate found.