From: Guillaume Cottenceau <gc@mnc.ch>
To: Stéphane RIFF <stephane.riff@cerene.fr>
To: pgsql-jdbc@postgresql.org
Subject: Re: Connection pool problem
Date: 02 Mar 2005 09:35:42 +0100
Message-ID: <87is4av40x.fsf@meuh.mnc.ch> (raw)
In-Reply-To: <4224CF2C.7020208@opencloud.com>
References: <42242041.8030604@cerene.fr>
<422456E7.8060303@opencloud.com>
<42246A2E.60604@cerene.fr>
<4224CF2C.7020208@opencloud.com>
Oliver Jowett <oliver 'at' opencloud.com> writes:
> Stéphane RIFF wrote:
>
> > 2005-03-01 12:23:44,156 : [WARN] SQLoader - java.lang.NullPointerException
>
> Can you get a stack trace for this exception? (the NPE, not the earlier one)
Stephan - in case, here's a method to get a human readable
stacktrace given an Exception object, if you don't use java 1.5:
public static String backtrace( Exception e ) {
StackTraceElement[] trace = e.getStackTrace();
StringBuffer sb = new StringBuffer();
for ( int i = 2; i < trace.length; i++ ) {
sb.append( "\t" ).append( trace[i].toString() ).append( "\n" );
}
return sb.toString();
}
--
Guillaume Cottenceau
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: gc@mnc.ch, stephane.riff@cerene.fr
Subject: Re: Connection pool problem
In-Reply-To: <87is4av40x.fsf@meuh.mnc.ch>
References: <42242041.8030604@cerene.fr> <422456E7.8060303@opencloud.com> <42246A2E.60604@cerene.fr> <4224CF2C.7020208@opencloud.com> <87is4av40x.fsf@meuh.mnc.ch>
* 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