ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Stembridge" <kevin.stembri...@peace.com>
Subject scp task gives ArrayIndexOutOfBoundsException
Date Tue, 13 Jan 2004 08:40:35 GMT
Hi,
I get the following stack trace when using the scp task to send a single
file to a remote host. Has anyone had this problem before? I don't know
if I'm doing something wrong or if this should be raised as a bug.

Any help is appreciated.

Kevin Stembridge 

com.jcraft.jsch.JSchException: Session.connect:
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
        at
org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:166)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java(Compiled Code))
        at org.apache.tools.ant.Target.execute(Target.java(Compiled
Code))
        at org.apache.tools.ant.Target.performTasks(Target.java(Compiled
Code))
        at
org.apache.tools.ant.Project.executeTarget(Project.java(Compiled Code))
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.Main.start(Main.java:184)
        at org.apache.tools.ant.Main.main(Main.java:267)
--- Nested Exception ---
com.jcraft.jsch.JSchException: Session.connect:
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
        at com.jcraft.jsch.Session.connect(Unknown Source)
        at
org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBase.j
ava:204)
        at
org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:227)
        at
org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:155)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java(Compiled Code))
        at org.apache.tools.ant.Target.execute(Target.java(Compiled
Code))
        at org.apache.tools.ant.Target.performTasks(Target.java(Compiled
Code))
        at
org.apache.tools.ant.Project.executeTarget(Project.java(Compiled Code))
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.Main.start(Main.java:184)
        at org.apache.tools.ant.Main.main(Main.java:267)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message