Re: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown

From: Anders Hermansen <anders(at)yoyo(dot)no>
To: "Vianen, Jeroen van" <jeroen(dot)van(dot)vianen(at)satama(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown
Date: 2004-07-30 11:30:59
Message-ID: 20040730113059.GA22368@online.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

* Vianen, Jeroen van (jeroen(dot)van(dot)vianen(at)satama(dot)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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nick Selva 2004-07-30 16:10:35 Re: Calling PGSQL Stored function thru JDBC
Previous Message Vianen, Jeroen van 2004-07-30 09:59:21 PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown