RE: null pointer exception

From: Peter Mount <petermount(at)maidstone(dot)gov(dot)uk>
To: "'Christian Setzkorn'" <C(dot)Setzkorn(at)csc(dot)liv(dot)ac(dot)uk>, pgsql-interfaces(at)postgresql(dot)org
Subject: RE: null pointer exception
Date: 2000-10-31 11:56:49
Message-ID: 1B3D5E532D18D311861A00600865478CF1B4A4@exchange1.nt.maidstone.gov.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

What is url?

You need to use either:

jdbc:postgresql:db Where host is localhost
or
jdbc:postgresql://host/db

Peter

--
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount(at)maidstone(dot)gov(dot)uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council

-----Original Message-----
From: Christian Setzkorn [mailto:C(dot)Setzkorn(at)csc(dot)liv(dot)ac(dot)uk]
Sent: Tuesday, October 31, 2000 11:38 AM
To: pgsql-interfaces(at)postgresql(dot)org
Subject: [INTERFACES] null pointer exception

dear mailing list

i am trying to built a jdbc connection to postgres .... but

db = DriverManager.getConnection("jdbc:postgresql://url", "username",
"");

throws a null pointer exception. could anyone tell me what might be the
reason? many many thanks in advance.

--
All the best
Chris

***********************************************************

Mr. C. Setzkorn (Phd Student)
Department of Computer Science
University of Liverpool
Chadwick Building, room G47
Peach Street, Liverpool L69 7ZF
United Kingdom

Email: chris(at)csc(dot)liv(dot)ac(dot)uk
Phone: 0044 151 794 3692
Fax: 0044 151 794 3715
homepage: http://www.csc.liv.ac.uk/~chris

Browse pgsql-interfaces by date

  From Date Subject
Next Message Dave Page 2000-10-31 12:45:58 RE: RE: JDBC now needs updates for large objects
Previous Message Christian Setzkorn 2000-10-31 11:37:40 null pointer exception