There are many issues reported wrt Ivy and uploading very large files
(related to the use of the JDK URL classes for uploading).
As an alternative, you can publish to Artifactory directly from Hudson (or
better, Jenkins :) using the Jenkins Artifactory
plugin<https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin>
+
get all the other benefits of using the build
integration<http://wiki.jfrog.org/confluence/display/RTF/Build+Integration>
features
of Artifactory for Ivy, such as: avoiding partial publishing, collecting
traceable build info, etc.

On Mon, May 9, 2011 at 11:34 PM, Phillip Rhodes
<phillip.rho...@redwood.com>wrote:

> Hi all, hoping someone can help shed some light on this problem I'm having.
>  We use Ant and Ivy to publish build artifacts to Artifactory, with this
> stuff being run on a Hudson server.  We have about 30 projects that are
> built and published throughout the day.  But for the past week or two, I've
> been getting intermittent errors when Ivy tries to publish the artifacts up
> to the Artifactory server.  It's usually (but not always) the same project
> which fails, and it doesn't always fail.  Most of the time, I can log into
> Hudson immediately after seeing it fail, manually kick off another build and
> it works fine.
>
> The error that is reported by Ivy looks like this:
>
> java.io.IOException: Error writing to server
>        at
> sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:583)
>        at
> sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:595)
>        at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1198)
>        at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
>        at
> org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:225)
>        at
> org.apache.ivy.util.url.URLHandlerDispatcher.upload(URLHandlerDispatcher.java:82)
>        at org.apache.ivy.util.FileUtil.copy(FileUtil.java:148)
>        at
> org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84)
>        at
> org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
>        at
> org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:234)
>        at
> org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216)
>        at
> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:281)
>        at
> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:260)
>        at
> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:172)
>        ...
>
> FWIW, the project that fails most often is the one that generates the
> largest artifact; but I'm not 100% certain that has anything to do with
> what's going on.
>
> Has anyone seen this sort of thing before?   Is it likely to be a timeout
> related issue of some sort?  If so, any thoughts on what might resolve it?
>
> If it helps, this is all running on a VM running Windows Server 2008, the
> latest version of Ivy, the latest Artifactory and a relatively recent
> Sun/Oracle JDK 1.6.
>
>
> Thanks,
>
>
> Phillip Rhodes
> Redwood Software
>
>
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Artifactory-users mailing list
> Artifactory-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Artifactory-users mailing list
Artifactory-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to