Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 97544 invoked from network); 30 Sep 2003 20:57:38 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Sep 2003 20:57:38 -0000 Received: (qmail 95522 invoked by uid 500); 30 Sep 2003 20:57:21 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 95509 invoked by uid 500); 30 Sep 2003 20:57:21 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 95496 invoked from network); 30 Sep 2003 20:57:21 -0000 Received: from unknown (HELO astra.telenet-ops.be) (195.130.132.58) by daedalus.apache.org with SMTP; 30 Sep 2003 20:57:21 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by astra.telenet-ops.be (Postfix) with SMTP id D0C1F37EEF for ; Tue, 30 Sep 2003 22:57:26 +0200 (MEST) Received: from pandora.be (D5E05DB0.kabel.telenet.be [213.224.93.176]) by astra.telenet-ops.be (Postfix) with ESMTP id 9EB043808A for ; Tue, 30 Sep 2003 22:57:26 +0200 (MEST) Message-ID: <3F79EE34.4030208@pandora.be> Date: Tue, 30 Sep 2003 22:57:24 +0200 From: Dirk Verbeeck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [DBCP] Possible to turn off logging that is going to System.out? References: <1064909032024932@lycos-europe.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I fixed this issue a few minutes ago. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22776 It will be in the next release candidate (v1.1RC2) or you can use a night build of course.. Dirk Peter Smith wrote: >Hi, I've created a BasicDataSource and when I purposely shut down my db to test error handling, I get >debug print statements going to STDOUT from somwhere within commons-dbcp.jar, when I attempt to >obtain a connection. How do I turn this off? I'm fine w/ the error msg - I just don't want it getting logged >twice - I'd like to log it myself, only once. > >I tried the following (setLogWriter()) to no avail -> I still get stuff coming to STDOUT: > > BasicDataSource ds = new BasicDataSource(); > ds.setUrl(p.getProperty("db.url")); > ds.setDriverClassName(p.getProperty("db.driver")); > ...etc... > // try to turn off logging > FileWriter fw = new FileWriter("nul"); // on NT > PrintWriter pw = new PrintWriter( fw ); > ds.setLogWriter( pw ); > >I tried to trace through the source code and I couldn't see why my approach above isn't working. It's very >possible I'm mis-tracing the code....(not in a debugger that steps through the source)... > >Error message: >-------------------- >DBCP borrowObject failed: java.sql.SQLException: ORA-01034: ORACLE not available >ORA-27101: shared memory realm does not exist >HP-UX Error: 2: No such file or directory > >Thanks! > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org