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

JDBC driver

From: "Wong, RYM (Richard)" <R(dot)Y(dot)M(dot)Wong(at)rl(dot)ac(dot)uk>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: JDBC driver
Date: 2005-02-16 12:50:18
Message-ID: 4CCDA61615BC0342B52F3D30F88134E20AC941@exchange31.fed.cclrc.ac.uk (view raw or flat)
Thread:
Lists: 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(dot)y(dot)m(dot)wong(at)rl(dot)ac(dot)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.


Responses

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2005-02-16 19:45:01
Subject: Re: JDBC driver
Previous:From: Tore HalsetDate: 2005-02-16 12:05:31
Subject: pst.setNull(2, Types.BLOB)

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