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

Exceptions while building JDBC-drivers

From: Kalle Gustafsson <kalle(dot)gustafsson(at)iconmedialab(dot)se>
To: pgsql-ports(at)postgresql(dot)org
Subject: Exceptions while building JDBC-drivers
Date: 2001-08-10 14:33:37
Message-ID: 3B73F0C1.8050709@iconmedialab.se (view raw or flat)
Thread:
Lists: pgsql-ports
Hi.

I got the following exceptions while building PostgreSQL with jdbc enabled:

<snip>
...
gmake[3]: Entering directory `/usr/src/postgresql-7.1.2/src/interfaces/jdbc'
/opt/bin/ant -buildfile ../../../build.xml -Dmajor=7 -Dminor=1 
-Dfullversion=7.1.2 -Ddef_pgport=5432
Buildfile: ../../../build.xml

jar:

call:

prepare:

check_versions:

driver:
      [echo] Configured build for the JDBC2 Enterprise edition driver.

compile:
     [javac] Compiling 47 source files to 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/build
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/xa/XAConnectionImpl.java:57: 
cannot resolve symbol
     [javac] symbol  : class RollbackException
     [javac] location: package transaction
     [javac] import javax.transaction.RollbackException;
     [javac]                          ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/xa/ClientConnection.java:70: 
org.postgresql.xa.ClientConnection should be declared abstract; it does 
not define setHoldability(int) in org.postgresql.xa.ClientConnection
     [javac] final class ClientConnection
     [javac]       ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java:25: 
org.postgresql.jdbc2.Statement should be declared abstract; it does not 
define getMoreResults(int) in org.postgresql.jdbc2.Statement
     [javac] public class Statement extends org.postgresql.Statement 
implements java.sql.Statement
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java:32: 
org.postgresql.jdbc2.PreparedStatement should be declared abstract; it 
does not define setURL(int,java.net.URL) in 
org.postgresql.jdbc2.PreparedStatement
     [javac] public class PreparedStatement extends Statement implements 
java.sql.PreparedStatement
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java:32: 
warning: setUnicodeStream(int,java.io.InputStream,int) in 
java.sql.PreparedStatement has been deprecated
     [javac] public class PreparedStatement extends Statement implements 
java.sql.PreparedStatement
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/CallableStatement.java:42: 
org.postgresql.jdbc2.CallableStatement should be declared abstract; it 
does not define registerOutParameter(java.lang.String,int) in 
org.postgresql.jdbc2.CallableStatement
     [javac] public class CallableStatement extends 
org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/CallableStatement.java:42: 
warning: getBigDecimal(int,int) in java.sql.CallableStatement has been 
deprecated
     [javac] public class CallableStatement extends 
org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/CallableStatement.java:42: 
warning: setUnicodeStream(int,java.io.InputStream,int) in 
java.sql.PreparedStatement has been deprecated
     [javac] public class CallableStatement extends 
org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java:37: 
org.postgresql.jdbc2.Connection should be declared abstract; it does not 
define setHoldability(int) in org.postgresql.jdbc2.Connection
     [javac] public class Connection extends org.postgresql.Connection 
implements java.sql.Connection
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java:35: 
org.postgresql.jdbc2.DatabaseMetaData should be declared abstract; it 
does not define supportsSavepoints() in 
org.postgresql.jdbc2.DatabaseMetaData
     [javac] public class DatabaseMetaData implements 
java.sql.DatabaseMetaData
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java:60: 
org.postgresql.jdbc2.ResultSet should be declared abstract; it does not 
define getURL(int) in org.postgresql.jdbc2.ResultSet
     [javac] public class ResultSet extends org.postgresql.ResultSet 
implements java.sql.ResultSet
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java:60: 
warning: getUnicodeStream(java.lang.String) in java.sql.ResultSet has 
been deprecated
     [javac] public class ResultSet extends org.postgresql.ResultSet 
implements java.sql.ResultSet
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java:60: 
warning: getBigDecimal(java.lang.String,int) in java.sql.ResultSet has 
been deprecated
     [javac] public class ResultSet extends org.postgresql.ResultSet 
implements java.sql.ResultSet
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java:60: 
warning: getUnicodeStream(int) in java.sql.ResultSet has been deprecated
     [javac] public class ResultSet extends org.postgresql.ResultSet 
implements java.sql.ResultSet
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java:60: 
warning: getBigDecimal(int,int) in java.sql.ResultSet has been deprecated
     [javac] public class ResultSet extends org.postgresql.ResultSet 
implements java.sql.ResultSet
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/largeobject/PGblob.java:26: 
org.postgresql.largeobject.PGblob should be declared abstract; it does 
not define setBytes(long,byte[]) in org.postgresql.largeobject.PGblob
     [javac] public class PGblob implements java.sql.Blob
     [javac]        ^
     [javac] 
/usr/src/postgresql-7.1.2/src/interfaces/jdbc/org/postgresql/largeobject/PGclob.java:26: 
org.postgresql.largeobject.PGclob should be declared abstract; it does 
not define setString(long,java.lang.String) in 
org.postgresql.largeobject.PGclob
     [javac] public class PGclob implements java.sql.Clob
     [javac]        ^
     [javac] 10 errors
     [javac] 7 warnings

Total time: 8 seconds
gmake[3]: Leaving directory `/usr/src/postgresql-7.1.2/src/interfaces/jdbc'
gmake[2]: Leaving directory `/usr/src/postgresql-7.1.2/src/interfaces'
gmake[1]: Leaving directory `/usr/src/postgresql-7.1.2/src'

</snip>

I first tried with JDK 1.4.0 beta---a little optimistic, perhaps. I then 
  tried to compile it against JDK 1.3.1, but got the same results.

My platform is a RH Linux 7.1.

regards
/Kalle Gustafsson [kalle(dot)gustafsson(at)iconmedialab(dot)se]


pgsql-ports by date

Next:From: Jerry SeutterDate: 2001-08-10 20:12:31
Subject: [RPM] Possible problem with package postgresql-libs-7.1.2-5PGDG?
Previous:From: Hans-Jürgen SchönigDate: 2001-08-10 07:21:33
Subject: Re: Docs for running under Cygwin?

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