pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JDBC build broken by commit 9f9019b
8+ messages / 5 participants
[nested] [flat]

* JDBC build broken by commit 9f9019b
@ 2014-08-20 00:27 Michael Paquier <michael.paquier@gmail.com>
  2014-08-20 00:31 ` Re: JDBC build broken by commit 9f9019b Michael Paquier <michael.paquier@gmail.com>
  2014-08-20 03:43 ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
  0 siblings, 2 replies; 8+ messages in thread

From: Michael Paquier @ 2014-08-20 00:27 UTC (permalink / raw)
  To: pgsql-jdbc

Hi all,

Since commit 9f9019b that has been merged yesterday into master, build of
pgjdbc is broken. Here are more details of the failure:
$ ant -lib lib
[...]
compile:
    [javac] /Users/ioltas/git/pgjdbc/build.xml:243: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds
    [javac] Compiling 174 source files to /Users/ioltas/git/pgjdbc/build
    [javac]
/Users/ioltas/git/pgjdbc/org/postgresql/jdbc4/Jdbc4Connection.java:21:
org.postgresql.jdbc4.Jdbc4Connection is not abstract and does not override
abstract method haveMinimumServerVersion(int) in
org.postgresql.core.BaseConnection
    [javac] public class Jdbc4Connection extends AbstractJdbc4Connection
implements java.sql.Connection
    [javac]        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
/Users/ioltas/git/pgjdbc/build.xml:213: The following error occurred while
executing this line:
/Users/ioltas/git/pgjdbc/build.xml:243: Compile failed; see the compiler
error output for details.

Total time: 3 seconds

Travis is complaining as well with the same error.
https://travis-ci.org/pgjdbc/pgjdbc
Regards,
-- 
Michael

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: JDBC build broken by commit 9f9019b
  2014-08-20 00:27 JDBC build broken by commit 9f9019b Michael Paquier <michael.paquier@gmail.com>
@ 2014-08-20 00:31 ` Michael Paquier <michael.paquier@gmail.com>
  1 sibling, 0 replies; 8+ messages in thread

From: Michael Paquier @ 2014-08-20 00:31 UTC (permalink / raw)
  To: pgsql-jdbc

On Wed, Aug 20, 2014 at 9:27 AM, Michael Paquier <michael.paquier@gmail.com>
wrote:

> BUILD FAILED
> /Users/ioltas/git/pgjdbc/build.xml:213: The following error occurred while
> executing this line:
> /Users/ioltas/git/pgjdbc/build.xml:243: Compile failed; see the compiler
> error output for details.
>
> Total time: 3 seconds
>
> Travis is complaining as well with the same error.
> https://travis-ci.org/pgjdbc/pgjdbc
>
Sorry for the noise, that's already reported here:
http://www.postgresql.org/message-id/66630223437956cdc76dd6993ba0fe41.squirrel@www.mlfowler.com
Regards,
-- 
Michael

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: JDBC build broken by commit 9f9019b
  2014-08-20 00:27 JDBC build broken by commit 9f9019b Michael Paquier <michael.paquier@gmail.com>
@ 2014-08-20 03:43 ` Craig Ringer <craig@2ndquadrant.com>
  2014-08-20 04:20   ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
  1 sibling, 1 reply; 8+ messages in thread

From: Craig Ringer @ 2014-08-20 03:43 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; pgsql-jdbc

On 08/20/2014 08:27 AM, Michael Paquier wrote:
> Hi all,
> 
> Since commit 9f9019b that has been merged yesterday into master, build
> of pgjdbc is broken. 

Taking a look now. Odd - did I fail to push a final fixup before the merge?

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: JDBC build broken by commit 9f9019b
  2014-08-20 00:27 JDBC build broken by commit 9f9019b Michael Paquier <michael.paquier@gmail.com>
  2014-08-20 03:43 ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
@ 2014-08-20 04:20   ` Craig Ringer <craig@2ndquadrant.com>
  2014-08-20 11:57     ` Re: JDBC build broken by commit 9f9019b Christian Schlichtherle <christian@schlichtherle.de>
  2014-08-20 12:10     ` Re: JDBC build broken by commit 9f9019b Stephen Nelson <stephen@eccostudio.com>
  0 siblings, 2 replies; 8+ messages in thread

From: Craig Ringer @ 2014-08-20 04:20 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; pgsql-jdbc

On 08/20/2014 11:43 AM, Craig Ringer wrote:
> Taking a look now. Odd - did I fail to push a final fixup before the merge?

Confirmed - yet I'm confused, as I'm pretty sure I remember Travis
passing with this, and just not updating the github issue. It was a
while ago.

Upon examining my local history, it looks like a case of "Oh, I should
also make this one minor fix that can't break anything just before I push".

Right.

I've pushed a fix.







BTW, I had to apply the attached diff to get the driver to build with my
ant 1.9.2, packaged in Fedora 20 .

The usual approach of popping maven-ant-tasks.jar in lib/ and running:

  ant -lib lib

or

  ant -lib lib/maven-ant-tasks.jar

was not effective, and still failed with:

$ ant -lib lib clean
Buildfile: /home/craig/projects/pgjdbc/build.xml

BUILD FAILED
/home/craig/projects/pgjdbc/build.xml:110: Problem: failed to create
task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/home/craig/.ant/lib
        -a directory added on the command line with the -lib argument


... even though:


ant -lib lib clean -diagnostics

showed that maven-ant-tasks.jar was on the classpath, and unpacking the
jar showed that it contained the required antlib.xml that ant -v was
looking for:

[antlib:org.apache.maven.artifact.ant] Could not load definitions from
resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.


Weird. I don't think I had this issue last time around.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

Attachments:

build.xml.diff (text/x-patch, 625B) download diff --git a/build.xml b/build.xml index 9ce437d..1c4f1d2 100644 --- a/build.xml +++ b/build.xml @@ -17,6 +17,11 @@ <project name="postgresqlJDBC" default="all" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant"> + <path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks.jar" /> + <typedef resource="org/apache/maven/artifact/ant/antlib.xml" + uri="antlib:org.apache.maven.artifact.ant" + classpathref="maven-ant-tasks.classpath" /> + <!-- set global properties for this build --> <property name="srcdir" value="." /> <property name="jardir" value="jars" />
^ permalink raw reply [nested|flat] 8+ messages in thread

* Re: JDBC build broken by commit 9f9019b
  2014-08-20 00:27 JDBC build broken by commit 9f9019b Michael Paquier <michael.paquier@gmail.com>
  2014-08-20 03:43 ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
  2014-08-20 04:20   ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
@ 2014-08-20 11:57     ` Christian Schlichtherle <christian@schlichtherle.de>
  2014-08-20 13:09       ` Re: JDBC build broken by commit 9f9019b Dave Cramer <pg@fastcrypt.com>
  1 sibling, 1 reply; 8+ messages in thread

From: Christian Schlichtherle @ 2014-08-20 11:57 UTC (permalink / raw)
  To: pgsql-jdbc

This was blocking my pull request (#180), too. Do I need to do anything or will it be tried again automatically?

Christian

Am 20.08.2014 um 06:20 schrieb Craig Ringer <craig@2ndquadrant.com>:

> On 08/20/2014 11:43 AM, Craig Ringer wrote:
>> Taking a look now. Odd - did I fail to push a final fixup before the merge?
> 
> Confirmed - yet I'm confused, as I'm pretty sure I remember Travis
> passing with this, and just not updating the github issue. It was a
> while ago.
> 
> Upon examining my local history, it looks like a case of "Oh, I should
> also make this one minor fix that can't break anything just before I push".
> 
> Right.
> 
> I've pushed a fix.
> 
> 
> 
> 
> 
> 
> 
> BTW, I had to apply the attached diff to get the driver to build with my
> ant 1.9.2, packaged in Fedora 20 .
> 
> The usual approach of popping maven-ant-tasks.jar in lib/ and running:
> 
>  ant -lib lib
> 
> or
> 
>  ant -lib lib/maven-ant-tasks.jar
> 
> was not effective, and still failed with:
> 
> $ ant -lib lib clean
> Buildfile: /home/craig/projects/pgjdbc/build.xml
> 
> BUILD FAILED
> /home/craig/projects/pgjdbc/build.xml:110: Problem: failed to create
> task or type antlib:org.apache.maven.artifact.ant:dependencies
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken place.
> No types or tasks have been defined in this namespace yet
> 
> This appears to be an antlib declaration.
> Action: Check that the implementing library exists in one of:
>        -/usr/share/ant/lib
>        -/home/craig/.ant/lib
>        -a directory added on the command line with the -lib argument
> 
> 
> ... even though:
> 
> 
> ant -lib lib clean -diagnostics
> 
> showed that maven-ant-tasks.jar was on the classpath, and unpacking the
> jar showed that it contained the required antlib.xml that ant -v was
> looking for:
> 
> [antlib:org.apache.maven.artifact.ant] Could not load definitions from
> resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.
> 
> 
> Weird. I don't think I had this issue last time around.
> 
> -- 
> Craig Ringer                   http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
> <build.xml.diff>
> -- 
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc

Attachments:

  signature.asc (application/pgp-signature, 494B) download

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: JDBC build broken by commit 9f9019b
  2014-08-20 00:27 JDBC build broken by commit 9f9019b Michael Paquier <michael.paquier@gmail.com>
  2014-08-20 03:43 ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
  2014-08-20 04:20   ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
  2014-08-20 11:57     ` Re: JDBC build broken by commit 9f9019b Christian Schlichtherle <christian@schlichtherle.de>
@ 2014-08-20 13:09       ` Dave Cramer <pg@fastcrypt.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Dave Cramer @ 2014-08-20 13:09 UTC (permalink / raw)
  To: Christian Schlichtherle <christian@schlichtherle.de>; +Cc: pgsql-jdbc

Nothing needs to be done on your end
Thx,

Dave

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca


On 20 August 2014 07:57, Christian Schlichtherle <christian@schlichtherle.de
> wrote:

> This was blocking my pull request (#180), too. Do I need to do anything or
> will it be tried again automatically?
>
> Christian
>
> Am 20.08.2014 um 06:20 schrieb Craig Ringer <craig@2ndquadrant.com>:
>
> > On 08/20/2014 11:43 AM, Craig Ringer wrote:
> >> Taking a look now. Odd - did I fail to push a final fixup before the
> merge?
> >
> > Confirmed - yet I'm confused, as I'm pretty sure I remember Travis
> > passing with this, and just not updating the github issue. It was a
> > while ago.
> >
> > Upon examining my local history, it looks like a case of "Oh, I should
> > also make this one minor fix that can't break anything just before I
> push".
> >
> > Right.
> >
> > I've pushed a fix.
> >
> >
> >
> >
> >
> >
> >
> > BTW, I had to apply the attached diff to get the driver to build with my
> > ant 1.9.2, packaged in Fedora 20 .
> >
> > The usual approach of popping maven-ant-tasks.jar in lib/ and running:
> >
> >  ant -lib lib
> >
> > or
> >
> >  ant -lib lib/maven-ant-tasks.jar
> >
> > was not effective, and still failed with:
> >
> > $ ant -lib lib clean
> > Buildfile: /home/craig/projects/pgjdbc/build.xml
> >
> > BUILD FAILED
> > /home/craig/projects/pgjdbc/build.xml:110: Problem: failed to create
> > task or type antlib:org.apache.maven.artifact.ant:dependencies
> > Cause: The name is undefined.
> > Action: Check the spelling.
> > Action: Check that any custom tasks/types have been declared.
> > Action: Check that any <presetdef>/<macrodef> declarations have taken
> place.
> > No types or tasks have been defined in this namespace yet
> >
> > This appears to be an antlib declaration.
> > Action: Check that the implementing library exists in one of:
> >        -/usr/share/ant/lib
> >        -/home/craig/.ant/lib
> >        -a directory added on the command line with the -lib argument
> >
> >
> > ... even though:
> >
> >
> > ant -lib lib clean -diagnostics
> >
> > showed that maven-ant-tasks.jar was on the classpath, and unpacking the
> > jar showed that it contained the required antlib.xml that ant -v was
> > looking for:
> >
> > [antlib:org.apache.maven.artifact.ant] Could not load definitions from
> > resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.
> >
> >
> > Weird. I don't think I had this issue last time around.
> >
> > --
> > Craig Ringer                   http://www.2ndQuadrant.com/
> > PostgreSQL Development, 24x7 Support, Training & Services
> > <build.xml.diff>
> > --
> > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> > To make changes to your subscription:
> > http://www.postgresql.org/mailpref/pgsql-jdbc
>
>

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: JDBC build broken by commit 9f9019b
  2014-08-20 00:27 JDBC build broken by commit 9f9019b Michael Paquier <michael.paquier@gmail.com>
  2014-08-20 03:43 ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
  2014-08-20 04:20   ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
@ 2014-08-20 12:10     ` Stephen Nelson <stephen@eccostudio.com>
  2014-08-25 10:54       ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
  1 sibling, 1 reply; 8+ messages in thread

From: Stephen Nelson @ 2014-08-20 12:10 UTC (permalink / raw)
  To: pgsql-jdbc

On Wed, Aug 20, 2014 at 5:20 AM, Craig Ringer <craig@2ndquadrant.com> wrote:

>
> ant -lib lib clean -diagnostics
>
> showed that maven-ant-tasks.jar was on the classpath, and unpacking the
> jar showed that it contained the required antlib.xml that ant -v was
> looking for:
>
> [antlib:org.apache.maven.artifact.ant] Could not load definitions from
> resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.
>
>
> Weird. I don't think I had this issue last time around.
>
>
This has been reported by another user of Fedora but I was unable to
recreate myself. Could you confirm the jar isn't corrupted in any way by
running:

jar tf lib/maven-ant-tasks-2.1.3.jar
Stephen

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: JDBC build broken by commit 9f9019b
  2014-08-20 00:27 JDBC build broken by commit 9f9019b Michael Paquier <michael.paquier@gmail.com>
  2014-08-20 03:43 ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
  2014-08-20 04:20   ` Re: JDBC build broken by commit 9f9019b Craig Ringer <craig@2ndquadrant.com>
  2014-08-20 12:10     ` Re: JDBC build broken by commit 9f9019b Stephen Nelson <stephen@eccostudio.com>
@ 2014-08-25 10:54       ` Craig Ringer <craig@2ndquadrant.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Craig Ringer @ 2014-08-25 10:54 UTC (permalink / raw)
  To: Stephen Nelson <stephen@eccostudio.com>; pgsql-jdbc

On 08/20/2014 08:10 PM, Stephen Nelson wrote:
> This has been reported by another user of Fedora but I was unable to
> recreate myself. Could you confirm the jar isn't corrupted in any way by
> running: 
> 
> jar tf lib/maven-ant-tasks-2.1.3.jar
> 
> Stephen

No errors.

For comparison:

$ md5sum lib/maven-ant-tasks-2.1.3.jar
7ce48382d1aa4138027a58ec2f29beda  lib/maven-ant-tasks-2.1.3.jar
$ jar tf lib/maven-ant-tasks-2.1.3.jar | wc -l
975
$ du -b lib/maven-ant-tasks-2.1.3.jar
1316000 lib/maven-ant-tasks-2.1.3.jar

with:

$ ant -version
Apache Ant(TM) version 1.9.2 compiled on September 12 2013

$ lsb_release  -a
LSB Version:
:core-4.1-amd64:core-4.1-ia32:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-ia32:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-ia32:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description:    Fedora release 20 (Heisenbug)
Release:        20
Codename:       Heisenbug

$ java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (fedora-2.5.1.3.fc20-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

$ rpm -q ant
ant-1.9.2-7.fc20.noarch

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2014-08-25 10:54 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 00:27 JDBC build broken by commit 9f9019b Michael Paquier <michael.paquier@gmail.com>
2014-08-20 00:31 ` Michael Paquier <michael.paquier@gmail.com>
2014-08-20 03:43 ` Craig Ringer <craig@2ndquadrant.com>
2014-08-20 04:20   ` Craig Ringer <craig@2ndquadrant.com>
2014-08-20 11:57     ` Christian Schlichtherle <christian@schlichtherle.de>
2014-08-20 13:09       ` Dave Cramer <pg@fastcrypt.com>
2014-08-20 12:10     ` Stephen Nelson <stephen@eccostudio.com>
2014-08-25 10:54       ` Craig Ringer <craig@2ndquadrant.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox