From torque-user-return-4588-apmail-db-torque-user-archive=db.apache.org@db.apache.org Mon Apr 05 18:25:49 2004 Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 15398 invoked from network); 5 Apr 2004 18:25:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Apr 2004 18:25:49 -0000 Received: (qmail 76095 invoked by uid 500); 5 Apr 2004 18:25:36 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 76089 invoked by uid 500); 5 Apr 2004 18:25:36 -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 39391 invoked from network); 5 Apr 2004 12:53:48 -0000 Message-ID: <407156E5.6030709@ifit.uni-klu.ac.at> Date: Mon, 05 Apr 2004 14:53:57 +0200 From: Kostyantyn Shchekotykhin User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: Problems with save References: <20040405111658.75160.qmail@web10309.mail.yahoo.com> In-Reply-To: <20040405111658.75160.qmail@web10309.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p3 (Debian) at uni-klu.ac.at 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 Hi Sez, possibly the problem is in that you should provide a correct databse name of your datebase as it was set in your Torque properties. In your message you have written save(String name_conneciton). Maybe that will help. Regards, Kostya Sez Sez wrote: > Hi! > I have a problem when save a information with a > torque, with 3.0.2 version. > > If i try to save with method save(connection con), it > will do correctly. > If i try to save wiht method save(String > name_conneciton) > or save(), it will give me this > error: > "Connection object was null. This could be due to a > misconfiguration of the DataSourceFactory. Check > logs... > > The code is here > > public void save(String dbName) throws > TorqueException > { > Connection con = null; > try > { > con = Transaction.begin(dbName); > save(con); > Transaction.commit(con); > } > catch(TorqueException e) > { > Transaction.safeRollback(con); > throw e; > } > > } > > This code is generated by torque. > > ___________________________________________________ > Yahoo! Messenger - Nueva versión GRATIS > Super Webcam, voz, caritas animadas, y más... > http://messenger.yahoo.es > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org