Re: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown - Mailing list pgsql-jdbc

From Anders Hermansen
Subject Re: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown
Date
Msg-id 20040730113059.GA22368@online.no
Whole thread Raw
In response to PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown  ("Vianen, Jeroen van" <jeroen.van.vianen@satama.com>)
List pgsql-jdbc
* Vianen, Jeroen van (jeroen.van.vianen@satama.com) wrote:
> I am wondering whether it is possible to mimic JDK 1.4 root cause exception
> handling in PBatchUpdateException so a decent stack trace can be logged.

As a workaround put:
hibernate.jdbc.batch_size = 0
in your hibernate.properties file.

I believe this will disable Hibernate use of batching, and you will get
a "nicer" stack trace.


Hope this help,
Anders

pgsql-jdbc by date:

Previous
From: "Vianen, Jeroen van"
Date:
Subject: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown
Next
From: Nick Selva
Date:
Subject: Re: Calling PGSQL Stored function thru JDBC