You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dmitry Beransky <dm...@gmail.com> on 2007/11/02 00:00:08 UTC

Exception transfering site files via webdav

Hi,
uploading a site file with site:site has worked quite well for me
until a few months ago.  Now, I consistantly get an exception half way
through the process.  The only thing that really changed, I think, is
the size of the projects: more files.  here's the exception:



Embedded error: Failed to create destination WebDAV collection (directory): /pro
jects/web-app-parent/csa/./apidocs/com/csatravelprotection/rules/class-use
Address already in use: connect
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site
        at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:172)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
create destination
WebDAV collection (directory):
/projects/web-app-parent/csa/./apidocs/com/csatravelprotection/rules/class-use
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.java:270)
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:555)
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
        at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:156)
        ... 18 more
Caused by: java.net.BindException: Address already in use: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:179)
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
        at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
        at org.apache.webdav.lib.WebdavResource.mkcolMethod(WebdavResource.java:4106)
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.java:264)
        ... 25 more

Any pointers how to fix this?

Thanks
Dmitry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exception transfering site files via webdav

Posted by Dmitry Beransky <dm...@gmail.com>.
I've suspected as much.  Is there a way to tell the site plugin to
throttle it's connection creation rate?  I understand that Windows is
running out of ports, but in reality, it's program opening connections
that's at fault.  It shouldn't be flooding the TCP/IP stack with so
many connection requests.


D.

On 11/1/07, Heinrich Nirschl <he...@gmail.com> wrote:
> This is a problem with the default Windows TCP/IP configuration. The
> client runs out of available ports during the many webdav transfers.
>
> The solution is described here:
> http://msdn2.microsoft.com/en-us/library/aa560610.aspx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exception transfering site files via webdav

Posted by Heinrich Nirschl <he...@gmail.com>.
> uploading a site file with site:site has worked quite well for me
> until a few months ago.  Now, I consistantly get an exception half way
> through the process.  The only thing that really changed, I think, is
> the size of the projects: more files.  here's the exception:

> Embedded error: Failed to create destination WebDAV collection (directory): /pro
> jects/web-app-parent/csa/./apidocs/com/csatravelprotection/rules/class-use
> Address already in use: connect

This is a problem with the default Windows TCP/IP configuration. The
client runs out of available ports during the many webdav transfers.

The solution is described here:
http://msdn2.microsoft.com/en-us/library/aa560610.aspx

- Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org