This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NULL Pointer Exception in Hibernate

 
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: 223
  • 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
Pie
Posts: 3930
21
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