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 Wed, 14 Jan 2004 16:52:19 GMT
The jsch library uses the Diffie-Hellman Group Exchange for the SSH Transport Layer Protocol.
The error you are getting..."NoSuchAlgorithmException DH KeyPairGenerator" is related to this
key exchange method. The sshd_config would be on the remote server in /etc/ssh/sshd_config.
Or try the find command...

find / -name sshd_config 2>/dev/null

You should get it working with scp protocol 2 outside of ant first.

I hope this helps,

-Rob Anderson

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


The attached file is the debug output from Ant when I run my target.
I'm using Ant 1.6.0, jsch 0.1.12, jdk 1.3 with jce 1.2.2 installed.

When I run scp on the command line I get the following error:

Received disconnect from 172.16.1.212: Command terminated on signal 11.
lost connection

It looks like there's something wrong with the ssh installation on the
server I'm trying to send to. The command line works fine when I send to
a different server, BUT using Ant to send to this new server gives me a
NoSuchAlgorithmException DH KeyPairGenerator not available. I've seen
other threads discussing the same error but their fix was to upgrade to
Java 1.4 which is not an option for me unfortunately. That might be
something I need to discuss in a new thread.

I don't know where to find the sshd_config file.

-----Original Message-----
From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson2@nike.com] 
Sent: Wednesday, 14 January 2004 10:34
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