From wagontaylorjay@example.net Mon Dec 05 21:02:45 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 67596 invoked from network); 5 Dec 2005 21:02:44 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 5 Dec 2005 21:02:44 -0000
Received: (qmail 89942 invoked by uid 500); 5 Dec 2005 21:02:23 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 89621 invoked by uid 500); 5 Dec 2005 21:02:21 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 89539 invoked by uid 99); 5 Dec 2005 21:02:20 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 13:02:20 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 13:02:11 -0800
Received: (qmail 3256 invoked by uid 89); 5 Dec 2005 21:01:35 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 5 Dec 2005 21:01:35 -0000
Message-ID: <taylorjay@example.net>
Date: Mon, 5 Dec 2005 15:01:35 -0600 (CST)
From: "Brett Porter (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Updated: (WAGONHTTP-1) httpclient wagon doesn't deal with 302 correctly
In-Reply-To: <taylorjay@example.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

     [ http://jira.codehaus.org/browse/WAGONHTTP-1?page=all ]

Brett Porter updated WAGONHTTP-1:
---------------------------------

    Assign To:     (was: Brett Porter)

> httpclient wagon doesn't deal with 302 correctly
> ------------------------------------------------
>
>          Key: WAGONHTTP-1
>          URL: http://jira.codehaus.org/browse/WAGONHTTP-1
>      Project: wagon-http
>         Type: Bug
>     Reporter: Brett Porter
>      Fix For: 1.0-alpha-5

>
>
> need to either reintroduce the cross-host handling used in m1's HttpUtils, or upgrade to httpclient 3.0 as I believe this now handles cross-host redirects.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net


From wagontaylorjay@example.net Tue Dec 13 08:33:10 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 22539 invoked from network); 13 Dec 2005 08:33:09 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 13 Dec 2005 08:33:09 -0000
Received: (qmail 50588 invoked by uid 500); 13 Dec 2005 08:33:08 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 50568 invoked by uid 500); 13 Dec 2005 08:33:08 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 50557 invoked by uid 99); 13 Dec 2005 08:33:08 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 00:33:07 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 00:33:07 -0800
Received: (qmail 6337 invoked by uid 89); 13 Dec 2005 08:32:46 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 13 Dec 2005 08:32:46 -0000
Message-ID: <taylorjay@example.net>
Date: Tue, 13 Dec 2005 02:32:46 -0600 (CST)
From: "Heiner Wieder (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Commented: (WAGON-24) Wagon FTP hangs attempting to deploy
 artifact
In-Reply-To: <taylorjay@example.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

    [ http://jira.codehaus.org/browse/WAGON-24?page=comments#action_53337 ] 

Heiner Wieder commented on WAGON-24:
------------------------------------

I have exactly the same problem, which prevents to use Maven 2 in our company

> Wagon FTP hangs attempting to deploy artifact
> ---------------------------------------------
>
>          Key: WAGON-24
>          URL: http://jira.codehaus.org/browse/WAGON-24
>      Project: wagon
>         Type: Bug

>     Versions: 1.0-alpha-4
>  Environment: Running Maven 2 on Windows XP, repository on Sun Solaris 10
>     Reporter: K.C. Baltz

>
>
> When deploying my artifact to my repository via FTP, the process hangs (it eventually fails after many minutes).  I've noticed that it only fails the second time the artifact is deployed, so it seems to be related to retrieving the previous build number/metadata.
>         <snapshotRepository>
>             <id>CopartSnapshotDeploy</id>
>             <name>Repository Name</name>
>             <url>ftp://cvs.copart.com/repository</url>
>         </snapshotRepository>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net


From wagontaylorjay@example.net Mon Dec 19 17:54:11 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 93534 invoked from network); 19 Dec 2005 17:54:11 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 19 Dec 2005 17:54:11 -0000
Received: (qmail 76644 invoked by uid 500); 19 Dec 2005 17:54:10 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 76614 invoked by uid 500); 19 Dec 2005 17:54:10 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 76603 invoked by uid 99); 19 Dec 2005 17:54:10 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 09:54:10 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 09:54:09 -0800
Received: (qmail 21096 invoked by uid 89); 19 Dec 2005 17:53:48 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 19 Dec 2005 17:53:48 -0000
Message-ID: <taylorjay@example.net>
Date: Mon, 19 Dec 2005 11:53:48 -0600 (CST)
From: "mike perham (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Created: (WAGON-29) Support plink's password parameter
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

Support plink's password parameter
----------------------------------

         Key: WAGON-29
         URL: http://jira.codehaus.org/browse/WAGON-29
     Project: wagon
        Type: Improvement

    Versions: 1.0-alpha-5    
    Reporter: mike perham
     Fix For: 1.0-alpha-6


Currently wagon-ssh-external only supports private keys for scp authentication.  Plink has a "-pw" parameter.  Please support this if possible.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net


From wagontaylorjay@example.net Thu Dec 22 20:53:45 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 18370 invoked from network); 22 Dec 2005 20:53:43 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 22 Dec 2005 20:53:43 -0000
Received: (qmail 28696 invoked by uid 500); 22 Dec 2005 20:53:36 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 28673 invoked by uid 500); 22 Dec 2005 20:53:36 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 28662 invoked by uid 99); 22 Dec 2005 20:53:35 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2005 12:53:35 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2005 12:53:34 -0800
Received: (qmail 30712 invoked by uid 89); 22 Dec 2005 20:53:11 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 22 Dec 2005 20:53:11 -0000
Message-ID: <taylorjay@example.net>
Date: Thu, 22 Dec 2005 14:53:11 -0600 (CST)
From: "John Wells (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Commented: (WAGONFTP-8) ArrayIndexOutOfBoundsException upon
 deploy
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

    [ http://jira.codehaus.org/browse/WAGONFTP-8?page=comments#action_54058 ] 

John Wells commented on WAGONFTP-8:
-----------------------------------

The AIOOB exception can be fixed by changing the following line:

(@ approximately line 329 in file FtpWagon.c - the 1.0-alpha-5 version)

if ( ftpFiles == null  )
 {
   throw new ResourceDoesNotExistException( "Could not find file: '" + resource + "'" );
 }

long contentLength = ftpFiles[0].getSize();

to this:

(@ approximately line 329 in file FtpWagon.c - the 1.0-alpha-5 version)

if ( ftpFiles == null  || ftpFiles.length <= 0)
 {
   throw new ResourceDoesNotExistException( "Could not find file: '" + resource + "'" );
 }

long contentLength = ftpFiles[0].getSize();

I have no idea whether or not this will fix the underlying problem (that the previous line is returning an empty array) or not.  I can't seem to make my ant-task pick up my local:

1.0-alpha-6-SNAPSHOT

version.  I keep getting the following error:

Buildfile: build.xml

deploy:
[artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ftp:jar:1.0-alpha-6-SNAPSHOT
[artifact:deploy] Deploying to ftp://lcjms1.bea.com
[artifact:deploy] [INFO] Retrieving previous build number from remote
[artifact:deploy] [ERROR] Nonexistent component: org.apache.maven.wagon.Wagonftp
[artifact:deploy] [WARNING] repository metadata for: 'snapshot com.bea.core:dioce:1.1-SNAPSHOT' could not be retrieved from repository: remote due to an error: Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp
[artifact:deploy] [INFO] Repository 'remote' will be blacklisted
[artifact:deploy] [ERROR] Nonexistent component: org.apache.maven.wagon.Wagonftp
[artifact:deploy] An error has occurred while processing the Maven artifact tasks.
[artifact:deploy]  Diagnosis:
[artifact:deploy] 
[artifact:deploy] Error deploying artifact 'com.bea.core:dioce:jar': Error deploying artifact: Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp
[artifact:deploy] Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonftp.
[artifact:deploy] 

I would love to help out more if someone could tell me how to make the ant-task pick up my newer version of the plugin properly.  Or I can spend time and figure it out myself.

John Wells (Aziz)
taylorjay@example.net

> ArrayIndexOutOfBoundsException upon deploy
> ------------------------------------------
>
>          Key: WAGONFTP-8
>          URL: http://jira.codehaus.org/browse/WAGONFTP-8
>      Project: wagon-ftp
>         Type: Bug

>  Environment: Win xp, sp2
>     Reporter: Michael Fiedler

>
>
> I am trying to deploy for the first time.  I am using wagon-ftp, 1.0-alpha-4 as an extension for a maven 2 deploy goal.  The repository location (on the host) is new and empty.
> c:\...> .../bin/mvn clean:clean install deploy
> ...
> [INFO] [deploy:deploy]
> [INFO] Retrieving previous build number from M2_repo_ftp
> Uploading: ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-1.pom
> 4K uploaded
> [INFO] Retrieving previous metadata from M2_repo_ftp
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] 0
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.java:326)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:367)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:379)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:83)
>         at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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)
> [INFO] ----------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net


From wagontaylorjay@example.net Thu Dec 22 22:09:36 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 63141 invoked from network); 22 Dec 2005 22:09:36 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 22 Dec 2005 22:09:36 -0000
Received: (qmail 61240 invoked by uid 500); 22 Dec 2005 22:09:35 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 61222 invoked by uid 500); 22 Dec 2005 22:09:35 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 61211 invoked by uid 99); 22 Dec 2005 22:09:35 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2005 14:09:35 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2005 14:09:32 -0800
Received: (qmail 30902 invoked by uid 89); 22 Dec 2005 22:09:11 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 22 Dec 2005 22:09:11 -0000
Message-ID: <taylorjay@example.net>
Date: Thu, 22 Dec 2005 16:09:11 -0600 (CST)
From: "Michael Fiedler (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Commented: (WAGONFTP-8) ArrayIndexOutOfBoundsException upon
 deploy
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

    [ http://jira.codehaus.org/browse/WAGONFTP-8?page=comments#action_54062 ] 

Michael Fiedler commented on WAGONFTP-8:
----------------------------------------

I believe the scm url is http://svn.apache.org/repos/asf/maven/wagon/trunk.



> ArrayIndexOutOfBoundsException upon deploy
> ------------------------------------------
>
>          Key: WAGONFTP-8
>          URL: http://jira.codehaus.org/browse/WAGONFTP-8
>      Project: wagon-ftp
>         Type: Bug

>  Environment: Win xp, sp2
>     Reporter: Michael Fiedler

>
>
> I am trying to deploy for the first time.  I am using wagon-ftp, 1.0-alpha-4 as an extension for a maven 2 deploy goal.  The repository location (on the host) is new and empty.
> c:\...> .../bin/mvn clean:clean install deploy
> ...
> [INFO] [deploy:deploy]
> [INFO] Retrieving previous build number from M2_repo_ftp
> Uploading: ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-1.pom
> 4K uploaded
> [INFO] Retrieving previous metadata from M2_repo_ftp
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] 0
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.java:326)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:367)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:379)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:83)
>         at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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)
> [INFO] ----------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net


From wagontaylorjay@example.net Fri Dec 23 12:40:10 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 97947 invoked from network); 23 Dec 2005 12:40:09 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 23 Dec 2005 12:40:09 -0000
Received: (qmail 46731 invoked by uid 500); 23 Dec 2005 12:40:09 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 46714 invoked by uid 500); 23 Dec 2005 12:40:09 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 46703 invoked by uid 99); 23 Dec 2005 12:40:09 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2005 04:40:09 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2005 04:40:07 -0800
Received: (qmail 2658 invoked by uid 89); 23 Dec 2005 12:39:46 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 23 Dec 2005 12:39:46 -0000
Message-ID: <taylorjay@example.net>
Date: Fri, 23 Dec 2005 06:39:46 -0600 (CST)
From: "John Wells (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Commented: (WAGONFTP-8) ArrayIndexOutOfBoundsException upon
 deploy
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

    [ http://jira.codehaus.org/browse/WAGONFTP-8?page=comments#action_54118 ] 

John Wells commented on WAGONFTP-8:
-----------------------------------

OK,

I've figured out what the real problem is here.

Once you get past the AOOBE (by applying the fix I suggested earlier - to several places in the file (Michael for the pointer, that was a *big* help) I found that things still did not work properly.  This is what I found out:

My FTP server is running on Windows (I know, I know, but what can I say, company policy).

Unfortunately, the reply from the ftp LIST command is not something that is understood by the "DefaultListParser" (it seems as though either the system autodetect mechanism doesn't work or the windows version of the parser doesn't work).  Basically, the format of the LIST reply is something like this:

150 Opening ASCII mode data connection for /bin/ls.
12-23-05  06:17AM                12984 dioce-1.1-SNAPSHOT.jar
12-23-05  06:17AM                   32 dioce-1.1-SNAPSHOT.jar.md5
12-23-05  06:17AM                   40 dioce-1.1-SNAPSHOT.jar.sha1
12-23-05  06:17AM                  243 dioce-1.1-SNAPSHOT.pom
12-23-05  06:17AM                   32 dioce-1.1-SNAPSHOT.pom.md5
12-23-05  06:17AM                   40 dioce-1.1-SNAPSHOT.pom.sha1
12-23-05  06:17AM                  266 maven-metadata.xml
12-23-05  06:17AM                   32 maven-metadata.xml.md5
12-23-05  06:17AM                   40 maven-metadata.xml.sha1
226 Transfer complete.
ftp: 582 bytes received in 0.00Seconds 582000.00Kbytes/sec

Since the FTP client doesn't know how to parse this sort of output, it thinks that the files it is asking for are not there, and hence the SNAPSHOT mechanism doesn't work.

I am trying two things to fix this:

1.  Write a parser that understands this format (I know I can write the parser, I do not know exactly how to plug it in)
2.  Move the ftp server to a linux box (aint gonna happen)
3.  find  an ftp server for windows that has output for the LIST command that is more "linux-like"

Probably (2) is the easiest technically, but most difficult politically (in my company)

Anyway, I hope this helps people who have been having this problem.

John Wells (Aziz)
taylorjay@example.net


> ArrayIndexOutOfBoundsException upon deploy
> ------------------------------------------
>
>          Key: WAGONFTP-8
>          URL: http://jira.codehaus.org/browse/WAGONFTP-8
>      Project: wagon-ftp
>         Type: Bug

>  Environment: Win xp, sp2
>     Reporter: Michael Fiedler

>
>
> I am trying to deploy for the first time.  I am using wagon-ftp, 1.0-alpha-4 as an extension for a maven 2 deploy goal.  The repository location (on the host) is new and empty.
> c:\...> .../bin/mvn clean:clean install deploy
> ...
> [INFO] [deploy:deploy]
> [INFO] Retrieving previous build number from M2_repo_ftp
> Uploading: ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-1.pom
> 4K uploaded
> [INFO] Retrieving previous metadata from M2_repo_ftp
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] 0
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.java:326)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:367)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:379)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:83)
>         at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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)
> [INFO] ----------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net


From wagontaylorjay@example.net Fri Dec 23 15:41:08 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 69400 invoked from network); 23 Dec 2005 15:41:08 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 23 Dec 2005 15:41:08 -0000
Received: (qmail 35149 invoked by uid 500); 23 Dec 2005 15:41:08 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 35131 invoked by uid 500); 23 Dec 2005 15:41:07 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 35120 invoked by uid 99); 23 Dec 2005 15:41:07 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2005 07:41:07 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2005 07:41:07 -0800
Received: (qmail 3321 invoked by uid 89); 23 Dec 2005 15:40:46 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 23 Dec 2005 15:40:46 -0000
Message-ID: <taylorjay@example.net>
Date: Fri, 23 Dec 2005 09:40:46 -0600 (CST)
From: "John Wells (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Commented: (WAGONFTP-8) ArrayIndexOutOfBoundsException upon
 deploy
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

    [ http://jira.codehaus.org/browse/WAGONFTP-8?page=comments#action_54126 ] 

John Wells commented on WAGONFTP-8:
-----------------------------------

Ah, but I have another solution:

Right now wagon-ftp depends on commons-net version 1.1.0

If instead you change to commons-net version 1.4.1 you will get past this problem (without even changing the source code).

(The source code should be changed anyway, because there is the potential for a bug here).

However, that leads to the next problem.  After putting the jar file up on the remote repo it hangs (after fetching the old pom).  I'll track this down next.

Here is the example output from the deploy command (the JRW string are from me, showing what is happening in the code).

Buildfile: build.xml

deploy:
[artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ft
p:jar:1.0-alpha-6-SNAPSHOT
[artifact:deploy] Deploying to ftp://lcjms1.bea.com
[artifact:deploy] [INFO] Retrieving previous build number from remote
[artifact:deploy] JRW(10) found com/bea/core/dioce/1.1-SNAPSHOT/maven-metadata.x
ml
[artifact:deploy] JRW(10) found com/bea/core/dioce/1.1-SNAPSHOT/maven-metadata.x
ml.sha1
[artifact:deploy] Uploading: com/bea/core/dioce/1.1-SNAPSHOT/dioce-1.1-SNAPSHOT.
jar
[artifact:deploy] Transferring 12K
[artifact:deploy] [INFO] Retrieving previous metadata from remote
[artifact:deploy] JRW(10) found com/bea/core/dioce/1.1-SNAPSHOT/dioce-1.1-SNAPSH
OT.pom

> ArrayIndexOutOfBoundsException upon deploy
> ------------------------------------------
>
>          Key: WAGONFTP-8
>          URL: http://jira.codehaus.org/browse/WAGONFTP-8
>      Project: wagon-ftp
>         Type: Bug

>  Environment: Win xp, sp2
>     Reporter: Michael Fiedler

>
>
> I am trying to deploy for the first time.  I am using wagon-ftp, 1.0-alpha-4 as an extension for a maven 2 deploy goal.  The repository location (on the host) is new and empty.
> c:\...> .../bin/mvn clean:clean install deploy
> ...
> [INFO] [deploy:deploy]
> [INFO] Retrieving previous build number from M2_repo_ftp
> Uploading: ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-1.pom
> 4K uploaded
> [INFO] Retrieving previous metadata from M2_repo_ftp
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] 0
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.java:326)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:367)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:379)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:83)
>         at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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)
> [INFO] ----------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net


From wagontaylorjay@example.net Tue Dec 27 16:19:24 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 88915 invoked from network); 27 Dec 2005 16:19:23 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 27 Dec 2005 16:19:23 -0000
Received: (qmail 8149 invoked by uid 500); 27 Dec 2005 16:19:22 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 8119 invoked by uid 500); 27 Dec 2005 16:19:22 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 8108 invoked by uid 99); 27 Dec 2005 16:19:22 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 08:19:22 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 08:19:19 -0800
Received: (qmail 29855 invoked by uid 89); 27 Dec 2005 16:18:58 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 27 Dec 2005 16:18:58 -0000
Message-ID: <taylorjay@example.net>
Date: Tue, 27 Dec 2005 10:18:58 -0600 (CST)
From: "John Wells (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Commented: (WAGONFTP-8) ArrayIndexOutOfBoundsException upon
 deploy
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

    [ http://jira.codehaus.org/browse/WAGONFTP-8?page=comments#action_54271 ] 

John Wells commented on WAGONFTP-8:
-----------------------------------

The hanging bug has to do with the commons-net ftp client running against a windows ftp server.

This is an age-old problem (I remember working on a problem like this ten or more years ago).

The windows "ls" or "dir" command gives an *approximation* of the size of the file.  However, the actual number of bytes in the file may be different.

What is happening here is that if you do a dir (or ls) from ftp you get the following: 

12-23-05 06:17AM 266 maven-metadata.xml

You would think from this that maven-metadata.xml is 266 bytes, right?  *wrong*  maven-metadata is actually 269 bytes long.  Funny, right?

Not.

What happens (I think) is that the ftp input stream reads 266 bytes and then expects an eof.  It doesn't get it, because there are still three bytes to read.  Hence, our program fails.  (You can see the real size by printing out the "inputStream.available()" result, which is 269.

I have not proved this conclusively, but I'm 90% sure this is what causes the hang.  So be happy, wagon-ftp people, looks like the bug is not you.  Now I have to go figure out how to fix the commons-net package.

Sigh...

John Wells (Aziz)
taylorjay@example.net



> ArrayIndexOutOfBoundsException upon deploy
> ------------------------------------------
>
>          Key: WAGONFTP-8
>          URL: http://jira.codehaus.org/browse/WAGONFTP-8
>      Project: wagon-ftp
>         Type: Bug

>  Environment: Win xp, sp2
>     Reporter: Michael Fiedler

>
>
> I am trying to deploy for the first time.  I am using wagon-ftp, 1.0-alpha-4 as an extension for a maven 2 deploy goal.  The repository location (on the host) is new and empty.
> c:\...> .../bin/mvn clean:clean install deploy
> ...
> [INFO] [deploy:deploy]
> [INFO] Retrieving previous build number from M2_repo_ftp
> Uploading: ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-1.pom
> 4K uploaded
> [INFO] Retrieving previous metadata from M2_repo_ftp
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] 0
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.java:326)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:367)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:379)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:83)
>         at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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)
> [INFO] ----------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net


From wagontaylorjay@example.net Tue Dec 27 16:21:22 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 89693 invoked from network); 27 Dec 2005 16:21:21 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 27 Dec 2005 16:21:21 -0000
Received: (qmail 10219 invoked by uid 500); 27 Dec 2005 16:21:21 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 10206 invoked by uid 500); 27 Dec 2005 16:21:21 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 10195 invoked by uid 99); 27 Dec 2005 16:21:21 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 08:21:21 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 08:21:18 -0800
Received: (qmail 29875 invoked by uid 89); 27 Dec 2005 16:20:57 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 27 Dec 2005 16:20:57 -0000
Message-ID: <taylorjay@example.net>
Date: Tue, 27 Dec 2005 10:20:57 -0600 (CST)
From: "John Wells (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Updated: (WAGONFTP-8) ArrayIndexOutOfBoundsException upon
 deploy
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

     [ http://jira.codehaus.org/browse/WAGONFTP-8?page=all ]

John Wells updated WAGONFTP-8:
------------------------------

    Attachment: pom.xml

> ArrayIndexOutOfBoundsException upon deploy
> ------------------------------------------
>
>          Key: WAGONFTP-8
>          URL: http://jira.codehaus.org/browse/WAGONFTP-8
>      Project: wagon-ftp
>         Type: Bug

>  Environment: Win xp, sp2
>     Reporter: Michael Fiedler
>  Attachments: pom.xml
>
>
> I am trying to deploy for the first time.  I am using wagon-ftp, 1.0-alpha-4 as an extension for a maven 2 deploy goal.  The repository location (on the host) is new and empty.
> c:\...> .../bin/mvn clean:clean install deploy
> ...
> [INFO] [deploy:deploy]
> [INFO] Retrieving previous build number from M2_repo_ftp
> Uploading: ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-1.pom
> 4K uploaded
> [INFO] Retrieving previous metadata from M2_repo_ftp
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] 0
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.java:326)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:367)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:379)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:83)
>         at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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)
> [INFO] ----------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net


From wagontaylorjay@example.net Tue Dec 27 16:23:22 2005
Return-Path: <wagontaylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 91259 invoked from network); 27 Dec 2005 16:23:22 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 27 Dec 2005 16:23:22 -0000
Received: (qmail 12741 invoked by uid 500); 27 Dec 2005 16:23:21 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 12710 invoked by uid 500); 27 Dec 2005 16:23:21 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
list-help: <mailto:taylorjay@example.net>
list-unsubscribe: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
Reply-To: taylorjay@example.net
List-Id: "Maven Wagon Developers List" <wagon-dev.maven.apache.org>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 12699 invoked by uid 99); 27 Dec 2005 16:23:21 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 08:23:21 -0800
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 63-246-20-114.contegix.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 08:23:18 -0800
Received: (qmail 29887 invoked by uid 89); 27 Dec 2005 16:22:57 -0000
Received: from unknown (HELO codehaus01.managed.contegix.com) (83.161.120.155)
  by smtp.domain.com with SMTP; 27 Dec 2005 16:22:57 -0000
Message-ID: <taylorjay@example.net>
Date: Tue, 27 Dec 2005 10:22:57 -0600 (CST)
From: "John Wells (JIRA)" <taylorjay@example.net>
To: taylorjay@example.net
Subject: [jira] Updated: (WAGONFTP-8) ArrayIndexOutOfBoundsException upon
 deploy
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

     [ http://jira.codehaus.org/browse/WAGONFTP-8?page=all ]

John Wells updated WAGONFTP-8:
------------------------------

    Attachment: FtpWagon.java

> ArrayIndexOutOfBoundsException upon deploy
> ------------------------------------------
>
>          Key: WAGONFTP-8
>          URL: http://jira.codehaus.org/browse/WAGONFTP-8
>      Project: wagon-ftp
>         Type: Bug

>  Environment: Win xp, sp2
>     Reporter: Michael Fiedler
>  Attachments: FtpWagon.java, pom.xml
>
>
> I am trying to deploy for the first time.  I am using wagon-ftp, 1.0-alpha-4 as an extension for a maven 2 deploy goal.  The repository location (on the host) is new and empty.
> c:\...> .../bin/mvn clean:clean install deploy
> ...
> [INFO] [deploy:deploy]
> [INFO] Retrieving previous build number from M2_repo_ftp
> Uploading: ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-1.pom
> 4K uploaded
> [INFO] Retrieving previous metadata from M2_repo_ftp
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] 0
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.java:326)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:367)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:379)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:83)
>         at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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)
> [INFO] ----------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: taylorjay@example.net
For additional commands, e-mail: taylorjay@example.net



{'source': 'Apache Software Foundation Public Mail Archives'}