Skip site navigation (1) Skip section navigation (2)

Re: 8.0 drivers released.

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Andreas Joseph Krogh <andreak(at)officenet(dot)no>,Kris Jurka <books(at)ejurka(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: 8.0 drivers released.
Date: 2005-01-18 22:17:37
Message-ID: (view raw or whole thread)
Lists: pgsql-jdbc
Oliver Jowett wrote:
> Andreas Joseph Krogh wrote:
>> NullPointerException:
>> Caused by: java.lang.NullPointerException
>>         at org.postgresql.Driver.getDefaultProperties(
>>         at org.postgresql.Driver.connect(
>>         at
> is:
> Enumeration urlEnum = 
> getClass().getClassLoader().getResources("org/postgresql/"); 
> I guess that org.postgresql.Driver is being loaded by the bootstrap 
> classloader (getClassLoader() returns null). How exactly are you getting 
> the driver jar into the classpath?

I can reproduce the exception by running test code when the driver is 
loaded from the bootstrap classpath 

It seems reasonable to fall back to the system classloader if the driver 
was loaded from the bootstrap classloader. I will commit a change to do 
this shortly.


In response to


pgsql-jdbc by date

Next:From: Vadim NasardinovDate: 2005-01-18 22:34:45
Subject: context classloader (was: Re: 8.0 drivers released.)
Previous:From: Tom LaneDate: 2005-01-18 21:58:52
Subject: Re: Two bugs found (and patch included)

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group