1 Reply Latest reply on Jul 25, 2006 7:27 PM by Oleg Zhurakousky

    Null Pointer exception with new Configuration()

    laxman Newbie

      I am trying to connect to mysql through Hibernate
      I have created a normal java project in eclipse.
      I created hibernate.cfg.xml , test.hbm.xml
      I have created a POJO and a test client which has the following line

      Configuration c = new Configuration();

      It gives me null pointer exception. I have hibernate-all.jar, hibernate.cfg.xml in classpath and I am able to compile all classes.

      Please help