pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: David Kerr <dmk@mr-paradox.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Unable to commit: transaction marked for rollback
Date: Fri, 02 Jul 2010 17:43:51 +1200
Message-ID: <4C2D7C97.8010908@opencloud.com> (raw)
In-Reply-To: <20100701181528.GA97516@mr-paradox.net>
References: <20100701181528.GA97516@mr-paradox.net>

David Kerr wrote:
> 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

This looks like a JTA exception not a JDBC exception.

i.e. something has marked the TM-managed transaction for rollback via 
Transaction.setRollbackOnly()

This can happen for all sorts of reasons, from an explicit request from 
your application, through to container handling of an unexpected 
exception from an EJB, etc.

-O



view thread (13+ messages)  latest in thread

Message-ID: <4C2D7C97.8010908@opencloud.com>
Permalink:  ../4C2D7C97.8010908@opencloud.com/
Also on:    postgresql.org/message-id/4C2D7C97.8010908@opencloud.com

 · 

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: oliver@opencloud.com, dmk@mr-paradox.net
  Subject: Re: Unable to commit: transaction marked for rollback
  In-Reply-To: <4C2D7C97.8010908@opencloud.com>
  References: <20100701181528.GA97516@mr-paradox.net> <4C2D7C97.8010908@opencloud.com>

* 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