From: Kris Jurka <books@ejurka.com>
To: Florent Guillaume <fg@nuxeo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: unwrapping InvocationTargetException in PGXAConnection.ConnectionHandler
Date: Sat, 19 Mar 2011 18:49:56 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1103191848320.28447@leary.csoft.net> (raw)
In-Reply-To: <AANLkTiky+UU1AzCo4UOQznDB8b8EbbNyB_M7YPHuw8B3@mail.gmail.com>
References: <AANLkTiky+UU1AzCo4UOQznDB8b8EbbNyB_M7YPHuw8B3@mail.gmail.com>
On Fri, 11 Mar 2011, Florent Guillaume wrote:
> Using a Connection from an XAConnection, we've come across some stack
> traces looking like:
>
> Caused by: java.lang.reflect.UndeclaredThrowableException
>
> So the issue is that although we try to catch SQLException, what's
> actually thrown is an UndeclaredThrowableException wrapping a
> InvocationTargetException wrapping the underlying PSQLException.
>
Yes, your analysis is correct. This was previously fixed in CVS, but
hasn't made it to a released version yet.
Kris Jurka
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: books@ejurka.com, fg@nuxeo.com
Subject: Re: unwrapping InvocationTargetException in PGXAConnection.ConnectionHandler
In-Reply-To: <alpine.BSO.2.00.1103191848320.28447@leary.csoft.net>
References: <AANLkTiky+UU1AzCo4UOQznDB8b8EbbNyB_M7YPHuw8B3@mail.gmail.com> <alpine.BSO.2.00.1103191848320.28447@leary.csoft.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