These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: "SQLStateConverter" exception on Query.list()
PostPosted: Mon Jul 27, 2009 12:50 pm 
Newbie

Joined: Mon Jul 27, 2009 12:39 pm
Posts: 2
Hi All,
I am getting the below error on executing a list() method on Query object.

org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
org.hibernate.loader.Loader.doList(Loader.java:2231)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
org.hibernate.loader.Loader.list(Loader.java:2120)
org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:935)
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)

The same code was working fine till last week. After getting this error, we restarted the server and it started working fine again.

Any help is greatly appreciated.
Thnx.


Top
 Profile  
 
 Post subject: Re: "SQLStateConverter" exception on Query.list()
PostPosted: Tue Jul 28, 2009 4:44 pm 
Newbie

Joined: Mon Jul 27, 2009 12:39 pm
Posts: 2
Just wanted to update my question ...

We are currently using Hibernate 3.0 and DB2 9.1.
When checked the hibernate jars....
the exception is coming from the following code..

try {
result = doQueryAndInitializeNonLazyCollections( session, queryParameters, true );
}
catch ( SQLException sqle ) {
throw JDBCExceptionHelper.convert(
factory.getSQLExceptionConverter(),
sqle, "could not execute query",
getSQLString() );
}

Thnx...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.