-->
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.  [ 1 post ] 
Author Message
 Post subject: getQueryTimeout not supported
PostPosted: Tue Jul 17, 2007 4:26 pm 
Newbie

Joined: Tue Jul 17, 2007 4:18 pm
Posts: 1
I'm using a Netweaver 7.0 app server (1.4.2_13) along with Hibernate 3.2, and Oracle as the database. The JDBC drivers for the built-in database connection are SAP specific, and as such, do not support the getQueryTimeout() method. So, at the end of each query to the database, a warning message is written to the logs....

Now, this may be a fault with the JDBC drivers, but is there any way to avoid calls to getQueryTimeout()? I'm sure there are not, but I thought I would ask. I could of course modify the source code, but I'm not really interested in forking my own branch just to remove a warning message...

Suggestions most welcome.

Here's a snip of the exception that's thrown:

exception clearing maxRows/queryTimeout
[EXCEPTION]
java.lang.UnsupportedOperationException: Method getQueryTimeout() is not supported by Open JDBC
at com.sap.sql.log.Syslog.createUnsupportedMethodError(Syslog.java:162)
at com.sap.sql.jdbc.common.AbstractCommonStatement.getQueryTimeout(AbstractCommonStatement.java:132)
at com.sap.engine.services.dbpool.wrappers.StatementWrapper.getQueryTimeout(StatementWrapper.java:229)
at
...


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

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.