Return-Path: Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 2912 invoked from network); 30 Apr 2003 15:31:51 -0000 Received: from gatekeeper.fma.co.za (HELO localhost.localdomain) (196.22.96.162) by daedalus.apache.org with SMTP; 30 Apr 2003 15:31:51 -0000 Received: from sharp.fm (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id h3UFVax15683 for ; Wed, 30 Apr 2003 17:31:41 +0200 Message-ID: <3EAFEC58.1070302@sharp.fm> Date: Wed, 30 Apr 2003 17:31:36 +0200 From: Graham Leggett User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.3) Gecko/20030318 X-Accept-Language: en-gb, en-za, en MIME-Version: 1.0 To: Turbine Torque Users List Subject: Re: Problem with torque.init References: <20030430151500.73558.qmail@web14510.mail.yahoo.com> In-Reply-To: <20030430151500.73558.qmail@web14510.mail.yahoo.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 Matthieu DELAHAIS wrote: > The problem is that my program didn't make the > torque.init... I trace the program and I found the > problem was in the class TorqueDataSourceFactory on > the method ConnectionPoolDataSource > initCPDS(Configuration configuration). The problem is > that the line : > Configuration c = configuration.subset("connection"); > return null (c = null); > Any idea will be very welcome! Unfortunately the method really stupidly returns null on connection failure, instead of throwing an exception - I recently experienced this problem. Basically torque is not connecting to your database, possibly because it is not reading the config file correctly. Unfortunately torque doesn't seem to throw an exception on config file being missing either, which doesn't help you either. To make sure your config file is being read, make sure that a file called torque.log is appearing - there should be some clues in there. Good luck! Regards, Graham -- ----------------------------------------- minfrin@sharp.fm "There's a moon over Bourbon Street tonight..."