From: | PostreSQL Server <postgres(at)tmt(dot)kaybee(dot)org> |
---|---|
To: | pgsql-general(at)postgreSQL(dot)org |
Subject: | JDBC Drivers + Postgres 6.3.2 |
Date: | 1998-05-29 17:57:39 |
Message-ID: | Pine.LNX.3.96.980529134830.3723C-100000@tmt.kaybee.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
If anybody can help me i would appreciate it:
OS: HP-UX
java.version: Pre-release(2) HP-UX Java 1.1.2
my driver loads correctly but when i try to make a connection to the
database, i get a NullPointerException.
here's the code:
public String driverName = "postgresql.Driver";
public String url = "jdbc:postgresql://hostname:5432/commanddb?
user=*&password=*";
Connection db;
public connect() throws SQLException,ClassNotFoundException
{
Class.forName(driverName);
println("Driver class loaded.");
db = DriverManager.getConnection(url);
.... it fails here.
the postmaster is running and on the right port. The database commanddb
exists and has test data.
when the app is run, the debug output from the postmaster is:
postmaster: ServerLoop: handling reading 6
postmaster: ServerLoop: handling reading 6
postmaster: ServerLoop: handling reading 6
any ideas??
From | Date | Subject | |
---|---|---|---|
Next Message | Joao Paulo Felix | 1998-05-29 18:29:24 | primary key attribute |
Previous Message | Peter Mount | 1998-05-29 05:57:36 | RE: [GENERAL] Re: [HACKERS] Off-topic: Communication. (was: Conne ct string again) |