-->
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.  [ 3 posts ] 
Author Message
 Post subject: Error with query: Unsupported method: ResultSet.absolute
PostPosted: Wed Dec 29, 2004 1:47 pm 
Newbie

Joined: Wed Dec 29, 2004 1:42 pm
Posts: 2
I am getting the following error while performing a query. Has anyone experienced this and how did you resove it? Thanks!

Dec 28, 2004 6:03:43 PM net.sf.hibernate.JDBCException <init>
SEVERE: Could not execute query
java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Unsupported method: ResultSet.absolute
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseResultSet.validateScrollable(Unknown Source)
at com.microsoft.jdbc.base.BaseResultSet.absolute(Unknown Source)
at org.apache.commons.dbcp.DelegatingResultSet.absolute(DelegatingResultSet.java:254)
at com.opensourceconnections.msjdbcproxy.ResultSetProxy.absolute(ResultSetProxy.java:314)
at net.sf.hibernate.loader.Loader.advance(Loader.java:629)
at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:803)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:189)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.doList(Loader.java:955)
at net.sf.hibernate.loader.Loader.list(Loader.java:946)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:846)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1543)
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39)
at ....... ( the rest is in my classes)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 30, 2004 5:12 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Use jTDS, its a better driver for MSSQlServer

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 11:21 am 
Newbie

Joined: Wed Dec 29, 2004 1:42 pm
Posts: 2
Yes, I agree jTDS is a better driver. We will replace the MS driver as soon as time permits for proper testing.

I discovered the cause of the problem though:

The developer working on the client side of our web services app was passing in a zero for a page number during a search. It appears the minimum value for a page is "1" not "0" which caused the driver to throw an exception. It would be nice if Hibernate would catch this error and give a more difinitive error message rather than throwing it up through the stack.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.