Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 18835633C1B for ; Fri, 13 Mar 2009 23:53:52 -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 62103-05 for ; Fri, 13 Mar 2009 23:53:38 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f106.google.com (mail-qy0-f106.google.com [209.85.221.106]) by mail.postgresql.org (Postfix) with ESMTP id D40B1632E7F for ; Fri, 13 Mar 2009 23:53:47 -0300 (ADT) Received: by qyk4 with SMTP id 4so535585qyk.15 for ; Fri, 13 Mar 2009 19:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=IVwoHaK7mf9KqZsO+hGdpfiShiyytRMRen4TcSAt+/c=; b=P7rt65ZIughfZDtJzesI7wZnj73iWGy3yizdFktmUnGbTsMShW3K55HrEyRQacplhD RrM+P8Q1INungRmN7942URKjZ622gr9g89AovACsOP+qTqtG7e5Y6z+GCBpfl1alz5sJ NPQ7mFuPd+sevHHJ+9BqTNB7dXzc/FCNO8Tpc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=Wxim1bmBk1KQQyQL9PQEHAUtZ1C1yPG44V6bCbhvAyOeWV/C5wdN1t4blUb5AtY4ml nCGztcfcttrktTj2OK2WuC4AOuXMyIwoMbueT64BKDQLJFeyX6Hnfl3ma0RvZSG4YqK9 AMn9gkkkxDBSX52FwxvO50abj90lycDsuTNu8= MIME-Version: 1.0 Received: by 10.229.73.193 with SMTP id r1mr1775725qcj.53.1236999216923; Fri, 13 Mar 2009 19:53:36 -0700 (PDT) In-Reply-To: <22506898.post@talk.nabble.com> References: <22506898.post@talk.nabble.com> Date: Fri, 13 Mar 2009 22:53:36 -0400 X-Google-Sender-Auth: 747428f121c01b12 Message-ID: <491f66a50903131953x268875eehd25559cd395d5191@mail.gmail.com> Subject: Re: Postgres transaction error From: Dave Cramer To: bsilva Cc: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=0016364ee022e9841504650b52c4 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.157 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001, WHOIS_MYPRIVREG=0.156 X-Spam-Level: X-Archive-Number: 200903/76 X-Sequence-Number: 19406 --0016364ee022e9841504650b52c4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, Apparently you are only using one connection. You must rollback the transaction that caused the error then commands can resume Dave On Fri, Mar 13, 2009 at 7:19 PM, bsilva wrote: > > 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. > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > --0016364ee022e9841504650b52c4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

Apparently you are only using one connection.

You must r= ollback the transaction that caused the error then commands can resume
<= br>Dave

On Fri, Mar 13, 2009 at 7:19 PM, = bsilva <b= silva@bluestarenergy.com> wrote:

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 thi= s
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: inser= t
or update on table "history" violates foreign key constraint
"history_enteredby_fkey"
=A0Detail: Key (enteredby)=3D(-1) is not present in table "access&quo= t;.
10:45:31,867 ERROR [STDERR] =A0 =A0 at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutor= Impl.java:1548)
10:45:31,867 ERROR [STDERR] =A0 =A0 at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.j= ava:1316)
10:45:31,867 ERROR [STDERR] =A0 =A0 at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191= )
10:45:31,867 ERROR [STDERR] =A0 =A0 at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.= java:452)
10:45:31,867 ERROR [STDERR] =A0 =A0 at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2S= tatement.java:351)
10:45:31,867 ERROR [STDERR] =A0 =A0 at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.= java:344)
10:45:31,867 ERROR [STDERR] =A0 =A0 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25)
10:45:31,867 ERROR [STDERR] =A0 =A0 at
java.lang.reflect.Method.invoke(Method.java:597)
10:45:31,867 ERROR [STDERR] =A0 =A0 at
org.aspcfs.apps.workFlowManager.WorkflowManager.executeComponent(WorkflowMa= nager.java:159)
10:45:31,867 ERROR [STDERR] =A0 =A0 at
org.aspcfs.apps.workFlowManager.WorkflowManager.execute(WorkflowManager.jav= a:77)
10:45:31,867 ERROR [STDERR] =A0 =A0 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.nabbl= e.com/Postgres-transaction-error-tp22506898p22506898.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

--0016364ee022e9841504650b52c4--