Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 80362 invoked from network); 28 Jun 2005 06:15:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2005 06:15:03 -0000 Received: (qmail 30809 invoked by uid 500); 28 Jun 2005 06:14:52 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 30533 invoked by uid 500); 28 Jun 2005 06:14:50 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 30448 invoked by uid 99); 28 Jun 2005 06:14:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2005 23:14:49 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.130.132.59] (HELO asia.telenet-ops.be) (195.130.132.59) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2005 23:14:47 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by asia.telenet-ops.be (Postfix) with SMTP id 2E490224195 for ; Tue, 28 Jun 2005 08:14:45 +0200 (MEST) Received: from [127.0.0.1] (d54C3C5FC.access.telenet.be [84.195.197.252]) by asia.telenet-ops.be (Postfix) with ESMTP id 07C3A22417B for ; Tue, 28 Jun 2005 08:14:45 +0200 (MEST) Message-ID: <42C0EAC5.2070206@pandora.be> Date: Tue, 28 Jun 2005 08:14:29 +0200 From: Dirk Verbeeck User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: DBCP :: Problem initializing pool References: <20050627095340.354.qmail@web42008.mail.yahoo.com> In-Reply-To: <20050627095340.354.qmail@web42008.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Robert, The configuration web page was written for the BasicDataSource connection pool implementation. The other pools do not support all params listed. In this case you are correct that SharedDataSourceFactory doesn't support the "abandoned" parameters (only BasicDataSource does). Regards Dirk Robert Bowen wrote: > Hello everyone. > > I am using DBCP (with Torque) for my J2EE app. I > believe I have a connection leak somewhere and I am > trying to find out where. When I try to initialize the > pool with parameters for dealing with and debugging > abandoned connections, I am getting errors with the > following params: > > Property: removeAbandoned, Value: true > Property: logAbandoned, Value: true > Property: removeAbandonedTimeout, Value: 300 > > The error is always the same: " value: > is not supported by DataSource: > org.apache.commons.dbcp.datasources.SharedPoolDataSource > > All three of these parameters appear on the DBCP > Configuration page > (http://jakarta.apache.org/commons/dbcp/configuration.html). > > > I believe I have all the correct versions of all jars: > > commons-beanutils-1.7.0 > commons-dbcp-1.2.1 > commons-pool-1.2 > commons-collections-3.0 > commons-configuration-1.1 > > ... but it doesn't want to work. The method that craps > out is in AbstractDataSourceFactory, setProperty(). > Line 147: > > Class propertyType = PropertyUtils.getPropertyType(ds, > property); > > propertyType is always null. > > Can anyone give me a hand with this? It seems that the > SharedDataSourceFactory doesn't allow these params, > but according to the documentation it does. Any ideas? > > Many thanks, > syg --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org