java.lang.ExceptionInInitializerError

Exception #2575026

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web71

  • via Unknown by Unknown author,
  • via Stack Overflow by josser
    ,
  • via Stack Overflow by Zyrax
    ,
  • Stack trace

    • java.lang.ExceptionInInitializerError at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:17) at com.mkyong.util.HibernateUtil.<init>(HibernateUtil.java:8) at com.mkyong.App.main(App.java:11) Caused by: org.hibernate.HibernateException: /hibernate.cfg.xml not found at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170) at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1497) at org.hibernate.cfg.Configuration.configure(Configuration.java:1519) at org.hibernate.cfg.Configuration.configure(Configuration.java:1506) at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:13)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,