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

Hibernate Error

 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


I am getting an error in hibernate while using asimple query.
at session.createQuqery(sql).list()

java.lang.NullPointerException
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:442)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:368)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.doQuery(Loader.java:661)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.doList(Loader.java:2150)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.list(Loader.java:2024)
[7/7/06 17:22:55:658 SGT] 14c39626

Any clues.
Thanks
Rampreet
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic