Re: Connection pool problem - Mailing list pgsql-jdbc

From Guillaume Cottenceau
Subject Re: Connection pool problem
Date
Msg-id 87is4av40x.fsf@meuh.mnc.ch
Whole thread Raw
In response to Re: Connection pool problem  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: Connection pool problem
List 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

pgsql-jdbc by date:

Previous
From: Guillaume Cottenceau
Date:
Subject: Re: impossible to update rows specifying columns with NULL
Next
From: Stéphane RIFF
Date:
Subject: Re: Connection pool problem