Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 94438 invoked from network); 12 Aug 2010 08:29:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 08:29:12 -0000 Received: (qmail 11807 invoked by uid 500); 12 Aug 2010 08:29:12 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 11594 invoked by uid 500); 12 Aug 2010 08:29:11 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 11577 invoked by uid 500); 12 Aug 2010 08:29:09 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 11574 invoked by uid 99); 12 Aug 2010 08:29:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 08:29:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 08:29:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7C8SmjH023550 for ; Thu, 12 Aug 2010 08:28:48 GMT Message-ID: <5538210.6071281601728222.JavaMail.jira@thor> Date: Thu, 12 Aug 2010 04:28:48 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-2277) Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_PK_47 in statemen In-Reply-To: <82906822.1260449992818.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-2277: ------------------------------- Priority: Minor (was: Major) > Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_PK_47 in statemen > --------------------------------------------------------------------------------------------- > > Key: CAMEL-2277 > URL: https://issues.apache.org/activemq/browse/CAMEL-2277 > Project: Apache Camel > Issue Type: Bug > Components: camel-bam > Affects Versions: 1.6.2, 2.0.0, 2.1.0 > Reporter: Charles Moulliard > Priority: Minor > > When the component camel-bam / BamRoutesTest is tested using the profile -P openjpa or the new one -P eclipselink, than errors like this one are generated > {code} > 2009-12-10 11:52:10,916 [ead 0: seda://a] DEBUG DefaultListableBeanFactory - Creating instance of bean 'org.apache.camel.bam.model.ProcessInstance' > 2009-12-10 11:52:10,916 [ead 0: seda://a] DEBUG DefaultListableBeanFactory - Finished creating instance of bean 'org.apache.camel.bam.model.ProcessInstance' > 2009-12-10 11:52:10,916 [ead 0: seda://a] DEBUG JpaBamProcessorSupport - About to flush on entity: ProcessInstance[123] with key: 123 > 2009-12-10 11:52:10,931 [ead 0: seda://a] DEBUG BamProcessorSupport - Correlation key: 123 with entity: ProcessInstance[123] > 2009-12-10 11:52:10,931 [ead 0: seda://a] DEBUG JpaBamProcessor - Processing process instance: ProcessInstance[123] > 2009-12-10 11:52:10,931 [ead 0: seda://a] DEBUG ActivityState - Activity first message: ActivityState[4 on ProcessInstance[123] Activity[5 name: a]] > 2009-12-10 11:52:10,931 [ead 0: seda://a] DEBUG ActivityState - Activity complete: ActivityState[4 on ProcessInstance[123] Activity[5 name: a]] > 2009-12-10 11:52:10,947 [ead 0: seda://a] ERROR BamProcessorSupport - Caught: org.springframework.orm.jpa.JpaSystemException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DatabaseException > Internal Exception: java.sql.SQLException: Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_PK_47 in statement [INSERT INTO CAMEL_ACTIVITYSTATE (ID, RECEIVEDMESSAGECOUNT, TIMEOVERDUE, ESCALATIONLEVEL, TIMEEXPECTED, PROCESSINSTANCE_CORRELATIONKEY, ACTIVITYDEFINITION_ID) VALUES (?, ?, ?, ?, ?, ?, ?)] > Error Code: -104 > Call: INSERT INTO CAMEL_ACTIVITYSTATE (ID, RECEIVEDMESSAGECOUNT, TIMEOVERDUE, ESCALATIONLEVEL, TIMEEXPECTED, PROCESSINSTANCE_CORRELATIONKEY, ACTIVITYDEFINITION_ID) VALUES (?, ?, ?, ?, ?, ?, ?) > bind => [4, 0, null, 0, null, 123, null] > Query: InsertObjectQuery(ActivityState[4 on ProcessInstance[123] null]); nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DatabaseException > Internal Exception: java.sql.SQLException: Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_PK_47 in statement [INSERT INTO CAMEL_ACTIVITYSTATE (ID, RECEIVEDMESSAGECOUNT, TIMEOVERDUE, ESCALATIONLEVEL, TIMEEXPECTED, PROCESSINSTANCE_CORRELATIONKEY, ACTIVITYDEFINITION_ID) VALUES (?, ?, ?, ?, ?, ?, ?)] > Error Code: -104 > {code} > More information is required about datamodel and relations in order to solve this issue. > Everything works fine with Hibernate profile -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.