• Post Reply Bookmark Topic Watch Topic
  • New Topic

NULL Pointer Exception in Hibernate  RSS feed

 
John Miner Stevens
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No error message, but the stack trace is:

java.lang.NullPointerException
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2285)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2243)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2137)

So obviously the error is in the configuration file. Is there a way to turn on some error messages here, or is it "go debug hibernate" time?

Thanks,
John S.
 
vipul bondugula
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,

Post your configuration file. Unable to trace the error with stack trace.

Thanks & Regards,
Vipul Kumar.
 
abani patra
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please check that if there is any configuration if you have missed rather you can show your configuration here.
 
Vijitha Kumara
Bartender
Posts: 4001
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch, John Miner Stevens!

Or you may post the complete stack trace here. And how do you initialize the Hibernate here?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!