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

JDBC Drivers + Postgres 6.3.2

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
If anybody can help me i would appreciate it:

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?
     Connection db;

public connect() throws SQLException,ClassNotFoundException
          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??

In response to


pgsql-general by date

Next:From: Joao Paulo FelixDate: 1998-05-29 18:29:24
Subject: primary key attribute
Previous:From: Peter MountDate: 1998-05-29 05:57:36
Subject: RE: [GENERAL] Re: [HACKERS] Off-topic: Communication. (was: Conne ct string again)

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