I'm using the TDK 2.2.01 and have it working with my oracle database and
velocity templates.  My trouble is that when i try to insert a record that
already exists (pk violation), an exception is thrown.  i can catch the
exception, but when i try to call select on the peer, the connection object
is null and an exception is thrown there.  

        try 
        {
                // exception thrown here for pk violation
                ProductIdPeer.doInsert(criteria);
        } catch ( Exception e)
        {
                context.put("exceptionMessage", e.getMessage());
        }
                // null connection thrown here.
        List productList = ProductIdPeer.doSelectAll();

i've searched a little on the mailing list archives and there's some mention
of giving back connections?  in my code, i'm not doing anything with
connections at all, i thought the om classes handled all that.  does anyone
have ideas why the connection is being used as null?  is there an easy know
fix for this?

Mark Lybarger
[EMAIL PROTECTED]
CBC Companies
614.442.3741

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.455 / Virus Database: 255 - Release Date: 2/13/2003
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to