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 87182 invoked from network); 3 Apr 2003 17:50:42 -0000 Received: from dsl092-130-127.chi1.dsl.speakeasy.net (HELO bigbrother.net) (66.92.130.127) by daedalus.apache.org with SMTP; 3 Apr 2003 17:50:42 -0000 Received: from bigbrother.net (jenny@localhost [127.0.0.1]) by bigbrother.net (8.12.3/8.12.3/Debian-5) with ESMTP id h33HtP9X030510 for ; Thu, 3 Apr 2003 11:55:25 -0600 Received: (from jenny@localhost) by bigbrother.net (8.12.3/8.12.3/Debian-5) id h33HtOgo030508; Thu, 3 Apr 2003 11:55:24 -0600 Date: Thu, 3 Apr 2003 11:55:24 -0600 (CST) From: Jenny Brown To: Turbine Torque Users List Subject: problem configuring data source In-Reply-To: <5.1.0.14.2.20030402115853.02727020@mail.snowball.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm using Torque stand-alone, and am having trouble getting the data source factory configuration set up right. Here's what I'm seeing: DEBUG Thread-22 org.apache.torque.Torque (Torque.java:318) - handle: defaults DataSourceFactory: org.apache.torque.dsfactory.TorqueDataSourceFactory DEBUG Thread-22 org.apache.torque.dsfactory.TorqueDataSourceFactory (TorqueDataSourceFactory.java:124) - Starting initCPDS ERROR Thread-22 org.apache.torque.dsfactory.TorqueDataSourceFactory (TorqueDataSourceFactory.java:139) - java.lang.NullPointerException at org.apache.torque.dsfactory.TorqueDataSourceFactory.initCPDS(TorqueDataSourceFactory.java:129) at org.apache.torque.dsfactory.TorqueDataSourceFactory.initialize(TorqueDataSourceFactory.java:108) at org.apache.torque.Torque.initDataSourceFactories(Torque.java:323) at org.apache.torque.Torque.initialize(Torque.java:237) at org.apache.torque.Torque.init(Torque.java:406) at org.apache.torque.Torque.init(Torque.java:386) at HelperServlet.handleRequest(HelperServlet.java:109) at org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:372) ... [more snipped] I've tried setting all kinds of properties file keys for connections and pools and yet thing null pointer keeps appearing. I tried looking into the source xreference on the site for clues but it seems to be out of date; the line numbers don't match anything meaningful. The result of this is that Torque can't get connection to the database, which really limits its functionality (it works in most areas if I pass my own connection in, but some functions don't allow that). I'm really stuck on this, can't figure out what I am doing wrong that the data source factory won't configure/init properly. Ant can connect to my database just find with its build.properties. I'm calling Torque.init() with a path to a Torque.properties as well. I am certain the configuration is being read into torque because I can loop through the keys and see them in debugging. But somehow I'm missing something that the datasource wants, and I don't know what. Jenny Brown