org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site

Apache's JIRA Issue Tracker | Thomas Vandahl | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    (Not sure about the version of wagon, I am using Maven 2.1.0 release) When I try to deploy something that is supposed to use scp as the protocol, for example "mvn site:deploy", I get the following exception ---8<--- [INFO] [site:deploy] Using private key: /xxx/.ssh/id_rsa scp://people.apache.org/www/turbine.apache.org/fulcrum/fulcrum-localization/ - Session: Connection refused scp://people.apache.org/www/turbine.apache.org/fulcrum/fulcrum-localization/ - Session: Disconnecting scp://people.apache.org/www/turbine.apache.org/fulcrum/fulcrum-localization/ - Session: Disconnected [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error uploading site Embedded error: Cannot connect. Reason: java.lang.ArrayIndexOutOfBoundsException: 0 [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) 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:215) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) ... 16 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnectionInternal(AbstractJschWagon.java:137) at org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:142) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:184) ... 18 more Caused by: com.jcraft.jsch.JSchException: java.lang.ArrayIndexOutOfBoundsException: 0 at com.jcraft.jsch.IdentityFile.<init>(IdentityFile.java:336) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:135) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:130) at com.jcraft.jsch.JSch.addIdentity(JSch.java:200) at com.jcraft.jsch.JSch.addIdentity(JSch.java:194) at org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnectionInternal(AbstractJschWagon.java:133) ... 22 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at com.jcraft.jsch.IdentityFile.<init>(IdentityFile.java:316) ... 27 more ---8<--- This is reproducible. The protocol scpexe works fine. My setup is as follows settings.xml: ---8<--- <server> <id>apache.website</id> <username>xx</username> <filePermissions>664</filePermissions> <directoryPermissions>775</directoryPermissions> </server> ---8<--- pom.xml ---8<--- <distributionManagement> <site> <id>apache.website</id> <name>Fulcrum Website</name> <url>scp://people.apache.org/www/turbine.apache .org/fulcrum/fulcrum-localization/</url> </site> </distributionManagement> ---8<--- It might be important that the user name at my local machine and the username at the remote machine are different. Obviously maven selects the correct private key to connect and then fails for whatever reason. Logging in to the remote machine with ssh works fine. I have a ssh-agent running. When using scpexe instead of scp in the otherwise unchanged environment, deploying works. The behavior is exactly the same with maven 2.0.8.

    Apache's JIRA Issue Tracker | 8 years ago | Thomas Vandahl
    org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    (Not sure about the version of wagon, I am using Maven 2.1.0 release) When I try to deploy something that is supposed to use scp as the protocol, for example "mvn site:deploy", I get the following exception ---8<--- [INFO] [site:deploy] Using private key: /xxx/.ssh/id_rsa scp://people.apache.org/www/turbine.apache.org/fulcrum/fulcrum-localization/ - Session: Connection refused scp://people.apache.org/www/turbine.apache.org/fulcrum/fulcrum-localization/ - Session: Disconnecting scp://people.apache.org/www/turbine.apache.org/fulcrum/fulcrum-localization/ - Session: Disconnected [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error uploading site Embedded error: Cannot connect. Reason: java.lang.ArrayIndexOutOfBoundsException: 0 [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) 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:215) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) ... 16 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnectionInternal(AbstractJschWagon.java:137) at org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:142) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:184) ... 18 more Caused by: com.jcraft.jsch.JSchException: java.lang.ArrayIndexOutOfBoundsException: 0 at com.jcraft.jsch.IdentityFile.<init>(IdentityFile.java:336) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:135) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:130) at com.jcraft.jsch.JSch.addIdentity(JSch.java:200) at com.jcraft.jsch.JSch.addIdentity(JSch.java:194) at org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnectionInternal(AbstractJschWagon.java:133) ... 22 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at com.jcraft.jsch.IdentityFile.<init>(IdentityFile.java:316) ... 27 more ---8<--- This is reproducible. The protocol scpexe works fine. My setup is as follows settings.xml: ---8<--- <server> <id>apache.website</id> <username>xx</username> <filePermissions>664</filePermissions> <directoryPermissions>775</directoryPermissions> </server> ---8<--- pom.xml ---8<--- <distributionManagement> <site> <id>apache.website</id> <name>Fulcrum Website</name> <url>scp://people.apache.org/www/turbine.apache .org/fulcrum/fulcrum-localization/</url> </site> </distributionManagement> ---8<--- It might be important that the user name at my local machine and the username at the remote machine are different. Obviously maven selects the correct private key to connect and then fails for whatever reason. Logging in to the remote machine with ssh works fine. I have a ssh-agent running. When using scpexe instead of scp in the otherwise unchanged environment, deploying works. The behavior is exactly the same with maven 2.0.8.

    Apache's JIRA Issue Tracker | 8 years ago | Thomas Vandahl
    org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site
  4. 0

    SFTP - JschException when using GetFileListFromSFTPLocation - Mendix Forum

    mendix.com | 9 months ago
    com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: JschException occured for document with action LIST. at SOAPIntegration.IVK_Poll_Inbound_Documents (JavaAction : 'GetFileListFromSFTPLocation') Advanced stacktrace:
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ArrayIndexOutOfBoundsException

    0

    at com.jcraft.jsch.IdentityFile.<init>()
  2. JSch
    JSch.addIdentity
    1. com.jcraft.jsch.IdentityFile.<init>(IdentityFile.java:316)
    2. com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:135)
    3. com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:130)
    4. com.jcraft.jsch.JSch.addIdentity(JSch.java:200)
    5. com.jcraft.jsch.JSch.addIdentity(JSch.java:194)
    5 frames
  3. Apache Maven Wagon :: Providers :: SSH Provider
    AbstractJschWagon.openConnectionInternal
    1. org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnectionInternal(AbstractJschWagon.java:133)
    1 frame
  4. Maven
    AbstractWagon.connect
    1. org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
    2. org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
    3. org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:142)
    3 frames
  5. Apache Maven Site Plugin
    SiteDeployMojo.execute
    1. org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:184)
    1 frame
  6. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
    1 frame
  7. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
    5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
    6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
    7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
    8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
    8 frames
  8. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
    1 frame
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  10. Plexus
    Launcher.main
    1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    4 frames