Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 63652 invoked from network); 11 Jan 2007 13:59:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jan 2007 13:59:18 -0000 Received: (qmail 40436 invoked by uid 500); 11 Jan 2007 13:59:22 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 40420 invoked by uid 500); 11 Jan 2007 13:59:22 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 40409 invoked by uid 99); 11 Jan 2007 13:59:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 05:59:22 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [138.232.1.142] (HELO smtp.uibk.ac.at) (138.232.1.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 05:59:12 -0800 Received: from smc.uibk.ac.at (smc.uibk.ac.at [138.232.1.226] c108308@uibk.ac.at) by smtp.uibk.ac.at (8.13.8/8.13.1/F1) with ESMTP id l0BDwiar032237 for ; Thu, 11 Jan 2007 14:58:44 +0100 Received: from smc.uibk.ac.at (localhost [127.0.0.1] c108308@uibk.ac.at) by smc.uibk.ac.at (8.13.7+Sun/uibk) with ESMTP id l0BDwiUa026165 for ; Thu, 11 Jan 2007 14:58:44 +0100 (MET) Received: from localhost (c108308@localhost) by smc.uibk.ac.at (8.13.8+Sun/8.13.8/Submit) with ESMTP id l0BDwilU026154 for ; Thu, 11 Jan 2007 14:58:44 +0100 (MET) X-Authentication-Warning: smc.uibk.ac.at: c108308 owned process doing -bs Date: Thu, 11 Jan 2007 14:58:44 +0100 (MET) From: Thomas Karl Schwaerzler To: user-java@ibatis.apache.org Subject: abator: PingQuery not behaving as expected Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Score: () -4.4 ALL_TRUSTED,RCV_SMTP_UIBK X-Scanned-By: MIMEDefang 2.52 at uibk.ac.at on 138.232.1.140 X-Virus-Checked: Checked by ClamAV on apache.org hi there again, i have ibatis/abator included in my web application using struts. everything is running great until now, but when i came to my testserver this morning i got the follwoing error when doing any request that needs access to database: ... Caused by: java.sql.SQLException: No more data to read from socket at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208) at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1118) at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1070) at oracle.jdbc.driver.T4C7Ocommoncall.receive(T4C7Ocommoncall.java:106) at oracle.jdbc.driver.T4CConnection.doRollback(T4CConnection.java:567) ... ..as far as know this error is caused by a connection timout at the database connection. i thought, that configuring a 'PingQuery' would prevent this by continuing sending kinda pings on the connection in case nothing else happens to keep it up. therefore i configured abator as follows: i expected this configuration of abator to do pings every hour, which should be enough to keep the connection to database alive. why does abator/ibatis not behave as i expect? is there a possibility to check if the ping really happens? thanks in advance tom.