Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

hibernate configuration problem

807591May 12 2008 — edited May 12 2008
Hi all,

I am completely new to hibernate and was trying out my first hibernate program.

SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();

This is throwing null pointer exception... I have hibernate.cfg.xml file in the build path( inside /src folder). I even see the file in the build path after compilation. But when i try to run its throwing exception. So how do i handle this? am i doing something wrong? any suggestion/help is most welcome. Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2008
Added on May 12 2008
5 comments
1,339 views