db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sez Sez <sezmillen...@yahoo.es>
Subject Problems with save
Date Mon, 05 Apr 2004 11:16:58 GMT
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


Mime
View raw message