• 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: 228
  • 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: 3953
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?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!