JDBC driver - Mailing list pgsql-jdbc

From Wong, RYM (Richard)
Subject JDBC driver
Date
Msg-id 4CCDA61615BC0342B52F3D30F88134E20AC941@exchange31.fed.cclrc.ac.uk
Whole thread Raw
Responses Re: JDBC driver
List pgsql-jdbc

Hi,

I have a problem of building a JDBC driver in LINUX environment.

Postgresql server: 7.4.3
The version of Apache Ant: 1.5.2-23
Linux: 2.4.21-27.0.2.EL #1 Wed Jan 12 23:35:46 EST 2005 i686 athlon i386 GNU/Linux
The version of JDBC driver to be built: 3

Error messages:
*********************************************
Buildfile: ./build.xml

all:

prepare:

check_versions:

check_driver:

driver:

compile:
    [javac] Compiling 77 source files to /tmp/jdbc-driver/build
    [javac] /tmp/jdbc-driver/org/postgresql/jdbc3/Jdbc3Statement.java:28: error: Invalid checked exception class `java.sql.SQLException' in `throws' clause. The exception must be a subclass of an exception thrown by `org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)' from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.

    [javac]             public PGRefCursorResultSet createRefCursorResultSet (String cursorName) throws SQLException
    [javac]                                          ^
    [javac] /tmp/jdbc-driver/org/postgresql/jdbc3/Jdbc3PreparedStatement.java:23: error: Invalid checked exception class `java.sql.SQLException' in `throws' clause. The exception must be a subclass of an exception thrown by `org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)' from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.

    [javac]             public PGRefCursorResultSet createRefCursorResultSet (String cursorName) throws SQLException
    [javac]                                          ^
    [javac] /tmp/jdbc-driver/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java:29: error: Method `org.postgresql.jdbc2.optional.PoolingDataSource.getDataSource(java.lang.String)' was defined with return type `org.postgresql.jdbc2.optional.PoolingDataSource' in class `org.postgresql.jdbc2.optional.PoolingDataSource'.

    [javac]        static Jdbc3PoolingDataSource getDataSource(String name)
    [javac]                                      ^
    [javac] /tmp/jdbc-driver/org/postgresql/jdbc3/Jdbc3CallableStatement.java:23: error: Invalid checked exception class `java.sql.SQLException' in `throws' clause. The exception must be a subclass of an exception thrown by `org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)' from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.

    [javac]             public PGRefCursorResultSet createRefCursorResultSet (String cursorName) throws SQLException
    [javac]                                          ^
    [javac] 4 errors

BUILD FAILED
*****************************************************
Any idea of fixing this?
Thank you for your attention.
Richard

***********************************************************************
Richard Wong
Atlas Centre
Rutherford Appleton Laboratory
Oxfordshire
United Kingdom
OX11 0QX

Telephone: 01235-446075
Email:  r.y.m.wong@rl.ac.uk
***********************************************************************
The contents of this email are sent in confidence for the use of the intended recipient only. If you are not one of the intended recipients do not take action on it or show it to anyone else, but return this email to the sender and delete your copy of it.

pgsql-jdbc by date:

Previous
From: Tore Halset
Date:
Subject: pst.setNull(2, Types.BLOB)
Next
From: Oliver Jowett
Date:
Subject: Re: JDBC driver