From: | Guillaume Cottenceau <gc(at)mnc(dot)ch> |
---|---|
To: | Stéphane RIFF <stephane(dot)riff(at)cerene(dot)fr>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Connection pool problem |
Date: | 2005-03-02 08:35:42 |
Message-ID: | 87is4av40x.fsf@meuh.mnc.ch |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Stéphane RIFF | 2005-03-02 09:14:25 | Re: Connection pool problem |
Previous Message | Guillaume Cottenceau | 2005-03-02 08:32:06 | Re: impossible to update rows specifying columns with NULL |