Commented: (WAGONFTP-8) ArrayIndexOutOfBoundsException upon deploy

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Commented: (WAGONFTP-8) ArrayIndexOutOfBoundsException upon deploy

    [ ]

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

[artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ft
[artifact:deploy] Deploying to
[artifact:deploy] [INFO] Retrieving previous build number from remote
[artifact:deploy] JRW(10) found com/bea/core/dioce/1.1-SNAPSHOT/maven-metadata.x
[artifact:deploy] JRW(10) found com/bea/core/dioce/1.1-SNAPSHOT/maven-metadata.x
[artifact:deploy] Uploading: com/bea/core/dioce/1.1-SNAPSHOT/dioce-1.1-SNAPSHOT.
[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

> ArrayIndexOutOfBoundsException upon deploy
> ------------------------------------------
>          Key: WAGONFTP-8
>          URL:
>      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] ----------------------------------------------------------------------------
> [INFO] ----------------------------------------------------------------------------
> [INFO] 0
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(
>         at org.apache.maven.wagon.StreamWagon.get(
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(
>         at org.apache.maven.plugin.deploy.DeployMojo.execute(
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
>         at org.apache.maven.DefaultMaven.doExecute(
>         at org.apache.maven.DefaultMaven.execute(
>         at org.apache.maven.cli.MavenCli.main(
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at org.codehaus.classworlds.Launcher.launchEnhanced(
>         at org.codehaus.classworlds.Launcher.launch(
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(
>         at org.codehaus.classworlds.Launcher.main(
> [INFO] ----------------------------------------------------------------------------

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]