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

RE: [INTERFACES] postgres jdbc class problem

From: Peter Mount <petermount(at)it(dot)maidstone(dot)gov(dot)uk>
To: "'Richard Morrell'" <richard(at)ednet(dot)co(dot)uk>, pgsql-interfaces(at)postgresql(dot)org
Subject: RE: [INTERFACES] postgres jdbc class problem
Date: 1999-09-30 16:29:23
Message-ID: (view raw or whole thread)
Lists: pgsql-interfaces
I don't know where it's getting these .class files, as they are

Tomorrow, I'll check this out.


Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.

-----Original Message-----
From: Richard Morrell [mailto:richard(at)ednet(dot)co(dot)uk]
Sent: 30 September 1999 17:11
To: pgsql-interfaces(at)postgresql(dot)org
Subject: [INTERFACES] postgres jdbc class problem


I'm writing a simple java applet that queries a postgres database using
JDBC.  The applet works fine in the appletviewer and in some copies of
Netscape and MSIE.  However, in most copies of Netscape and MSIE it
returns a NullPointerException.  The java console error messages aren't
that helpful, so I looked at my web server logs.  For the browsers which
are failing I noticed that they are requesting extra class files which
don't seem to be part of the postgres jdbc driver: 

[Thu Sep 30 15:28:05 1999] [error] [client] File does not
exist: /home/richard/public_html/postgresql/errors_en_US.class
[Thu Sep 30 15:28:05 1999] [error] [client] File does not
exist: /home/richard/public_html/postgresql/errors_en.class
[Thu Sep 30 15:28:05 1999] [error] [client] File does not
exist: /home/richard/public_html/postgresql/errors_en_US.class
[Thu Sep 30 15:28:05 1999] [error] [client] File does not
exist: /home/richard/public_html/postgresql/errors_en.class
[Thu Sep 30 15:28:05 1999] [error] [client] File does not
exist: /home/richard/public_html/postgresql/errors.class

Here is the java console message from netscape 4.6:

Netscape Communications Corporation -- Java 1.1.5
Type '?' for options.
Symantec Java! ByteCode Compiler Version 210.065
Copyright (C) 1996-97 Symantec Corporation
# Applet exception: java.lang.NullPointerException
  at postgresql.util.PSQLException.translate(Compiled Code)
  at postgresql.util.PSQLException.<init>(Compiled Code)
  at postgresql.Driver.connect(Compiled Code)
  at java.sql.DriverManager.getConnection(Compiled Code)
* at java.sql.DriverManager.getConnection(Compiled Code)
  at Code)
  at Code) CreateProcess: vcafe -netscape error=0
  at java.lang.Win32Process.<init>(Compiled Code)
  at java.lang.Runtime.exec(Compiled Code)
* at java.lang.Runtime.exec(Compiled Code)
  at netscape.debug.Debugger.launchDebugger(Compiled Code)
  at netscape.debug.Debugger.uncaughtException(Compiled Code)
  at netscape.applet.AppletThreadGroup.uncaughtException(Compiled Code)

I'm using postgres 6.5.1 with the new 6.5.1-2 JDBC driver that I
downloaded from  My code is faily straightforward:

public void run() {
	String url = "jdbc:postgresql://";
	String query = "select * from software";

	try {
	    // Class.forName("postgresql.Driver");
	} catch(Exception ex) {
	    setError("driver class: " + ex);

	try {
	    Vector results = new Vector();
	    Connection con = DriverManager.getConnection(url,
						"username", "password");
	    Statement stmt = con.createStatement();
	    ResultSet rs = stmt.executeQuery(query);
	    while ( {
		String s = rs.getString("description");
		int level = rs.getInt("ladder_level");
		String text = level + "   " + s;



	} catch(SQLException ex) {
	    setError("SQLException: " + ex);

Does anyone have any ideas about what might be wrong here?

Richard Morrell
Operations Manager - edNET: InternetWorkingSolutions -


pgsql-interfaces by date

Next:From: Dana L. HonesDate: 1999-09-30 19:29:25
Subject: ECPG and case sensitivity
Previous:From: Lamar OwenDate: 1999-09-30 16:14:40
Subject: Web Interfaces Information

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