Re: Compile Error on 7.1.3

From: "James Kelty" <jamesk(at)everbase(dot)net>
To: "Dave Cramer" <Dave(at)micro-automation(dot)net>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Compile Error on 7.1.3
Date: 2002-04-22 17:31:51
Message-ID: MDEDIKPCLCIKDGEMDJGMKEGPCJAA.jamesk@everbase.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Ahhhh! Ok! Thanks. Good idea!

-James

-----Original Message-----
From: Dave Cramer [mailto:Dave(at)micro-automation(dot)net]
Sent: Monday, April 22, 2002 10:29 AM
To: James Kelty
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] Compile Error on 7.1.3

James,

What I meant was get the latest source code from cvs and compile that.
This code will work with version 7.1.3

Dave
On Mon, 2002-04-22 at 12:51, James Kelty wrote:
> Considering that we are currently using a downloaded JDBC driver, and our
> connections are not closing, just sitting idle.
> This IS a problem for me. I don't understand what you mean by 'the code
will
> work fine with postgres 7.1.3', because it
> isn't.
>
> I DO have an incentive to fix a compile error from an old tarball:
>
> 1.) postgres 7.1.3 is what is supported by our application
> 2.) Sun JDK 1.3.1_01 is supported by our application
>
> Seems to me that this is reason enough. Not to mention I have had another
> post reply that apparently comiling the JDBC driver
> from the source fixed a problem that was similar to mine.
>
> Also, just in case. I know that db pooling is the best way to run a
Java/Wb
> app, but for testing reasons, we are not using it. We
> will be in production. There! That should do it, eh?
>
> -James
>
>
>
> -----Original Message-----
> From: Dave Cramer [mailto:Dave(at)micro-automation(dot)net]
> Sent: Monday, April 22, 2002 9:42 AM
> To: James Kelty
> Cc: pgsql-jdbc(at)postgresql(dot)org
> Subject: Re: [JDBC] Compile Error on 7.1.3
>
>
> James,
>
> The latest code will work fine with postgres 7.1.3, or get a compiled
> jar from the download site. There's no advantage to compiling it.
>
> The current sources compile clean, and given the above, there's no real
> incentive to fix a compile error from an old tarball.
>
> Dave
>
> On Mon, 2002-04-22 at 12:28, James Kelty wrote:
> > Hello!
> >
> > Sorry if this post is REALLY stale. I looked around in Google, and the
> > pgsql-jdbc archives, but I couldn't find an
> > answer to my problem. Here is my system environment:
> >
> > RedHat 7.2
> > PostgreSQL 7.1.3
> > Sun JDK 1.3.1_01
> > Jakarta Ant 1.4.1
> >
> >
> > Here is the compile error I am getting...
> >
> > make[3]: Entering directory
> `/var/tmp/postgresql-7.1.3/src/interfaces/jdbc'
> > /usr/local/ant/bin//ant -buildfile
> >
>
../../../build.xml -Dmajor=7 -Dminor=1 -Dfullversion=7.1.3 -Ddef_pgport=5432
> > Buildfile: ../../../build.xml
> >
> > jar:
> >
> > call:
> >
> > prepare:
> > [mkdir] Created dir:
> /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/build
> > [mkdir] Created dir:
> /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/jars
> >
> > check_versions:
> >
> > driver:
> > [copy] Copying 1 file to
> > /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
> > [echo] Configured build for the JDBC2 Enterprise edition driver.
> >
> > compile:
> > [javac] Compiling 58 source files to
> > /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/build
> > [javac]
> >
>
/var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedS
> > tatement.java:32: org.postgresql.jdbc2.PreparedStatement should be
> declared
> > abstract; it does not define setArray(int,java.sql.Array) in
> > org.postgresql.jdbc2.PreparedStatement
> > [javac] public class PreparedStatement extends Statement implements
> > java.sql.PreparedStatement
> > [javac] ^
> > [javac]
> >
>
/var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/CallableS
> > tatement.java:42: getArray(int) in
org.postgresql.jdbc2.CallableStatement
> > cannot implement getArray(int) in java.sql.CallableStatement; attempting
> to
> > use incompatible return type
> > [javac] found : org.postgresql.jdbc2.Array
> > [javac] required: java.sql.Array
> > [javac] public class CallableStatement extends
> > org.postgresql.jdbc2.PreparedStatement implements
> java.sql.CallableStatement
> > [javac] ^
> > [javac]
> >
>
/var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet
> > .java:60: getArray(java.lang.String) in org.postgresql.jdbc2.ResultSet
> > cannot implement getArray(java.lang.String) in java.sql.ResultSet;
> > attempting to use incompatible return type
> > [javac] found : org.postgresql.jdbc2.Array
> > [javac] required: java.sql.Array
> > [javac] public class ResultSet extends org.postgresql.ResultSet
> > implements java.sql.ResultSet
> > [javac] ^
> > [javac] Note: Some input files use or override a deprecated API.
> > [javac] Note: Recompile with -deprecation for details.
> > [javac] 3 errors
> >
> > BUILD FAILED
> >
> > /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/build.xml:99: Compile
> failed,
> > messages should have been provided.
> >
> > Total time: 6 seconds
> > make[3]: *** [all] Error 1
> > make[3]: Leaving directory
`/var/tmp/postgresql-7.1.3/src/interfaces/jdbc'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/var/tmp/postgresql-7.1.3/src/interfaces'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/var/tmp/postgresql-7.1.3/src'
> > make: *** [all] Error 2
> >
> >
> > Any and all help is very much welcome! Thank you!
> >
> > -James
> >
> > James Kelty
> > Sr. Unix Systems Administrator
> > Everbase Systems
> > 541.488.0801
> > jamesk(at)everbase(dot)net
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
> >
> >
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave 2002-04-22 21:05:42 help
Previous Message Dave Cramer 2002-04-22 17:29:04 Re: Compile Error on 7.1.3