ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Anders...@nike.com>
Subject RE: scp task gives ArrayIndexOutOfBoundsException
Date Tue, 13 Jan 2004 23:55:50 GMT
What does the sshd_config file say for "Protocol" on your server? I get this error if the server
is running the ssh1 protocol only. Jsch is strictly ssh2. Incidentally, I also get this error
when trying to connect to an F-Secure sshd.

-Rob Anderson

-----Original Message-----
From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson2@nike.com]
Sent: Tuesday, January 13, 2004 3:34 PM
To: Ant Users List
Subject: RE: scp task gives ArrayIndexOutOfBoundsException


Can you send the entire output from ant, not just the exception, please. Also, what version
of ant and jsch? Thanks,

-Rob Anderson

-----Original Message-----
From: Kevin Stembridge [mailto:kevin.stembridge@peace.com]
Sent: Tuesday, January 13, 2004 2:02 PM
To: 'Ant Users List'
Subject: RE: scp task gives ArrayIndexOutOfBoundsException


We're using openSSH 3.6.1p2

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

Looks correct. What version of sshd is the server running?

-Rob Anderson

-----Original Message-----
From: Kevin Stembridge [mailto:kevin.stembridge@peace.com]
Sent: Tuesday, January 13, 2004 1:22 PM
To: 'Ant Users List'
Subject: RE: scp task gives ArrayIndexOutOfBoundsException


<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




---------------------------------------------------------------------
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




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


Mime
View raw message