Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 13054 invoked from network); 7 Feb 2008 19:50:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 19:50:58 -0000 Received: (qmail 45318 invoked by uid 500); 7 Feb 2008 19:50:50 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 45299 invoked by uid 500); 7 Feb 2008 19:50:50 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 45283 invoked by uid 99); 7 Feb 2008 19:50:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 11:50:50 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.1.189] (HELO exprod6og105.obsmtp.com) (64.18.1.189) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 07 Feb 2008 19:50:33 +0000 Received: from source ([63.240.6.3]) (using TLSv1) by exprod6ob105.postini.com ([64.18.5.12]) with SMTP; Thu, 07 Feb 2008 11:50:22 PST Received: from D01SMTP04.Mi8.com ([172.16.1.243]) by Outbound01.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Feb 2008 14:52:20 -0500 Received: from d01fe03.Mi8.com ([172.16.1.106]) by D01SMTP04.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Feb 2008 14:52:20 -0500 Received: from [192.168.64.122] ([71.5.1.203]) by d01fe03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Feb 2008 14:50:21 -0500 Message-ID: <47AB60EF.4050400@hi5.com> Date: Thu, 07 Feb 2008 11:50:07 -0800 From: "Owen B. Mehegan" User-Agent: Icedove 1.5.0.14pre (X11/20071018) MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: No DataSourceFactory configured References: <778861.38241.qm@web50807.mail.re2.yahoo.com> In-Reply-To: <778861.38241.qm@web50807.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Feb 2008 19:50:21.0876 (UTC) FILETIME=[AC80E740:01C869C2] X-TM-AS-Product-Ver: SMEX-7.0.0.1345-5.0.1023-15716.000 X-TM-AS-Result: No--12.256500-8.000000-4 X-Virus-Checked: Checked by ClamAV on apache.org Oh, I see what you were getting at, sorry! I obfuscated the actual value of 'url' in this email, since I considered it to be sensitive data :) Alvaro Coronel wrote: > torque.dsfactory.recoverable.connection.url looks yucky. > > > "Owen B. Mehegan" wrote: Hi, I've seen this question asked many times in the mailing list > archives, but so far I can't figure out a solution to the problem in my > case. I have a unit test that is using Easymock to create mock database > objects to test against. When I run the test, it always fails with this > error: > > java.lang.NullPointerException: There was no DataSourceFactory > configured for the connection recoverable > > But my Torque.properties _does_ include a datasource called 'recoverable:' > > torque.dsfactory.recoverable.factory=com.friend.db.RecoverableDataSourceFactory > torque.dsfactory.recoverable.pool.maxActive=1 > torque.dsfactory.recoverable.pool.maxIdle=1 > torque.dsfactory.recoverable.pool.maxWait=1000 > torque.dsfactory.recoverable.pool.testOnBorrow=false > torque.dsfactory.recoverable.pool.validationQuery=SELECT 1 > torque.dsfactory.recoverable.connection.driver=com.mockrunner.mock.jdbc.MockDriver > torque.dsfactory.recoverable.connection.url = java://foo > torque.dsfactory.recoverable.connection.user = user > torque.dsfactory.recoverable.connection.password = foo > > This entry is similar to others in the torque.properties, so I don't > think the syntax is incorrect. What else could I be doing wrong? > -- Owen B. Mehegan Database Framework QA Guy "He is a dangerous mixture of sophistication and recklessness which makes one anxious about his influence on other boys." omehegan@hi5.com YIM: omehegan AIM: ottomaticjack GTalk: omehegan@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org