You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Constantine Plotnikov (JIRA)" <ji...@apache.org> on 2010/06/02 13:03:39 UTC

[jira] Created: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Downloads from maven repository fail when using transparent HTTP proxies
------------------------------------------------------------------------

                 Key: IVY-1194
                 URL: https://issues.apache.org/jira/browse/IVY-1194
             Project: Ivy
          Issue Type: Bug
          Components: Maven Compatibility
    Affects Versions: 2.1.0
         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
            Reporter: Constantine Plotnikov
            Priority: Blocker


The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.

Fetching dependencies fails with the following log:
{quote}
Buildfile: build.xml

init-ivy:

retrieve-all:
[ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
[ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
[ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
[ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
[ivy:retrieve] 	found oro#oro;2.0.8 in public
[ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
[ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
[ivy:retrieve] 	found ant#ant;1.6.2 in public
[ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
[ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
[ivy:retrieve] 	found junit#junit;3.8.2 in public
[ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
[ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
[ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
[ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
[ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
[ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
[ivy:retrieve] ............ (117kB)
[ivy:retrieve] .. (0kB)
[ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
[ivy:retrieve] 	:: evicted modules:
[ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
	---------------------------------------------------------------------
	|                  |            modules            ||   artifacts   |
	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
	---------------------------------------------------------------------
	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
	---------------------------------------------------------------------

[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
[ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
[ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
[ivy:retrieve] 	==== local: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
[ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
[ivy:retrieve] 	==== shared: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
[ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
[ivy:retrieve] 	==== public: tried
[ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
[ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
[ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
[ivy:retrieve] 	==== local: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
[ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
[ivy:retrieve] 	==== shared: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
[ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
[ivy:retrieve] 	==== public: tried
[ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
[ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
[ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
[ivy:retrieve] 	==== shared: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
[ivy:retrieve] 	==== public: tried
[ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
[ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		::              FAILED DOWNLOADS            ::
[ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 
[ivy:retrieve] 
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
{quote}

The sample in package with dependencies  fails with the following log:
{quote}
Buildfile: build.xml

download-ivy:
    [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
     [echo] installing ivy...
      [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
      [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar

install-ivy:
  [taskdef] java.util.zip.ZipException: error in opening zip file
  [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
  [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
  [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
  [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
  [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
  [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
  [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
  [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
  [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
  [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
  [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
  [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
  [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
  [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
  [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
  [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.

generate-src:

go:
     [echo] using ivy to resolve commons-lang 2.1...

BUILD FAILED
C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual 
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file: 
 - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
     and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and the JAR file and/or libraries
     implementing the functionality were not found at the time you
     yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
     task and make sure it contains more than merely a META-INF/MANIFEST.MF.
     If all it contains is the manifest, then rebuild Ant with the needed
     libraries present in ${ant.home}/lib/optional/ , or alternatively,
     download a pre-built release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task 
     and needs to be declared using <taskdef>.
 - You are attempting to use a task defined using 
    <presetdef> or <macrodef> but have spelt wrong or not 
   defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

Total time: 1 second
{quote}

The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  

{quote}
DEBUG output created by Wget 1.11.4 on cygwin.

--2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
Resolving repo1.maven.org... 38.97.124.18
Caching repo1.maven.org => 38.97.124.18
Connecting to repo1.maven.org|38.97.124.18|:80... connected.
Created socket 4.
Releasing 0x006d9100 (new refcount 1).

---request begin---
GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
User-Agent: Wget/1.11.4
Accept: */*
Host: repo1.maven.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.0 200 OK
Server: nginx/0.7.62
Date: Tue, 01 Jun 2010 13:09:36 GMT
Content-Type: application/java-archive
Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
Content-Encoding: gzip
X-Cache: MISS from squid_havp_node1
X-Cache-Lookup: MISS from squid_havp_node1:3128
Age: 70339
Content-Length: 834513
X-Cache: HIT from squid_havp_node1
X-Cache-Lookup: HIT from squid_havp_node1:3128
Connection: keep-alive

---response end---

  HTTP/1.0 200 OK
  Server: nginx/0.7.62
  Date: Tue, 01 Jun 2010 13:09:36 GMT
  Content-Type: application/java-archive
  Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
  Content-Encoding: gzip
  X-Cache: MISS from squid_havp_node1
  X-Cache-Lookup: MISS from squid_havp_node1:3128
  Age: 70339
  Content-Length: 834513
  X-Cache: HIT from squid_havp_node1
  X-Cache-Lookup: HIT from squid_havp_node1:3128
  Connection: keep-alive
Registered socket 4 for persistent reuse.
Length: 834513 (815K) [application/java-archive]
Saving to: `ivy-2.1.0.jar'

     0K .......... .......... .......... .......... ..........  6% 8.49M 0s
    50K .......... .......... .......... .......... .......... 12% 12.0M 0s
   100K .......... .......... .......... .......... .......... 18% 7.26M 0s
   150K .......... .......... .......... .......... .......... 24% 9.28M 0s
   200K .......... .......... .......... .......... .......... 30% 5.33M 0s
   250K .......... .......... .......... .......... .......... 36% 9.31M 0s
   300K .......... .......... .......... .......... .......... 42% 5.26M 0s
   350K .......... .......... .......... .......... .......... 49% 9.15M 0s
   400K .......... .......... .......... .......... .......... 55% 7.27M 0s
   450K .......... .......... .......... .......... .......... 61% 7.42M 0s
   500K .......... .......... .......... .......... .......... 67% 9.21M 0s
   550K .......... .......... .......... .......... .......... 73% 6.11M 0s
   600K .......... .......... .......... .......... .......... 79% 9.50M 0s
   650K .......... .......... .......... .......... .......... 85% 8.84M 0s
   700K .......... .......... .......... .......... .......... 92% 9.54M 0s
   750K .......... .......... .......... .......... .......... 98% 6.04M 0s
   800K .......... ....                                       100% 16.2K=1.0s

2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
{quote}

In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.

The possible workarounds:
1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
2. Ungzip files fetched with gzip content encoding.
3. Support gzip content encoding in common HTTP.
3. Use local maven proxies 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene reassigned IVY-1194:
----------------------------------

    Assignee: Maarten Coene

> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Constantine Plotnikov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875099#action_12875099 ] 

Constantine Plotnikov commented on IVY-1194:
--------------------------------------------

It might be squid related. When there caching is disabled, the following request/response sequence happens:
{code}
---request begin---
GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
User-Agent: Mozilla/Test
Accept: */*
Host: repo1.maven.org
Connection: Keep-Alive
Accept-Encoding: gzip
Cache-Control: no-cache

---request end---
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.0 200 OK
Server: nginx/0.7.62
Date: Thu, 03 Jun 2010 13:20:31 GMT
Content-Type: application/java-archive
Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
Content-Encoding: gzip
X-Cache: MISS from squid_havp_node1
X-Cache-Lookup: HIT from squid_havp_node1:3128
X-Cache: MISS from squid_havp_node1
X-Cache-Lookup: HIT from squid_havp_node1:3128
Connection: close

---response end---
{code}

As you can see, the "Content-Length:" header is not specified (and thus cannot be checked). But squid cache hit, the content length is specified (and possibly checked).

{code}
---request begin---
GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
User-Agent: Mozilla/Test
Accept: */*
Host: repo1.maven.org
Connection: Keep-Alive
Accept-Encoding: identity

---request end---
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.0 200 OK
Server: nginx/0.7.62
Date: Thu, 03 Jun 2010 13:20:31 GMT
Content-Type: application/java-archive
Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
Content-Encoding: gzip
X-Cache: MISS from squid_havp_node1
X-Cache-Lookup: HIT from squid_havp_node1:3128
Age: 111
Content-Length: 834513
X-Cache: HIT from squid_havp_node1
X-Cache-Lookup: HIT from squid_havp_node1:3128
Connection: keep-alive

---response end---
{code}

So the possibly the problem surface only when squid has a complete file in the cache. The fix might be ignoring "Content-Length" header for responses that have "Content-Encoding" headers.

> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.2.0-RC1
>
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene resolved IVY-1194.
--------------------------------

    Fix Version/s: 2.2.0-RC1
       Resolution: Fixed

Wow respect, excellent analysis of the problem! I don't think I would have been able to find it...

I've committed a fix in SVN trunk. Ivy now supports 'gzip' Content-Encoding by wrapping the InputStream in a GZIPInputStream.
Could you give it a try to see if it works for you?

Thanks,
Maarten

> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.2.0-RC1
>
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Constantine Plotnikov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Constantine Plotnikov reopened IVY-1194:
----------------------------------------


Now files really download correctly in ungziped form. But post-download validation seems to be failing (I replaced jar in no-deps binary download to get log below). Since file were gziped content length now do not match expected. It looks like gziped downloaded bytes should be counted and compared. Also while you are here, it might make sense to support deflate content encoding as well, but I do not have such files in our cache. 

{code}
Apache Ant version 1.8.1 compiled on April 30 2010
Trying the default build file: build.xml
Buildfile: C:\temp\ivy-test\apache-ivy-2.1.0\build.xml
Detected Java version: 1.6 in: C:\utils\Java\jdk1.6.0_20\jre
Detected OS: Windows XP
parsing buildfile C:\temp\ivy-test\apache-ivy-2.1.0\build.xml with URI = file:/C:/temp/ivy-test/apache-ivy-2.1.0/build.xml
Project base dir set to: C:\temp\ivy-test\apache-ivy-2.1.0
Build sequence for target(s) `retrieve-all' is [init-ivy, retrieve-all]
Complete build sequence is [init-ivy, retrieve-all, report, retrieve-conf, ]

init-ivy:
parsing buildfile jar:file:/C:/utils/apache/apache-ant-1.8.1/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/utils/apache/apache-ant-1.8.1/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
dropping C:\temp\ivy-test\apache-ivy-2.1.0\ivy.jar from path as it doesn't exist
parsing buildfile jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/ant/antlib.xml with URI = jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/ant/antlib.xml from a zip file

retrieve-all:
parsing buildfile jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/ant/antlib.xml with URI = jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/ant/antlib.xml from a zip file
[ivy:retrieve] No ivy:settings found for the default reference 'ivy.instance'.  A default instance will be used
[ivy:retrieve] Loading jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/core/settings/ivy.properties
[ivy:retrieve] searching settings file: trying C:\temp\ivy-test\apache-ivy-2.1.0\ivysettings.xml
[ivy:retrieve] searching settings file: trying C:\temp\ivy-test\apache-ivy-2.1.0\ivyconf.xml
[ivy:retrieve] searching settings file: trying ivysettings.xml
[ivy:retrieve] searching settings file: trying ivyconf.xml
[ivy:retrieve] no settings file found, using default...
[ivy:retrieve] :: Ivy 2.2.x-local-20100603114222 - 20100603114222 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] jakarta commons httpclient not found: using jdk url handling
[ivy:retrieve] :: loading settings :: url = jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] no default ivy user dir defined: set to C:\Documents and Settings\Constantin.Plotnikov\.ivy2
[ivy:retrieve] including url: jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/core/settings/ivysettings-public.xml
[ivy:retrieve] no default cache defined: set to C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache
[ivy:retrieve] including url: jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/core/settings/ivysettings-shared.xml
[ivy:retrieve] including url: jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/core/settings/ivysettings-local.xml
[ivy:retrieve] including url: jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/core/settings/ivysettings-main-chain.xml
[ivy:retrieve] including url: jar:file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy-new.jar!/org/apache/ivy/core/settings/ivysettings-default-chain.xml
[ivy:retrieve] settings loaded (62ms)
[ivy:retrieve] 	default cache: C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache
[ivy:retrieve] 	default resolver: default
[ivy:retrieve] 	-- 5 resolvers:
[ivy:retrieve] 	shared [file]
[ivy:retrieve] 	default [chain] [local, main]
[ivy:retrieve] 	local [file]
[ivy:retrieve] 	public [ibiblio]
[ivy:retrieve] 	main [chain] [shared, public]
[ivy:retrieve] no resolved descriptor found: launching default resolve
Overriding previous definition of property "ivy.version"
[ivy:retrieve] using ivy parser to parse file:/C:/temp/ivy-test/apache-ivy-2.1.0/ivy.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
[ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
[ivy:retrieve] 	validate = true
[ivy:retrieve] 	refresh = false
[ivy:retrieve] resolving dependencies for configuration 'core'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [core]
[ivy:retrieve] resolving dependencies for configuration 'httpclient'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [httpclient]
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [core]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-httpclient#commons-httpclient;3.0 [httpclient->runtime]
[ivy:retrieve] default: Checking cache for: dependency: commons-httpclient#commons-httpclient;3.0 {default=[runtime, master], httpclient=[runtime, master]}
[ivy:retrieve] don't use cache for commons-httpclient#commons-httpclient;3.0: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-httpclient/commons-httpclient/3.0/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-httpclient/commons-httpclient/3.0/jars/commons-httpclient.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for commons-httpclient#commons-httpclient;3.0
[ivy:retrieve] main: Checking cache for: dependency: commons-httpclient#commons-httpclient;3.0 {default=[runtime, master], httpclient=[runtime, master]}
[ivy:retrieve] main: module revision found in cache: commons-httpclient#commons-httpclient;3.0
[ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-httpclient#commons-httpclient;3.0 [httpclient->compile]
[ivy:retrieve] excluding dependency: junit#junit;3.8.1 {compile=[compile(*), master(*)], runtime=[runtime(*)]} in compile
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-logging#commons-logging;1.0.3 [compile->master(*)]
[ivy:retrieve] excluding dependency: junit#junit;3.8.1 {compile=[compile(*), master(*)], runtime=[runtime(*)]} in compile
[ivy:retrieve] default: Checking cache for: dependency: commons-logging#commons-logging;1.0.3 {compile=[compile(*), master(*)], runtime=[runtime(*)]}
[ivy:retrieve] don't use cache for commons-logging#commons-logging;1.0.3: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for commons-logging#commons-logging;1.0.3
[ivy:retrieve] main: Checking cache for: dependency: commons-logging#commons-logging;1.0.3 {compile=[compile(*), master(*)], runtime=[runtime(*)]}
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
[ivy:retrieve] 	shared: no ivy file nor artifact found for commons-logging#commons-logging;1.0.3
[ivy:retrieve] 		tried http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
[ivy:retrieve] 	public: found md file for commons-logging#commons-logging;1.0.3
[ivy:retrieve] 		=> http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom (1.0.3)
[ivy:retrieve] downloading http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom ...
[ivy:retrieve] 	public: downloading http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
[ivy:retrieve] 	[FAILED     ] commons-logging#commons-logging;1.0.3!commons-logging.pom(pom.original): Downloaded file size doesn't match expected Content Length for http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom. Please retry. (31ms)
[ivy:retrieve] WARN: problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: Downloaded file size doesn't match expected Content Length for http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom. Please retry. (31ms)
[ivy:retrieve] WARN: 	module not found: commons-logging#commons-logging;1.0.3
[ivy:retrieve] WARN: ==== local: tried
[ivy:retrieve] WARN:   C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
[ivy:retrieve] WARN:   -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
[ivy:retrieve] WARN:   C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
[ivy:retrieve] WARN: ==== shared: tried
[ivy:retrieve] WARN:   C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
[ivy:retrieve] WARN:   -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
[ivy:retrieve] WARN:   C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
[ivy:retrieve] WARN: ==== public: tried
[ivy:retrieve] WARN:   http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-logging#commons-logging;1.0.3 [compile->compile(*)]
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-codec#commons-codec;1.2 [compile->master(*)]
[ivy:retrieve] excluding dependency: junit#junit;3.8.1 {compile=[compile(*), master(*)], runtime=[runtime(*)]} in compile
[ivy:retrieve] default: Checking cache for: dependency: commons-codec#commons-codec;1.2 {compile=[compile(*), master(*)], runtime=[runtime(*)]}
[ivy:retrieve] don't use cache for commons-codec#commons-codec;1.2: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-codec/commons-codec/1.2/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-codec/commons-codec/1.2/jars/commons-codec.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for commons-codec#commons-codec;1.2
[ivy:retrieve] main: Checking cache for: dependency: commons-codec#commons-codec;1.2 {compile=[compile(*), master(*)], runtime=[runtime(*)]}
[ivy:retrieve] main: module revision found in cache: commons-codec#commons-codec;1.2
[ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-codec#commons-codec;1.2 [compile->compile(*)]
[ivy:retrieve] excluding dependency: junit#junit;3.8.1 {compile=[compile(*), master(*)], runtime=[runtime(*)]} in runtime
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-logging#commons-logging;1.0.3 [runtime->runtime(*)]
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-codec#commons-codec;1.2 [runtime->runtime(*)]
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-codec#commons-codec;1.2 [runtime->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-httpclient#commons-httpclient;3.0 [httpclient->master]
[ivy:retrieve] resolving dependencies for configuration 'oro'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [oro]
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [core]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->oro#oro;2.0.8 [oro->default]
[ivy:retrieve] default: Checking cache for: dependency: oro#oro;2.0.8 {default=[default], oro=[default]}
[ivy:retrieve] don't use cache for oro#oro;2.0.8: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/oro/oro/2.0.8/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/oro/oro/2.0.8/jars/oro.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for oro#oro;2.0.8
[ivy:retrieve] main: Checking cache for: dependency: oro#oro;2.0.8 {default=[default], oro=[default]}
[ivy:retrieve] main: module revision found in cache: oro#oro;2.0.8
[ivy:retrieve] 	found oro#oro;2.0.8 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->oro#oro;2.0.8 [oro->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->oro#oro;2.0.8 [oro->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->oro#oro;2.0.8 [oro->master]
[ivy:retrieve] resolving dependencies for configuration 'vfs'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [vfs]
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [core]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-vfs#commons-vfs;1.0 [vfs->default]
[ivy:retrieve] default: Checking cache for: dependency: commons-vfs#commons-vfs;1.0 {default=[default], vfs=[default]}
[ivy:retrieve] don't use cache for commons-vfs#commons-vfs;1.0: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-vfs/commons-vfs/1.0/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-vfs/commons-vfs/1.0/jars/commons-vfs.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for commons-vfs#commons-vfs;1.0
[ivy:retrieve] main: Checking cache for: dependency: commons-vfs#commons-vfs;1.0 {default=[default], vfs=[default]}
[ivy:retrieve] main: module revision found in cache: commons-vfs#commons-vfs;1.0
[ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-vfs#commons-vfs;1.0 [vfs->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-vfs#commons-vfs;1.0 [vfs->compile]
[ivy:retrieve] == resolving dependencies commons-vfs#commons-vfs;1.0->commons-logging#commons-logging;1.0.4 [compile->master(*)]
[ivy:retrieve] default: Checking cache for: dependency: commons-logging#commons-logging;1.0.4 {compile=[compile(*), master(*)], runtime=[runtime(*)]}
[ivy:retrieve] don't use cache for commons-logging#commons-logging;1.0.4: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for commons-logging#commons-logging;1.0.4
[ivy:retrieve] main: Checking cache for: dependency: commons-logging#commons-logging;1.0.4 {compile=[compile(*), master(*)], runtime=[runtime(*)]}
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
[ivy:retrieve] 	shared: no ivy file nor artifact found for commons-logging#commons-logging;1.0.4
[ivy:retrieve] 		tried http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
[ivy:retrieve] 	public: found md file for commons-logging#commons-logging;1.0.4
[ivy:retrieve] 		=> http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom (1.0.4)
[ivy:retrieve] downloading http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom ...
[ivy:retrieve] 	public: downloading http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
[ivy:retrieve] 	public: downloading http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom.sha1
[ivy:retrieve] 	[FAILED     ] commons-logging#commons-logging;1.0.4!commons-logging.pom(pom.original): Downloaded file size doesn't match expected Content Length for http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom.sha1. Please retry. (125ms)
[ivy:retrieve] WARN: problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: Downloaded file size doesn't match expected Content Length for http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom.sha1. Please retry. (125ms)
[ivy:retrieve] WARN: 	module not found: commons-logging#commons-logging;1.0.4
[ivy:retrieve] WARN: ==== local: tried
[ivy:retrieve] WARN:   C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
[ivy:retrieve] WARN:   -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
[ivy:retrieve] WARN:   C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
[ivy:retrieve] WARN: ==== shared: tried
[ivy:retrieve] WARN:   C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
[ivy:retrieve] WARN:   -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
[ivy:retrieve] WARN:   C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
[ivy:retrieve] WARN: ==== public: tried
[ivy:retrieve] WARN:   http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
[ivy:retrieve] == resolving dependencies commons-vfs#commons-vfs;1.0->commons-logging#commons-logging;1.0.4 [compile->compile(*)]
[ivy:retrieve] == resolving dependencies commons-vfs#commons-vfs;1.0->commons-logging#commons-logging;1.0.4 [runtime->runtime(*)]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-vfs#commons-vfs;1.0 [vfs->master]
[ivy:retrieve] resolving dependencies for configuration 'sftp'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [sftp]
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [core]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->com.jcraft#jsch;0.1.31 [sftp->default]
[ivy:retrieve] default: Checking cache for: dependency: com.jcraft#jsch;0.1.31 {default=[default], sftp=[default]}
[ivy:retrieve] don't use cache for com.jcraft#jsch;0.1.31: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/com.jcraft/jsch/0.1.31/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/com.jcraft/jsch/0.1.31/jars/jsch.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for com.jcraft#jsch;0.1.31
[ivy:retrieve] main: Checking cache for: dependency: com.jcraft#jsch;0.1.31 {default=[default], sftp=[default]}
[ivy:retrieve] main: module revision found in cache: com.jcraft#jsch;0.1.31
[ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->com.jcraft#jsch;0.1.31 [sftp->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->com.jcraft#jsch;0.1.31 [sftp->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->com.jcraft#jsch;0.1.31 [sftp->master]
[ivy:retrieve] resolving dependencies for configuration 'standalone'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [standalone]
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [core]
[ivy:retrieve] resolving dependencies for configuration 'ant'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [ant]
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [core]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant;1.6.2 [ant->default]
[ivy:retrieve] default: Checking cache for: dependency: ant#ant;1.6.2 {default=[default], ant=[default]}
[ivy:retrieve] don't use cache for ant#ant;1.6.2: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/ant/ant/1.6.2/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/ant/ant/1.6.2/jars/ant.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for ant#ant;1.6.2
[ivy:retrieve] main: Checking cache for: dependency: ant#ant;1.6.2 {default=[default], ant=[default]}
[ivy:retrieve] main: module revision found in cache: ant#ant;1.6.2
[ivy:retrieve] 	found ant#ant;1.6.2 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant;1.6.2 [ant->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant;1.6.2 [ant->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant;1.6.2 [ant->master]
[ivy:retrieve] resolving dependencies for configuration 'default'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [default]
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [core]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant;1.6.2 [default->default]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant;1.6.2 [default->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant;1.6.2 [default->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant;1.6.2 [default->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-nodeps;1.6.2 [default->default]
[ivy:retrieve] default: Checking cache for: dependency: ant#ant-nodeps;1.6.2 {default=[default]}
[ivy:retrieve] don't use cache for ant#ant-nodeps;1.6.2: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/ant/ant-nodeps/1.6.2/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/ant/ant-nodeps/1.6.2/jars/ant-nodeps.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for ant#ant-nodeps;1.6.2
[ivy:retrieve] main: Checking cache for: dependency: ant#ant-nodeps;1.6.2 {default=[default]}
[ivy:retrieve] main: module revision found in cache: ant#ant-nodeps;1.6.2
[ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-nodeps;1.6.2 [default->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-nodeps;1.6.2 [default->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-nodeps;1.6.2 [default->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-trax;1.6.2 [default->default]
[ivy:retrieve] default: Checking cache for: dependency: ant#ant-trax;1.6.2 {default=[default]}
[ivy:retrieve] don't use cache for ant#ant-trax;1.6.2: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/ant/ant-trax/1.6.2/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/ant/ant-trax/1.6.2/jars/ant-trax.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for ant#ant-trax;1.6.2
[ivy:retrieve] main: Checking cache for: dependency: ant#ant-trax;1.6.2 {default=[default]}
[ivy:retrieve] main: module revision found in cache: ant#ant-trax;1.6.2
[ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-trax;1.6.2 [default->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-trax;1.6.2 [default->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-trax;1.6.2 [default->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-httpclient#commons-httpclient;3.0 [default->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-httpclient#commons-httpclient;3.0 [default->compile]
[ivy:retrieve] excluding dependency: junit#junit;3.8.1 {compile=[compile(*), master(*)], runtime=[runtime(*)]} in compile
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-logging#commons-logging;1.0.3 [compile->master(*)]
[ivy:retrieve] excluding dependency: junit#junit;3.8.1 {compile=[compile(*), master(*)], runtime=[runtime(*)]} in compile
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-logging#commons-logging;1.0.3 [compile->compile(*)]
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-codec#commons-codec;1.2 [compile->master(*)]
[ivy:retrieve] excluding dependency: junit#junit;3.8.1 {compile=[compile(*), master(*)], runtime=[runtime(*)]} in compile
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-codec#commons-codec;1.2 [compile->compile(*)]
[ivy:retrieve] excluding dependency: junit#junit;3.8.1 {compile=[compile(*), master(*)], runtime=[runtime(*)]} in runtime
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-logging#commons-logging;1.0.3 [runtime->runtime(*)]
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-codec#commons-codec;1.2 [runtime->runtime(*)]
[ivy:retrieve] == resolving dependencies commons-httpclient#commons-httpclient;3.0->commons-codec#commons-codec;1.2 [runtime->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-httpclient#commons-httpclient;3.0 [default->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->oro#oro;2.0.8 [default->default]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->oro#oro;2.0.8 [default->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->oro#oro;2.0.8 [default->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->oro#oro;2.0.8 [default->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-vfs#commons-vfs;1.0 [default->default]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-vfs#commons-vfs;1.0 [default->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-vfs#commons-vfs;1.0 [default->compile]
[ivy:retrieve] == resolving dependencies commons-vfs#commons-vfs;1.0->commons-logging#commons-logging;1.0.4 [compile->master(*)]
[ivy:retrieve] == resolving dependencies commons-vfs#commons-vfs;1.0->commons-logging#commons-logging;1.0.4 [compile->compile(*)]
[ivy:retrieve] == resolving dependencies commons-vfs#commons-vfs;1.0->commons-logging#commons-logging;1.0.4 [runtime->runtime(*)]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-vfs#commons-vfs;1.0 [default->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->com.jcraft#jsch;0.1.31 [default->default]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->com.jcraft#jsch;0.1.31 [default->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->com.jcraft#jsch;0.1.31 [default->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->com.jcraft#jsch;0.1.31 [default->master]
[ivy:retrieve] resolving dependencies for configuration 'test'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [test]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->junit#junit;3.8.2 [test->default]
[ivy:retrieve] default: Checking cache for: dependency: junit#junit;3.8.2 {test=[default]}
[ivy:retrieve] don't use cache for junit#junit;3.8.2: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/junit/junit/3.8.2/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/junit/junit/3.8.2/jars/junit.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for junit#junit;3.8.2
[ivy:retrieve] main: Checking cache for: dependency: junit#junit;3.8.2 {test=[default]}
[ivy:retrieve] main: module revision found in cache: junit#junit;3.8.2
[ivy:retrieve] 	found junit#junit;3.8.2 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->junit#junit;3.8.2 [test->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->junit#junit;3.8.2 [test->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->junit#junit;3.8.2 [test->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-lang#commons-lang;2.4 [test->default]
[ivy:retrieve] default: Checking cache for: dependency: commons-lang#commons-lang;2.4 {test=[default]}
[ivy:retrieve] don't use cache for commons-lang#commons-lang;2.4: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-lang/commons-lang/2.4/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-lang/commons-lang/2.4/jars/commons-lang.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for commons-lang#commons-lang;2.4
[ivy:retrieve] main: Checking cache for: dependency: commons-lang#commons-lang;2.4 {test=[default]}
[ivy:retrieve] main: module revision found in cache: commons-lang#commons-lang;2.4
[ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-lang#commons-lang;2.4 [test->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-lang#commons-lang;2.4 [test->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->commons-lang#commons-lang;2.4 [test->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->org.apache.ant#ant-testutil;1.7.0 [test->default]
[ivy:retrieve] default: Checking cache for: dependency: org.apache.ant#ant-testutil;1.7.0 {test=[default]}
[ivy:retrieve] don't use cache for org.apache.ant#ant-testutil;1.7.0: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/org.apache.ant/ant-testutil/1.7.0/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/org.apache.ant/ant-testutil/1.7.0/jars/ant-testutil.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for org.apache.ant#ant-testutil;1.7.0
[ivy:retrieve] main: Checking cache for: dependency: org.apache.ant#ant-testutil;1.7.0 {test=[default]}
[ivy:retrieve] main: module revision found in cache: org.apache.ant#ant-testutil;1.7.0
[ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->org.apache.ant#ant-testutil;1.7.0 [test->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->org.apache.ant#ant-testutil;1.7.0 [test->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->org.apache.ant#ant-testutil;1.7.0 [test->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-launcher;1.6.2 [test->default]
[ivy:retrieve] default: Checking cache for: dependency: ant#ant-launcher;1.6.2 {test=[default]}
[ivy:retrieve] don't use cache for ant#ant-launcher;1.6.2: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/ant/ant-launcher/1.6.2/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/ant/ant-launcher/1.6.2/jars/ant-launcher.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for ant#ant-launcher;1.6.2
[ivy:retrieve] main: Checking cache for: dependency: ant#ant-launcher;1.6.2 {test=[default]}
[ivy:retrieve] main: module revision found in cache: ant#ant-launcher;1.6.2
[ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-launcher;1.6.2 [test->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-launcher;1.6.2 [test->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->ant#ant-launcher;1.6.2 [test->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->xerces#xercesImpl;2.6.2 [test->default]
[ivy:retrieve] default: Checking cache for: dependency: xerces#xercesImpl;2.6.2 {test=[default]}
[ivy:retrieve] don't use cache for xerces#xercesImpl;2.6.2: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/xerces/xercesImpl/2.6.2/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/xerces/xercesImpl/2.6.2/jars/xercesImpl.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for xerces#xercesImpl;2.6.2
[ivy:retrieve] main: Checking cache for: dependency: xerces#xercesImpl;2.6.2 {test=[default]}
[ivy:retrieve] main: module revision found in cache: xerces#xercesImpl;2.6.2
[ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->xerces#xercesImpl;2.6.2 [test->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->xerces#xercesImpl;2.6.2 [test->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->xerces#xercesImpl;2.6.2 [test->master]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->xerces#xmlParserAPIs;2.6.2 [test->default]
[ivy:retrieve] default: Checking cache for: dependency: xerces#xmlParserAPIs;2.6.2 {test=[default]}
[ivy:retrieve] don't use cache for xerces#xmlParserAPIs;2.6.2: checkModified=true
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/xerces/xmlParserAPIs/2.6.2/ivys/ivy.xml
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/xerces/xmlParserAPIs/2.6.2/jars/xmlParserAPIs.jar
[ivy:retrieve] 	local: no ivy file nor artifact found for xerces#xmlParserAPIs;2.6.2
[ivy:retrieve] main: Checking cache for: dependency: xerces#xmlParserAPIs;2.6.2 {test=[default]}
[ivy:retrieve] main: module revision found in cache: xerces#xmlParserAPIs;2.6.2
[ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->xerces#xmlParserAPIs;2.6.2 [test->runtime]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->xerces#xmlParserAPIs;2.6.2 [test->compile]
[ivy:retrieve] == resolving dependencies org.apache.ivy#ivy;2.1.0->xerces#xmlParserAPIs;2.6.2 [test->master]
[ivy:retrieve] resolving dependencies for configuration 'source'
[ivy:retrieve] == resolving dependencies for org.apache.ivy#ivy;2.1.0 [source]
[ivy:retrieve] 	resolved ivy file produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\resolved-org.apache.ivy-ivy-2.1.0.xml
[ivy:retrieve] :: downloading artifacts ::
[ivy:retrieve] 	[NOT REQUIRED] commons-httpclient#commons-httpclient;3.0!commons-httpclient.jar
[ivy:retrieve] 	[NOT REQUIRED] commons-codec#commons-codec;1.2!commons-codec.jar
[ivy:retrieve] 	[NOT REQUIRED] oro#oro;2.0.8!oro.jar
[ivy:retrieve] 	[NOT REQUIRED] commons-vfs#commons-vfs;1.0!commons-vfs.jar
[ivy:retrieve] 	[NOT REQUIRED] com.jcraft#jsch;0.1.31!jsch.jar
[ivy:retrieve] 	[NOT REQUIRED] ant#ant;1.6.2!ant.jar
[ivy:retrieve] 	[NOT REQUIRED] ant#ant-nodeps;1.6.2!ant-nodeps.jar
[ivy:retrieve] 	[NOT REQUIRED] ant#ant-trax;1.6.2!ant-trax.jar
[ivy:retrieve] 		tried C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
[ivy:retrieve] 		tried http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
[ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
[ivy:retrieve] 	public: downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
[ivy:retrieve] ..... (117kB)
[ivy:retrieve] 	public: downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar.sha1
[ivy:retrieve] .. (0kB)
[ivy:retrieve] WARN: 	[FAILED     ] junit#junit;3.8.2!junit.jar: Downloaded file size doesn't match expected Content Length for http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar.sha1. Please retry. (141ms)
[ivy:retrieve] WARN: 	[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
[ivy:retrieve] WARN: ==== shared: tried
[ivy:retrieve] WARN:   C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
[ivy:retrieve] WARN: ==== public: tried
[ivy:retrieve] WARN:   http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
[ivy:retrieve] 	[NOT REQUIRED] commons-lang#commons-lang;2.4!commons-lang.jar
[ivy:retrieve] 	[NOT REQUIRED] org.apache.ant#ant-testutil;1.7.0!ant-testutil.jar
[ivy:retrieve] 	[NOT REQUIRED] ant#ant-launcher;1.6.2!ant-launcher.jar
[ivy:retrieve] 	[NOT REQUIRED] xerces#xercesImpl;2.6.2!xercesImpl.jar
[ivy:retrieve] 	[NOT REQUIRED] xerces#xmlParserAPIs;2.6.2!xmlParserAPIs.jar
[ivy:retrieve] :: resolution report :: resolve 2734ms :: artifacts dl 141ms
[ivy:retrieve] 	:: evicted modules:
[ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
[ivy:retrieve] 	  in org.apache.ivy#ivy;2.1.0 with latest-revision
	---------------------------------------------------------------------
	|                  |            modules            ||   artifacts   |
	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
	---------------------------------------------------------------------
	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
	---------------------------------------------------------------------
[ivy:retrieve] WARN: 	::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] WARN: 	::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve] WARN: 	::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] WARN: 	:: commons-logging#commons-logging;1.0.3: not found
[ivy:retrieve] WARN: 	:: commons-logging#commons-logging;1.0.4: not found
[ivy:retrieve] WARN: 	::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] WARN: 	::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] WARN: 	::              FAILED DOWNLOADS            ::
[ivy:retrieve] WARN: 	:: ^ see resolution messages for details  ^ ::
[ivy:retrieve] WARN: 	::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] WARN: 	:: junit#junit;3.8.2!junit.jar
[ivy:retrieve] WARN: 	::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 core produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-core.xml
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 httpclient produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-httpclient.xml
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 oro produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-oro.xml
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 vfs produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-vfs.xml
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 sftp produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-sftp.xml
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 standalone produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-standalone.xml
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 ant produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-ant.xml
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 default produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-default.xml
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 test produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-test.xml
[ivy:retrieve] 	report for org.apache.ivy#ivy;2.1.0 source produced in C:\Documents and Settings\Constantin.Plotnikov\.ivy2\cache\org.apache.ivy-ivy-source.xml
[ivy:retrieve] 	resolve done (2734ms resolve - 141ms download)
[ivy:retrieve] 
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: Downloaded file size doesn't match expected Content Length for http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom. Please retry. (31ms)
[ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
[ivy:retrieve] 	==== local: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
[ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
[ivy:retrieve] 	==== shared: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
[ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
[ivy:retrieve] 	==== public: tried
[ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
[ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: Downloaded file size doesn't match expected Content Length for http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom.sha1. Please retry. (125ms)
[ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
[ivy:retrieve] 	==== local: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
[ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
[ivy:retrieve] 	==== shared: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
[ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
[ivy:retrieve] 	==== public: tried
[ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
[ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: Downloaded file size doesn't match expected Content Length for http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar.sha1. Please retry. (141ms)
[ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
[ivy:retrieve] 	==== shared: tried
[ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
[ivy:retrieve] 	==== public: tried
[ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
[ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		::              FAILED DOWNLOADS            ::
[ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 
[ivy:retrieve] 
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

{code}

> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.2.0-RC1
>
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877553#action_12877553 ] 

Maarten Coene commented on IVY-1194:
------------------------------------

FYI: I've add support for "deflate" as well.
I did refactor the code a bit for this, could you give it another try to see I 'gzip' still works for you?

thanks
Maarten

> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.2.0-RC1
>
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875026#action_12875026 ] 

Maarten Coene commented on IVY-1194:
------------------------------------

I didn't had this problem when I tested it out myself (without a squid proxy though).
Is it possible that this is also squid - related?

> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.2.0-RC1
>
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Constantine Plotnikov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875545#action_12875545 ] 

Constantine Plotnikov commented on IVY-1194:
--------------------------------------------

Fix works for me for normal ivy operations. Note that go-ivy tutorial still fails since ant "get" task still fetches compressed version of ivy.jar from proxy. Maybe it make sense to reapply the fixes for this patch to ant "get" task as well.

According to RFC2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html, section 3.5) zlib variant should be used for "deflate" content encoding method. So you need to support only the first method.



> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.2.0-RC1
>
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene updated IVY-1194:
-------------------------------

    Component/s: Core
                     (was: Maven Compatibility)

> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.2.0-RC1
>
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene resolved IVY-1194.
--------------------------------

    Resolution: Fixed

I've fixed the problem with the content-length.
Could you give it a try?

Regarding the deflate content-encoding. There seems to be 2 variants: a zlib variant and a gzip/pkzip variant.
- zlib variant: can be read using: new InflaterInputStream(url.openStream());
- gzip/pkzip variant: can be read using: new InflaterInputStream(url.openStream, new Inflater(true));
However, I didn't find a proper way in java to support them both, so Ivy will only support gzip for the moment. If you do know how to solve this problem, please reopen this issue and tell me how to do it :-)

> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.2.0-RC1
>
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

Posted by "Constantine Plotnikov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879743#action_12879743 ] 

Constantine Plotnikov commented on IVY-1194:
--------------------------------------------

The revision 955536 works for me.

Thanks. 
Constantine

> Downloads from maven repository fail when using transparent HTTP proxies
> ------------------------------------------------------------------------
>
>                 Key: IVY-1194
>                 URL: https://issues.apache.org/jira/browse/IVY-1194
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0
>         Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
>            Reporter: Constantine Plotnikov
>            Assignee: Maarten Coene
>            Priority: Blocker
>             Fix For: 2.2.0-RC1
>
>
> The package without dependencies cannot fetch dependencies and samples in the package with dependencies do not work.
> Fetching dependencies fails with the following log:
> {quote}
> Buildfile: build.xml
> init-ivy:
> retrieve-all:
> [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: url = jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
> [ivy:retrieve] 	confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
> [ivy:retrieve] 	found commons-httpclient#commons-httpclient;3.0 in public
> [ivy:retrieve] 	found commons-codec#commons-codec;1.2 in public
> [ivy:retrieve] 	found oro#oro;2.0.8 in public
> [ivy:retrieve] 	found commons-vfs#commons-vfs;1.0 in public
> [ivy:retrieve] 	found com.jcraft#jsch;0.1.31 in public
> [ivy:retrieve] 	found ant#ant;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-nodeps;1.6.2 in public
> [ivy:retrieve] 	found ant#ant-trax;1.6.2 in public
> [ivy:retrieve] 	found junit#junit;3.8.2 in public
> [ivy:retrieve] 	found commons-lang#commons-lang;2.4 in public
> [ivy:retrieve] 	found org.apache.ant#ant-testutil;1.7.0 in public
> [ivy:retrieve] 	found ant#ant-launcher;1.6.2 in public
> [ivy:retrieve] 	found xerces#xercesImpl;2.6.2 in public
> [ivy:retrieve] 	found xerces#xmlParserAPIs;2.6.2 in public
> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
> [ivy:retrieve] ............ (117kB)
> [ivy:retrieve] .. (0kB)
> [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
> [ivy:retrieve] 	:: evicted modules:
> [ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.0.4] in [default]
> 	---------------------------------------------------------------------
> 	|                  |            modules            ||   artifacts   |
> 	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
> 	---------------------------------------------------------------------
> 	|       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|    httpclient    |   3   |   0   |   0   |   0   ||   2   |   0   |
> 	|        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|        vfs       |   2   |   0   |   0   |   0   ||   1   |   0   |
> 	|       sftp       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	|        ant       |   1   |   0   |   0   |   0   ||   1   |   0   |
> 	|      default     |   10  |   0   |   0   |   1   ||   8   |   0   |
> 	|       test       |   6   |   0   |   0   |   0   ||   6   |   0   |
> 	|      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
> 	---------------------------------------------------------------------
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom: invalid sha1: expected=<
> [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.3
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.3!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.3/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
> [ivy:retrieve] 	problem while downloading module descriptor: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom: invalid sha1: expected=<
> [ivy:retrieve] 		module not found: commons-logging#commons-logging;1.0.4
> [ivy:retrieve] 	==== local: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/ivys/ivy.xml
> [ivy:retrieve] 	  -- artifact commons-logging#commons-logging;1.0.4!commons-logging.jar:
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/commons-logging/commons-logging/1.0.4/jars/commons-logging.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar: invalid sha1: expected=<
> [ivy:retrieve] 		[FAILED     ] junit#junit;3.8.2!junit.jar:  (0ms)
> [ivy:retrieve] 	==== shared: tried
> [ivy:retrieve] 	  C:\Documents and Settings\Constantin.Plotnikov\.ivy2/shared/junit/junit/3.8.2/jars/junit.jar
> [ivy:retrieve] 	==== public: tried
> [ivy:retrieve] 	  http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.3: not found
> [ivy:retrieve] 		:: commons-logging#commons-logging;1.0.4: not found
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		::              FAILED DOWNLOADS            ::
> [ivy:retrieve] 		:: ^ see resolution messages for details  ^ ::
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 		:: junit#junit;3.8.2!junit.jar
> [ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] 
> [ivy:retrieve] 
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {quote}
> The sample in package with dependencies  fails with the following log:
> {quote}
> Buildfile: build.xml
> download-ivy:
>     [mkdir] Created dir: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy
>      [echo] installing ivy...
>       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
>       [get] To: C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\ivy\ivy.jar
> install-ivy:
>   [taskdef] java.util.zip.ZipException: error in opening zip file
>   [taskdef] 	at java.util.zip.ZipFile.open(Native Method)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>   [taskdef] 	at java.util.zip.ZipFile.<init>(ZipFile.java:234)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:126)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:88)
>   [taskdef] 	at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:869)
>   [taskdef] 	at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:267)
>   [taskdef] 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:211)
>   [taskdef] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   [taskdef] 	at org.apache.tools.ant.Task.perform(Task.java:364)
>   [taskdef] 	at org.apache.tools.ant.Target.execute(Target.java:341)
>   [taskdef] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [taskdef] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   [taskdef] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>   [taskdef] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   [taskdef] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [taskdef] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [taskdef] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
> generate-src:
> go:
>      [echo] using ivy to resolve commons-lang 2.1...
> BUILD FAILED
> C:\utils\apache\apache-ivy-2.1.0\src\example\go-ivy\build.xml:85: Could not create task or type of type: antlib:org.apache.ivy.ant:cachepath.
> Ant could not find the task or a class this task relies upon.
> This is common and has a number of causes; the usual 
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file: 
>  - You have misspelt 'antlib:org.apache.ivy.ant:cachepath'.
>    Fix: check your spelling.
>  - The task needs an external JAR file to execute
>      and this is not found at the right place in the classpath.
>    Fix: check the documentation for dependencies.
>    Fix: declare the task.
>  - The task is an Ant optional task and the JAR file and/or libraries
>      implementing the functionality were not found at the time you
>      yourself built your installation of Ant from the Ant sources.
>    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
>      task and make sure it contains more than merely a META-INF/MANIFEST.MF.
>      If all it contains is the manifest, then rebuild Ant with the needed
>      libraries present in ${ant.home}/lib/optional/ , or alternatively,
>      download a pre-built release version from apache.org
>  - The build file was written for a later version of Ant
>    Fix: upgrade to at least the latest release version of Ant
>  - The task is not an Ant core or optional task 
>      and needs to be declared using <taskdef>.
>  - You are attempting to use a task defined using 
>     <presetdef> or <macrodef> but have spelt wrong or not 
>    defined it at the point of use
> Remember that for JAR files to be visible to Ant tasks implemented
> in ANT_HOME/lib, the files must be in the same directory or on the
> classpath
> Please neither file bug reports on this problem, nor email the
> Ant mailing lists, until all of these causes have been explored,
> as this is not an Ant bug.
> Total time: 1 second
> {quote}
> The reason for the bug is the squid. When request comes and it has a cached content with gzip content encoding, it return a content with encoded content, event if no encoding was specified in the request or "Accept-Encoding: identity" was specified. The below is a sample log that demonstrates the problem:  
> {quote}
> DEBUG output created by Wget 1.11.4 on cygwin.
> --2010-06-02 12:41:55--  http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> Resolving repo1.maven.org... 38.97.124.18
> Caching repo1.maven.org => 38.97.124.18
> Connecting to repo1.maven.org|38.97.124.18|:80... connected.
> Created socket 4.
> Releasing 0x006d9100 (new refcount 1).
> ---request begin---
> GET /maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar HTTP/1.0
> User-Agent: Wget/1.11.4
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
> ---request end---
> HTTP request sent, awaiting response... 
> ---response begin---
> HTTP/1.0 200 OK
> Server: nginx/0.7.62
> Date: Tue, 01 Jun 2010 13:09:36 GMT
> Content-Type: application/java-archive
> Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
> Content-Encoding: gzip
> X-Cache: MISS from squid_havp_node1
> X-Cache-Lookup: MISS from squid_havp_node1:3128
> Age: 70339
> Content-Length: 834513
> X-Cache: HIT from squid_havp_node1
> X-Cache-Lookup: HIT from squid_havp_node1:3128
> Connection: keep-alive
> ---response end---
>   HTTP/1.0 200 OK
>   Server: nginx/0.7.62
>   Date: Tue, 01 Jun 2010 13:09:36 GMT
>   Content-Type: application/java-archive
>   Last-Modified: Mon, 12 Oct 2009 21:19:02 GMT
>   Content-Encoding: gzip
>   X-Cache: MISS from squid_havp_node1
>   X-Cache-Lookup: MISS from squid_havp_node1:3128
>   Age: 70339
>   Content-Length: 834513
>   X-Cache: HIT from squid_havp_node1
>   X-Cache-Lookup: HIT from squid_havp_node1:3128
>   Connection: keep-alive
> Registered socket 4 for persistent reuse.
> Length: 834513 (815K) [application/java-archive]
> Saving to: `ivy-2.1.0.jar'
>      0K .......... .......... .......... .......... ..........  6% 8.49M 0s
>     50K .......... .......... .......... .......... .......... 12% 12.0M 0s
>    100K .......... .......... .......... .......... .......... 18% 7.26M 0s
>    150K .......... .......... .......... .......... .......... 24% 9.28M 0s
>    200K .......... .......... .......... .......... .......... 30% 5.33M 0s
>    250K .......... .......... .......... .......... .......... 36% 9.31M 0s
>    300K .......... .......... .......... .......... .......... 42% 5.26M 0s
>    350K .......... .......... .......... .......... .......... 49% 9.15M 0s
>    400K .......... .......... .......... .......... .......... 55% 7.27M 0s
>    450K .......... .......... .......... .......... .......... 61% 7.42M 0s
>    500K .......... .......... .......... .......... .......... 67% 9.21M 0s
>    550K .......... .......... .......... .......... .......... 73% 6.11M 0s
>    600K .......... .......... .......... .......... .......... 79% 9.50M 0s
>    650K .......... .......... .......... .......... .......... 85% 8.84M 0s
>    700K .......... .......... .......... .......... .......... 92% 9.54M 0s
>    750K .......... .......... .......... .......... .......... 98% 6.04M 0s
>    800K .......... ....                                       100% 16.2K=1.0s
> 2010-06-02 12:41:56 (795 KB/s) - `ivy-2.1.0.jar' saved [834513/834513]
> {quote}
> In our environment, a bunch of files from repo1.maven.org are cached in the squid. So there were a lot of conflicts with content encoding.
> The possible workarounds:
> 1. Check returned content encoding from http client, if it is not identity, reissue the request with disabling the caches.
> 2. Ungzip files fetched with gzip content encoding.
> 3. Support gzip content encoding in common HTTP.
> 3. Use local maven proxies 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.