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

Re: Something unusual has occured to cause the driver to

From: Dave Weis <djweis(at)sjdjweis(dot)com>
To: Larry Rogers <larry(at)lwrogersjr(dot)org>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Something unusual has occured to cause the driver to
Date: 2001-09-10 01:15:50
Message-ID: Pine.LNX.4.21.0109092014470.10041-100000@oliver.internal.sjdjweis.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Your connection url looks funny, it should probably be more like
jdbc:postgresql://localhost/testdb

dave

On Sun, 9 Sep 2001, Larry Rogers wrote:

> exception: Exception: java.lang.NullPointerException
> Stack Trace:
> java.lang.NullPointerException
> 	at org.postgresql.Connection.openConnection(Connection.java:148)
> 	at org.postgresql.Driver.connect(Driver.java:122)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:517)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:177)
> 	at TestPostGreSQL.main(TestPostGreSQL.java:17)
> End of Stack Trace
>         final String url = "jdbc:postgresql://localhost:5432?database=testdb";


-- 
Dave Weis             "I believe there are more instances of the abridgement
djweis(at)sjdjweis(dot)com   of the freedom of the people by gradual and silent
                      encroachments of those in power than by violent 
                      and sudden usurpations."- James Madison


In response to

Responses

pgsql-jdbc by date

Next:From: Larry RogersDate: 2001-09-10 01:39:44
Subject: Re: Something unusual has occured to cause the driver to fail. NullPointerException
Previous:From: Bruce MomjianDate: 2001-09-10 00:15:20
Subject: Re: [HACKERS] Troubles using German Umlauts with JDBC

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