X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4C631D1B182 for ; Fri, 30 Jul 2004 08:31:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77406-08 for ; Fri, 30 Jul 2004 11:31:10 +0000 (GMT) Received: from mail45.e.nsc.no (mail45.e.nsc.no [193.213.115.45]) by svr1.postgresql.org (Postfix) with ESMTP id E2B18D1B1AA for ; Fri, 30 Jul 2004 08:31:02 -0300 (ADT) Received: from seymour.intern.yoyo.no (ti122110a080-5272.bb.online.no [83.109.20.152]) by mail45.nsc.no (8.12.11/8.12.11) with ESMTP id i6UBV3t3018013; Fri, 30 Jul 2004 13:31:03 +0200 (CEST) Received: from anders by seymour.intern.yoyo.no with local (Exim 3.36 #1 (Debian)) id 1BqVbH-0005rG-00; Fri, 30 Jul 2004 13:30:59 +0200 Date: Fri, 30 Jul 2004 13:30:59 +0200 From: Anders Hermansen To: "Vianen, Jeroen van" Cc: pgsql-jdbc@postgresql.org Subject: Re: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown Message-ID: <20040730113059.GA22368@online.no> Mail-Followup-To: "Vianen, Jeroen van" , pgsql-jdbc@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Operating-System: Linux/2.6.8-rc1-mm1 (i686) User-Agent: Mutt/1.5.6+20040523i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/336 X-Sequence-Number: 10720 * 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