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: Pine.LNX.3.96.980529134830.3723C-100000@tmt.kaybee.org (view raw or flat)
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??


In response to

Responses

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-2014 The PostgreSQL Global Development Group