From torque-dev-return-7694-apmail-db-torque-dev-archive=db.apache.org@db.apache.org Sat Jan 27 09:11:10 2007 Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 54101 invoked from network); 27 Jan 2007 09:11:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jan 2007 09:11:10 -0000 Received: (qmail 43592 invoked by uid 500); 27 Jan 2007 09:11:16 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 43574 invoked by uid 500); 27 Jan 2007 09:11:16 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 43563 invoked by uid 99); 27 Jan 2007 09:11:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Jan 2007 01:11:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Jan 2007 01:11:09 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 53EDA7142B6 for ; Sat, 27 Jan 2007 01:10:49 -0800 (PST) Message-ID: <1378004.1169889049340.JavaMail.jira@brutus> Date: Sat, 27 Jan 2007 01:10:49 -0800 (PST) From: "Thomas Fischer (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Closed: (TORQUE-79) TorqueInstance.getConnection should throw an interpretable error message if Torque is not initialized In-Reply-To: <14157688.1169630509332.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TORQUE-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fischer closed TORQUE-79. -------------------------------- Resolution: Fixed Fix Version/s: (was: 4.0) 3.3 > TorqueInstance.getConnection should throw an interpretable error message if Torque is not initialized > ----------------------------------------------------------------------------------------------------- > > Key: TORQUE-79 > URL: https://issues.apache.org/jira/browse/TORQUE-79 > Project: Torque > Issue Type: Improvement > Components: Runtime > Affects Versions: 3.3-RC1 > Reporter: Thomas Fischer > Assigned To: Thomas Fischer > Priority: Trivial > Fix For: 3.3 > > > From the users mailing list, if Torque.getConection() is called and Torque is not initiialized, the error message is now > java.lang.NullPointerException: There was no DataSourceFactory configured for the connection XXX > at org.apache.torque.TorqueInstance.getConnection(TorqueInstance.java:711) > at org.apache.torque.Torque.getConnection(Torque.java:268) > at org.apache.torque.util.Transaction.beginOptional(Transaction.java:80) > at org.apache.torque.util.Transaction.begin(Transaction.java:62) > ..... > There should be a check whether Torque is initialized, and an exception thrown which says that Torque is not initialized if it is not. > This issue does not block the release of Torque-3.3-RC2 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org