Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 25935 invoked from network); 22 Oct 2003 07:17:25 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Oct 2003 07:17:25 -0000 Received: (qmail 61304 invoked by uid 500); 22 Oct 2003 07:17:08 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 61257 invoked by uid 500); 22 Oct 2003 07:17:07 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 61244 invoked from network); 22 Oct 2003 07:17:07 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 22 Oct 2003 07:17:07 -0000 Received: (qmail 7703 invoked by uid 50); 22 Oct 2003 07:20:25 -0000 Date: 22 Oct 2003 07:20:25 -0000 Message-ID: <20031022072025.7702.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@ant.apache.org Cc: Subject: DO NOT REPLY [Bug 23992] New: - sshexec gives cryptic message with very short timeout X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23992 sshexec gives cryptic message with very short timeout Summary: sshexec gives cryptic message with very short timeout Product: Ant Version: 1.6Beta Platform: All OS/Version: All Status: NEW Severity: Minor Priority: Other Component: Documentation AssignedTo: dev@ant.apache.org ReportedBy: Edwin_STEELE@rta.nsw.gov.au When using the sshexec task with a very short timeout (like 10ms - see bug 23991 for a reason why someone might have such a short timeout), the sshexec task fails but gives a cryptic message with no indication that the timeout has been reached. e.g. [sshexec] Connecting to remotemachine:22 [sshexec] java.io.FileNotFoundException: C:\Documents and Settings\user\.ssh\known_hosts (The system cannot find the path specified) BUILD FAILED file:H:/Projects/Construction/deploy.xml:340: com.jcraft.jsch.JSchException: session is down This appears to be because taskdefs/optional/ssh/SSHExec.java, around line 180 has a line: session.setTimeout((int) maxwait); This means that by the time channel.connect() is called, the session's socket has been closed and the cryptic message is given rather than the more useful "Timeout period exceeded, connection dropped." message that would have been triggered further on. Perhaps a session.isConnected() call just before the channel.connect() in SSHExec.java and a suitable error message would catch the majority of these cases (it wouldn't help if it timed out during the channel.connect(), but still...). Perhaps a restriction on the minimum value for the timeout may help too. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org