From: | Rich Cullingford <rculling(at)sysd(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Unable to download/compile postgresql.jar for PG 7.3 with JDK 1.4.1 |
Date: | 2003-01-02 17:27:08 |
Message-ID: | 3E14766C.4070101@sysd.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
All:
This is a brand new installation of PG 7.3 (i.e., no old versions of the
JDBC jar file exist).
I've tried several methods of getting a working driver. First, I
obtained pg73jdbc3.jar from the d/l site. In trying to test it with
DatabaseMetaData, I get the following odd error on a getColumns() call:
Exception in thread "main" java.sql.SQLException: ERROR: No such
attribute a.oid
at org.postgresql.Connection.ExecSQL(Connection.java:393)
at
org.postgresql.jdbc2.DatabaseMetaData.getColumns(DatabaseMetaData.java:1880)
at com.sysd.sql.SchemaInfo.main(SchemaInfo.java:639)
If I'm interpreting the comments on the JDBC 2.0 Compliance site
correctly, column-type metadata should be supported in PG 7.3.
Next, I tried compiling from source using the --with-java flag to
configure. The 1.4.1 compiler complains about uses of deprecated
classes/methods and missing symbols, and finally craps out:
-----------extract of javac log-------------
[echo] Configured build for the JDBC2 Enterprise edition driver
compile:
[javac] Compiling 53 source files to
/n/winwood/u/winwood/rculling/pg/postg
esql-7.2.3/src/interfaces/jdbc/build
[javac]
/n/winwood/u/winwood/rculling/pg/postgresql-7.2.3/src/interfaces/jd
c/org/postgresql/xa/XAConnectionImpl.java:57: cannot resolve symbol
[javac] symbol : class RollbackException
[javac] location: package transaction
[javac] import javax.transaction.RollbackException;
[javac] ^
[javac]
/n/winwood/u/winwood/rculling/pg/postgresql-7.2.3/src/interfaces/jd
c/org/postgresql/jdbc2/ResultSet.java:60: org.postgresql.jdbc2.ResultSet
should
be declared abstract; it does not define getURL(int) in
org.postgresql.jdbc2.Re
ultSet
[javac] public class ResultSet extends org.postgresql.ResultSet
implements
ava.sql.ResultSet
[javac] ^
[javac]
/n/winwood/u/winwood/rculling/pg/postgresql-7.2.3/src/interfaces/jd
c/org/postgresql/jdbc2/Statement.java:25: org.postgresql.jdbc2.Statement
should
be declared abstract; it does not define getMoreResults(int) in
org.postgresql.
dbc2.Statement
[javac] public class Statement extends org.postgresql.Statement
implements
ava.sql.Statement
[javac] ^
[javac]
/n/winwood/u/winwood/rculling/pg/postgresql-7.2.3/src/interfaces/jd
c/org/postgresql/jdbc2/Connection.java:37:
org.postgresql.jdbc2.Connection shou
d be declared abstract; it does not define setHoldability(int) in
org.postgresq
.jdbc2.Connection
.....etc.....
[javac]
/n/winwood/u/winwood/rculling/pg/postgresql-7.2.3/src/interfaces/jd
c/org/postgresql/xa/ClientConnection.java:70:
org.postgresql.xa.ClientConnectio
should be declared abstract; it does not define setHoldability(int) in
org.pos
gresql.xa.ClientConnection
[javac] final class ClientConnection
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 10 errors
BUILD FAILED
-----------end extract---------------
I'm guessing these problems are due to the compile problems mentioned in
the archive for jdk 1.4 back in mid-November.
What am I doing wrong? What should I do next? Any hints appreciated.
Rich Cullingford
System Detection, Inc.
rculling(at)sysd(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Patric Bechtel | 2003-01-02 17:34:47 | Fwd: Patch for streaming resultsets |
Previous Message | Patric Bechtel | 2003-01-02 16:33:44 | Patch for streaming resultsets |