pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Kerr <dmk@mr-paradox.net>
To: pgsql-jdbc@postgresql.org
Subject: Unable to commit: transaction marked for rollback
Date: Thu, 1 Jul 2010 11:15:28 -0700
Message-ID: <20100701181528.GA97516@mr-paradox.net> (raw)

Hello!

I'm intermittantly getting this error message in a java app. 
using Geronimo / Hibernate / Postgres 8.3.9

javax.transaction.RollbackException: Unable to commit: transaction marked for
rollback

Can someone give me a scenario where this would happen? "unable to commit"
makes everyone immediatly go to database issue. But it seems like an app 
issue to me.

I was thinking that maybe it's a 2 phase commit / XA or something like that.
(TX open, phase 1 commit fails, phase 2 commit throws this error?)

I can't imagine how this would happen within a single transaction setup.

Thanks!

Dave



view thread (13+ messages)  latest in thread

Message-ID: <20100701181528.GA97516@mr-paradox.net>
Permalink:  ../20100701181528.GA97516@mr-paradox.net/
Also on:    postgresql.org/message-id/20100701181528.GA97516@mr-paradox.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: dmk@mr-paradox.net
  Subject: Re: Unable to commit: transaction marked for rollback
  In-Reply-To: <20100701181528.GA97516@mr-paradox.net>
  References: <20100701181528.GA97516@mr-paradox.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox