Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 30000 invoked from network); 16 Feb 2004 22:39:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Feb 2004 22:39:26 -0000 Received: (qmail 22830 invoked by uid 500); 16 Feb 2004 22:39:10 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 22818 invoked by uid 500); 16 Feb 2004 22:39:10 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 22804 invoked from network); 16 Feb 2004 22:39:10 -0000 Received: from unknown (HELO solar.servlets.net) (209.162.192.251) by daedalus.apache.org with SMTP; 16 Feb 2004 22:39:10 -0000 Received: from fastasdell.localhost.localdomain (pcp02470760pcs.union01.nj.comcast.net [68.37.101.90]) by solar.servlets.net (8.12.8/8.12.8) with ESMTP id i1GMdAQr030516; Mon, 16 Feb 2004 14:39:10 -0800 Subject: "Fixed", was: Re: setLimit NPEs? From: Dave Newton To: Apache Torque Users List Cc: Sreenivas Anupindi , Oliver Strube In-Reply-To: <1076965113.6961.144.camel@fastasdell.localhost.localdomain> References: <1076965113.6961.144.camel@fastasdell.localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8-3mdk Date: 16 Feb 2004 17:38:29 -0500 Message-Id: <1076971110.6956.151.camel@fastasdell.localhost.localdomain> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mon, 2004-02-16 at 15:58, Dave Newton wrote: > If I comment out the setLimit line it all works fine, otherwise I get > the NPE. > > I'm running Torque 3.0.2 (don't ask, don't know) and MySQL, Java 1.4.1 Well, looking through the change logs of Torque 3.1 I found a "# TRQS138: NullPointer Exception When not setting the DbName explicitly" change. If I change my example code to include a c.setDbName(...) after I do the setLimit call it works. Yeah yeah, I wonder why we're not using 3.1 too :/ Thanks, Dave --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org