Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 57516 invoked from network); 8 Mar 2006 19:28:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Mar 2006 19:28:17 -0000 Received: (qmail 16014 invoked by uid 500); 8 Mar 2006 19:28:16 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 15993 invoked by uid 500); 8 Mar 2006 19:28:15 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 15982 invoked by uid 99); 8 Mar 2006 19:28:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2006 11:28:15 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.142.198.200] (HELO smtp101.sbc.mail.mud.yahoo.com) (68.142.198.200) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 08 Mar 2006 11:28:14 -0800 Received: (qmail 46034 invoked from network); 8 Mar 2006 19:27:52 -0000 Received: from unknown (HELO ?127.0.0.1?) (alex?chen@sbcglobal.net@66.147.215.243 with plain) by smtp101.sbc.mail.mud.yahoo.com with SMTP; 8 Mar 2006 19:27:52 -0000 Message-ID: <440F2F74.5050507@sbcglobal.net> Date: Wed, 08 Mar 2006 11:24:36 -0800 From: Alex Chen Reply-To: alex_chen@sbcglobal.net User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: torque-user@db.apache.org Subject: unique constraint violation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have seem the following exceptions in my application: java.sql.SQLException: ORA-00001: unique constraint (DBUSER.USER_INFO_PK) violated It seems that the same primary key has been used again by the ID broker. When we use Torque to 'save' the object, the ID broker automatically allocates the primary key for that object, right? I do not know what kind of scenario can cause the exception? When this happens, does ID broker try to reuse the same ID for the next insertion? If so, wouldn't that make the exception happen indefinitely? Another questions is that I also see the following warning message in my log: WARN [main] IDBroker - IDBroker is being used with db 'payroll', which does not support transactions. IDBroker attempts to use transactions to limit the possibility of duplicate key generation. Without transactions, duplicate key generation is possible if multiple JVMs are used or other means are used to write to the database. This may be something that causes the problem. How do I let IDBroker know that my DB server support 'transaction'? I am using Oracle and definitely it support transaction. Any help is appreciated. Alex --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org