Re: unwrapping InvocationTargetException in PGXAConnection.ConnectionHandler

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: unwrapping InvocationTargetException in PGXAConnection.ConnectionHandler
Дата
Msg-id alpine.BSO.2.00.1103191848320.28447@leary.csoft.net
обсуждение исходный текст
Ответ на unwrapping InvocationTargetException in PGXAConnection.ConnectionHandler  (Florent Guillaume <fg@nuxeo.com>)
Список pgsql-jdbc

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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Sean Bowman
Дата:
Сообщение: Re: Problem with executeBatch and "A result was returned when none was expected"
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Invalid PSQLState used in connection classes