From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | Manuel Gil Pérez <manuel(at)dif(dot)um(dot)es> |
Cc: | <pgsql-patches(at)postgresql(dot)org>, <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: [PATCHES] IPv6 patch doesn't work fine |
Date: | 2003-06-26 12:02:01 |
Message-ID: | Pine.LNX.4.33.0306260752470.18129-100000@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc pgsql-patches |
On Thu, 26 Jun 2003, Manuel Gil [iso-8859-1] Prez wrote:
> Hi all.
>
> I have a Java application that it connects to the PostgreSQL database with
> IPv6 patch installed.
>
> Something unusual has occured to cause the driver to fail.
> Please report this exception: java.lang.NullPointerException
> at org.postgresql.Driver.connect(Driver.java:125)
> at java.sql.DriverManager.getConnection(DriverManager.java:512)
> at java.sql.DriverManager.getConnection(DriverManager.java:171)
> at piscis.pki.ca.database.DBManager.connect(DBManager.java:78)
>
> In my class DBManager I have the following connection method:
>
> class.ForName("org.postgresql.Driver");
> Connection connect = DriverManager.getConnection(<dir. IPv6>,<user
> name>,<password>);
>
What exactly do you have for the URL in the first argument to
getConnection? If you have a direct IPv6 address like
jdbc:postgresql://::1 it will not work at the moment because it tries to
parse the url using the colon as a delimiter which works fine for IPv4
addresses, but not IPv6 see org.postgresql.Driver#parseURL for more info.
What happens if you are using a name that resolves to an IPv6 address?
You're probably the first person to actually try this. I will look into
this further, but it may take me a while to get IPv6 up and running on my
machine.
Kris Jurka
From | Date | Subject | |
---|---|---|---|
Next Message | Kim Ho | 2003-06-26 17:27:59 | Closing a statement |
Previous Message | Manuel Gil Pérez | 2003-06-26 10:36:53 | [PATCHES] IPv6 patch doesn't work fine |
From | Date | Subject | |
---|---|---|---|
Next Message | Rod Taylor | 2003-06-26 14:03:59 | pg_dump fix |
Previous Message | Manuel Gil Pérez | 2003-06-26 10:36:53 | [PATCHES] IPv6 patch doesn't work fine |