pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anders Hermansen <anders@yoyo.no>
To: Vianen, Jeroen van <jeroen.van.vianen@satama.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown
Date: Fri, 30 Jul 2004 13:30:59 +0200
Message-ID: <20040730113059.GA22368@online.no> (raw)
In-Reply-To: <F9926D32A30ED511B8E30050044AB52E01F63716@ams010.satama.nl>
References: <F9926D32A30ED511B8E30050044AB52E01F63716@ams010.satama.nl>

* 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



view thread (3+ messages)  latest in thread

Message-ID: <20040730113059.GA22368@online.no>
Permalink:  ../20040730113059.GA22368@online.no/
Also on:    postgresql.org/message-id/20040730113059.GA22368@online.no

 · 

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: anders@yoyo.no, jeroen.van.vianen@satama.com
  Subject: Re: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown
  In-Reply-To: <20040730113059.GA22368@online.no>
  References: <F9926D32A30ED511B8E30050044AB52E01F63716@ams010.satama.nl> <20040730113059.GA22368@online.no>

* 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