Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Error  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!