java.lang.ExceptionInInitializerError

Hibernate JIRA | Artur Legan | 9 years ago
  1. 0

    I got: [java] Exception in thread "main" java.lang.ExceptionInInitializerError [java] at util.HibernateUtil.<clinit>(Unknown Source) [java] at one.Start.main(Unknown Source) [java] Caused by: java.lang.NullPointerException [java] at org.hibernate.cfg.AnnotationBinder.bindOneToOne(AnnotationBinder.java:1960) [java] at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1346) [java] at org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:1731) [java] at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1768) [java] at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1229) [java] at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:733) [java] at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:498) [java] at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277) [java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286) [java] at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) [java] ... 2 more when I tried to run application where i have @OneToOne in composite key (@ManyToOne worked fine) I made this code as short as I could, just put path to jars in build.xml and to database in hibernate.cfg.xml if you want to check it If I upload to much or to few just let me know, couse it's first time i'm adding stuff here I'm posting it because emmanuel told me to do it :)

    Hibernate JIRA | 9 years ago | Artur Legan
    java.lang.ExceptionInInitializerError
  2. 0

    I got: [java] Exception in thread "main" java.lang.ExceptionInInitializerError [java] at util.HibernateUtil.<clinit>(Unknown Source) [java] at one.Start.main(Unknown Source) [java] Caused by: java.lang.NullPointerException [java] at org.hibernate.cfg.AnnotationBinder.bindOneToOne(AnnotationBinder.java:1960) [java] at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1346) [java] at org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:1731) [java] at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1768) [java] at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1229) [java] at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:733) [java] at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:498) [java] at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277) [java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286) [java] at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) [java] ... 2 more when I tried to run application where i have @OneToOne in composite key (@ManyToOne worked fine) I made this code as short as I could, just put path to jars in build.xml and to database in hibernate.cfg.xml if you want to check it If I upload to much or to few just let me know, couse it's first time i'm adding stuff here I'm posting it because emmanuel told me to do it :)

    Hibernate JIRA | 9 years ago | Artur Legan
    java.lang.ExceptionInInitializerError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hibernate: Cannot create entity manager factory after connection reset

    Stack Overflow | 6 years ago | John
    java.lang.NullPointerException
  5. 0

    Creating composite key with manytomany mapping in hibernate

    Stack Overflow | 1 year ago | Sharique
    java.lang.NullPointerException

    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.NullPointerException

      No message provided

      at org.hibernate.cfg.AnnotationBinder.bindOneToOne()
    2. Hibernate
      AnnotationConfiguration.buildSessionFactory
      1. org.hibernate.cfg.AnnotationBinder.bindOneToOne(AnnotationBinder.java:1960)
      2. org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1346)
      3. org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:1731)
      4. org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1768)
      5. org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1229)
      6. org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:733)
      7. org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:498)
      8. org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277)
      9. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286)
      10. org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
      10 frames
    3. FitNesse
      HibernateUtil.<clinit>
      1. util.HibernateUtil.<clinit>(Unknown Source)
      1 frame
    4. one
      Start.main
      1. one.Start.main(Unknown Source)
      1 frame