You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Thomas Voigt <tv...@gmx.de> on 2006/12/05 18:37:16 UTC

Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5

Hi,

we tried to upgrade our system to Java 1.5 (jdk1.5.0_09) and Ant 1.7.0 RC1. Sadly we ran into several problems. We also use svnant 1.1.0 RC2 and ant-contrib 1.0b2.

I would like to know if any of you ran into similar problems - I'm moderately experienced with fiddling with ant, but not an expert. (The Ant upgrade is necessary due to a bug in the ant recorder task that is supposedly fixed in v1.7. The Java upgrade is not strictly necessary, but would be nice because we started to upgrade our Java projects to 1.5.)
Here are the problems:

(1) Logfiles are emptied on the stop command. More precisely, I have a target that looks like this:

[begin target] 
<record name="${JavaLog}" action="start" loglevel="info"/>
[some antcalls and antcallbacks that produce output]
<record name="${JavaLog}" action="stop"/>
[do something with the log file and end target]

After this call, the log file is empty. If I either fail just before the "stop", or remove the "stop" command, then everything is fine. The code works fine with ant 1.6.5, but does not work with Ant 1.7.0RC1 regardless of the Java version (1.4.2_06 or jdk1.5.0_09). 

(2) The <sql> command hangs if I try to access an oracle database. This works fine with either ant version as long as we use Java 1.4, but fails with either ant version with Java 1.5.

(3) The <svn> command times out after some time and reports  
[svn] svn: PROPFIND request failed on [Repository]
svn: Malformed reply from SOCKS server

Any Ideas?

Regards, Thomas


-- 
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Re: Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5

Posted by Thomas Voigt <tv...@gmx.de>.
-------- Original-Nachricht --------
Datum:  Wed, 6 Dec 2006 23:04:57 +0000
Von: "Peter Reilly" <pe...@gmail.com>
An: "Ant Users List" <us...@ant.apache.org>
Betreff:  Re: Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5

> On 12/5/06, Thomas Voigt <tv...@gmx.de> wrote:
> > (1) Logfiles are emptied on the stop command. More precisely, I have a
> target that looks like this:
> >
> > [begin target]
> > <record name="${JavaLog}" action="start" loglevel="info"/>
> > [some antcalls and antcallbacks that produce output]
> > <record name="${JavaLog}" action="stop"/>
> > [do something with the log file and end target]
> >
> > After this call, the log file is empty. If I either fail just before the
> "stop", or remove the "stop" command, then everything is fine. The code
> works fine with ant 1.6.5, but does not work with Ant 1.7.0RC1 regardless of
> the Java version (1.4.2_06 or jdk1.5.0_09).
> 
> Can you provide a small complete build file that shows
> the problem please?

Unfortunately not. I couldn't reproduce the problem with a small dummy buildfile, and I'm afraid at the moment there is simply not enough time to check out what exactly causes the problem. It's on my to-do-list though.

BTW, I do have a similar problem with our complete build. During the build (several hours worth of stuff including Java, C++, localization, CVS tagging, whatever) the log file (same call as above, record from beginning to end on info level) grows nicely and contains the output. After the build I end up with 8MB of zero bytes in the logfile, and a single line stating "BUILD SUCCESSFUL" at the end...

Regards, Thomas

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5

Posted by Peter Reilly <pe...@gmail.com>.
First thanks for testing with ant 1.7rc1.


On 12/5/06, Thomas Voigt <tv...@gmx.de> wrote:
> Hi,
>
> we tried to upgrade our system to Java 1.5 (jdk1.5.0_09) and Ant 1.7.0 RC1. Sadly we ran into several problems. We also use svnant 1.1.0 RC2 and ant-contrib 1.0b2.
>
> I would like to know if any of you ran into similar problems - I'm moderately experienced with fiddling with ant, but not an expert. (The Ant upgrade is necessary due to a bug in the ant recorder task that is supposedly fixed in v1.7. The Java upgrade is not strictly necessary, but would be nice because we started to upgrade our Java projects to 1.5.)
> Here are the problems:
>
> (1) Logfiles are emptied on the stop command. More precisely, I have a target that looks like this:
>
> [begin target]
> <record name="${JavaLog}" action="start" loglevel="info"/>
> [some antcalls and antcallbacks that produce output]
> <record name="${JavaLog}" action="stop"/>
> [do something with the log file and end target]
>
> After this call, the log file is empty. If I either fail just before the "stop", or remove the "stop" command, then everything is fine. The code works fine with ant 1.6.5, but does not work with Ant 1.7.0RC1 regardless of the Java version (1.4.2_06 or jdk1.5.0_09).

Can you provide a small complete build file that shows
the problem please?

>
> (2) The <sql> command hangs if I try to access an oracle database. This works fine with either ant version as long as we use Java 1.4, but fails with either ant version with Java 1.5.
>
> (3) The <svn> command times out after some time and reports
> [svn] svn: PROPFIND request failed on [Repository]
> svn: Malformed reply from SOCKS server
>
> Any Ideas?

Do not know much about much about differenences in the nw stack between
java 1.4 and java5, perhaps there is a problem with your proxy configuration
(it may be picked up for java1.4 but ignored in java5).

Peter


>
> Regards, Thomas
>
>
> --
> "Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
> Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5

Posted by Steve Loughran <st...@apache.org>.
Thomas Voigt wrote:
> -------- Original-Nachricht --------
> Datum:  Thu, 07 Dec 2006 11:39:55 +0000
> Von: Steve Loughran <st...@apache.org>
> An: Ant Users List <us...@ant.apache.org>
> Betreff:  Re: Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5
> 
>> Thomas Voigt wrote:
>>> (2) The <sql> command hangs if I try to access an oracle database. This
>> works fine with either ant version as long as we use Java 1.4, but fails
>> with either ant version with Java 1.5.
>>
>> Ok. I've seen this once before, and I think we need to document it.
>>
>> What is the URL to the database? is it localhost?
> 
> Nope, a remote server using Oracle 9.2 jdbc drivers.

ok. Which is probably now routing via the proxy.

> 
>>> (3) The <svn> command times out after some time and reports  
>>> [svn] svn: PROPFIND request failed on [Repository]
>>> svn: Malformed reply from SOCKS server
>>>
>>> Any Ideas?
>> could be related. Whose SVN command? Something pure java, or a wrapper 
>> round the native lib?
> 
> Using the svnant task from <http://subclipse.tigris.org/svnant.html>.

OK. these are java based so would pick up the proxy settings of ant.

> Win XP or Win2003 Server.
> 
>> 1. What are your proxy settings?
> 
> Manual proxy configuration to a proxy server and port 8080 (at least that's what my IE says, I think these are the global windows settings?)

yes, these are system (well, user) wide, and what is passed down to the 
JVM.

>> 2. Run ant -diagnostics and file a bugrep
> 
> Yep, I'll do that. I just prefer to confirm that I made no mistake before I report a bug...
> 
>> 2. does everything work if you run ant with -noproxy ?
> 
> Svn checkout works, database access does not.
> 

I'm glad things are working with SVN, worried about oracle. Post the 
-diagnostics to see what Ant thinks the world looks like.

This is the main change in ant network behaviour for java1.5 over 1.4, 
and its meant to help, because the JVM can pick up the proxy settings 
from the server. I'm starting to worry if it is a benefit, or whether we 
should pull it from the release.

1. there is no consistent model of 'the proxy' on linux
2. windows has one, but as can be seen, things dont always route through 
proxies.
3. its a dog debugging other users's proxy settings.

What do users/developers think? Should Ant1.7 roll back to 
no-proxy-by-default?

-steve


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Re: Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5

Posted by Thomas Voigt <tv...@gmx.de>.
-------- Original-Nachricht --------
Datum:  Thu, 07 Dec 2006 11:39:55 +0000
Von: Steve Loughran <st...@apache.org>
An: Ant Users List <us...@ant.apache.org>
Betreff:  Re: Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5

> Thomas Voigt wrote:
> > (2) The <sql> command hangs if I try to access an oracle database. This
> works fine with either ant version as long as we use Java 1.4, but fails
> with either ant version with Java 1.5.
> 
> Ok. I've seen this once before, and I think we need to document it.
> 
> What is the URL to the database? is it localhost?

Nope, a remote server using Oracle 9.2 jdbc drivers.

> > (3) The <svn> command times out after some time and reports  
> > [svn] svn: PROPFIND request failed on [Repository]
> > svn: Malformed reply from SOCKS server
> > 
> > Any Ideas?
> 
> could be related. Whose SVN command? Something pure java, or a wrapper 
> round the native lib?

Using the svnant task from <http://subclipse.tigris.org/svnant.html>.

> On Java1.5, Ant sets the system proxy to be whatever the OS provides. 
> Oracle appears to use the proxy settings and http as a transport, so can 
> get confused. Maybe the svn task is similar
> 
> 0. Which OS?

Win XP or Win2003 Server.

> 1. What are your proxy settings?

Manual proxy configuration to a proxy server and port 8080 (at least that's what my IE says, I think these are the global windows settings?)

> 2. Run ant -diagnostics and file a bugrep

Yep, I'll do that. I just prefer to confirm that I made no mistake before I report a bug...

> 2. does everything work if you run ant with -noproxy ?

Svn checkout works, database access does not.

Thanks for your help, Thomas

-- 
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5

Posted by Steve Loughran <st...@apache.org>.
Thomas Voigt wrote:
> Hi,
> 
> we tried to upgrade our system to Java 1.5 (jdk1.5.0_09) and Ant 1.7.0 RC1. Sadly we ran into several problems. We also use svnant 1.1.0 RC2 and ant-contrib 1.0b2.
> 
> I would like to know if any of you ran into similar problems - I'm moderately experienced with fiddling with ant, but not an expert. (The Ant upgrade is necessary due to a bug in the ant recorder task that is supposedly fixed in v1.7. The Java upgrade is not strictly necessary, but would be nice because we started to upgrade our Java projects to 1.5.)
> Here are the problems:
> 
> (1) Logfiles are emptied on the stop command. More precisely, I have a target that looks like this:
> 
> [begin target] 
> <record name="${JavaLog}" action="start" loglevel="info"/>
> [some antcalls and antcallbacks that produce output]
> <record name="${JavaLog}" action="stop"/>
> [do something with the log file and end target]
> 
> After this call, the log file is empty. If I either fail just before the "stop", or remove the "stop" command, then everything is fine. The code works fine with ant 1.6.5, but does not work with Ant 1.7.0RC1 regardless of the Java version (1.4.2_06 or jdk1.5.0_09). 

That I know nothing about


> (2) The <sql> command hangs if I try to access an oracle database. This works fine with either ant version as long as we use Java 1.4, but fails with either ant version with Java 1.5.

Ok. I've seen this once before, and I think we need to document it.

What is the URL to the database? is it localhost?

> 
> (3) The <svn> command times out after some time and reports  
> [svn] svn: PROPFIND request failed on [Repository]
> svn: Malformed reply from SOCKS server
> 
> Any Ideas?

could be related. Whose SVN command? Something pure java, or a wrapper 
round the native lib?

On Java1.5, Ant sets the system proxy to be whatever the OS provides. 
Oracle appears to use the proxy settings and http as a transport, so can 
get confused. Maybe the svn task is similar

0. Which OS?
1. What are your proxy settings?
2. Run ant -diagnostics and file a bugrep
2. does everything work if you run ant with -noproxy ?


-Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org