ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Stembridge" <kevin.stembri...@peace.com>
Subject RE: scp task gives ArrayIndexOutOfBoundsException
Date Tue, 13 Jan 2004 21:21:47 GMT
<scp file="mktsoln.ear"
todir="${remote.username}:${remote.password}@${remote.host}:${remote.dir
ectory}"/>
    
All of the properties are being set correctly.

-----Original Message-----
From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson2@nike.com] 
Sent: Wednesday, 14 January 2004 08:07
To: Ant Users List
Subject: RE: scp task gives ArrayIndexOutOfBoundsException

What does your build.xml look like?

-Rob Anderson

-----Original Message-----
From: Kevin Stembridge [mailto:kevin.stembridge@peace.com]
Sent: Tuesday, January 13, 2004 12:41 AM
To: user@ant.apache.org
Subject: scp task gives ArrayIndexOutOfBoundsException


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




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


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


Mime
View raw message