Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A7DFD63464F for ; Fri, 13 Mar 2009 20:19:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 19041-01 for ; Fri, 13 Mar 2009 20:19:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id 9395D63461B for ; Fri, 13 Mar 2009 20:19:33 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LiGf5-0002Oq-DE for pgsql-jdbc@postgresql.org; Fri, 13 Mar 2009 16:19:31 -0700 Message-ID: <22506898.post@talk.nabble.com> Date: Fri, 13 Mar 2009 16:19:31 -0700 (PDT) From: bsilva To: pgsql-jdbc@postgresql.org Subject: Postgres transaction error MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: bsilva@bluestarenergy.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.587 tagged_above=0 required=5 tests=DNS_FROM_OPENWHOIS=2.431, WHOIS_MYPRIVREG=0.156 X-Spam-Level: ** X-Archive-Number: 200903/75 X-Sequence-Number: 19405 Hi, I am using postgres database in my application. Today I have saw in application's log the following error ERROR: current transaction is aborted, commands ignored until end of transaction block After this exception all the users lose access to the application. If the problem has been generated by a error in my application, I think this error only must affect the current transaction but no other transactions. I am not sure what is the cause of this problem, can you help me? This is exception's stack trace: 10:45:31,866 ERROR [STDERR] org.postgresql.util.PSQLException: ERROR: insert or update on table "history" violates foreign key constraint "history_enteredby_fkey" Detail: Key (enteredby)=(-1) is not present in table "access". 10:45:31,867 ERROR [STDERR] at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1548) 10:45:31,867 ERROR [STDERR] at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1316) 10:45:31,867 ERROR [STDERR] at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191) 10:45:31,867 ERROR [STDERR] at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452) 10:45:31,867 ERROR [STDERR] at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:351) 10:45:31,867 ERROR [STDERR] at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:344) 10:45:31,867 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 10:45:31,867 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) 10:45:31,867 ERROR [STDERR] at org.aspcfs.apps.workFlowManager.WorkflowManager.executeComponent(WorkflowManager.java:159) 10:45:31,867 ERROR [STDERR] at org.aspcfs.apps.workFlowManager.WorkflowManager.execute(WorkflowManager.java:77) 10:45:31,867 ERROR [STDERR] at org.aspcfs.controller.objectHookManager.ObjectHook.run(ObjectHook.java:234) 10:45:31,937 ERROR [STDERR] org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block -- View this message in context: http://www.nabble.com/Postgres-transaction-error-tp22506898p22506898.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.