Return-Path: Delivered-To: apmail-maven-wagon-dev-archive@www.apache.org Received: (qmail 52455 invoked from network); 10 Oct 2005 02:04:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2005 02:04:35 -0000 Received: (qmail 93839 invoked by uid 500); 10 Oct 2005 02:04:35 -0000 Delivered-To: apmail-maven-wagon-dev-archive@maven.apache.org Received: (qmail 93811 invoked by uid 500); 10 Oct 2005 02:04:35 -0000 Mailing-List: contact wagon-dev-help@maven.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: wagon-dev@maven.apache.org List-Id: "Maven Wagon Developers List" Delivered-To: mailing list wagon-dev@maven.apache.org Received: (qmail 93800 invoked by uid 99); 10 Oct 2005 02:04:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2005 19:04:35 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [63.246.20.114] (HELO 63-246-20-114.contegix.com) (63.246.20.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2005 19:04:37 -0700 Received: (qmail 28190 invoked by uid 89); 10 Oct 2005 02:04:12 -0000 Received: from unknown (HELO codehaus01.managed.contegix.com) (127.0.0.1) by smtp.domain.com with SMTP; 10 Oct 2005 02:04:12 -0000 Message-ID: <5927675.1128909852857.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Sun, 9 Oct 2005 21:04:12 -0500 (CDT) From: "Brett Porter (JIRA)" To: wagon-dev@maven.apache.org Subject: [jira] Updated: (WAGONSSH-15) verbose exception can improve debugging user problem In-Reply-To: <26707751.1127286431064.JavaMail.haus-jira@codehaus01.managed.contegix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://jira.codehaus.org/browse/WAGONSSH-15?page=all ] Brett Porter updated WAGONSSH-15: --------------------------------- Description: An example of an actual get exception: Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while downloading from the remote repository:[test-private-repo] -> sftp://localhost/tmp/m2 ... Caused by: No such file at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:1541) at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:1207) at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:587) It doesnt give you much information unless you know to read the whole stacktrace (in this case you can spot that is a metadata problem because it apears DefaultRepositoryMetadataManager.java:2309). I propose something like: Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while downloading `ar/com/test/maven/poms/bare/maven-metadata.xml' from the remote repository:[test-private-repo] -> sftp://localhost/tmp/m2 it can be accomplish with something like: (but you already know that! ;-) --- src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java (revision 290590) +++ src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java (working copy) @@ -565,12 +588,14 @@ } } - String msg = "Error occured while downloading from the remote repository:" + getRepository(); + String msg = "Error occured while downloading `" + resource.getName() + + "' from the remote repository:" + getRepository(); throw new TransferFailedException( msg, e ); } public boolean getIfNewer( String resourceName, File destination, long timestamp ) was: An example of an actual get exception: Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while downloading from the remote repository:[test-private-repo] -> sftp://localhost/tmp/m2 ... Caused by: No such file at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:1541) at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:1207) at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:587) It doesnt give you much information unless you know to read the whole stacktrace (in this case you can spot that is a metadata problem because it apears DefaultRepositoryMetadataManager.java:2309). I propose something like: Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while downloading `ar/com/test/maven/poms/bare/maven-metadata.xml' from the remote repository:[test-private-repo] -> sftp://localhost/tmp/m2 it can be accomplish with something like: (but you already know that! ;-) --- src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java (revision 290590) +++ src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java (working copy) @@ -565,12 +588,14 @@ } } - String msg = "Error occured while downloading from the remote repository:" + getRepository(); + String msg = "Error occured while downloading `" + resource.getName() + + "' from the remote repository:" + getRepository(); throw new TransferFailedException( msg, e ); } public boolean getIfNewer( String resourceName, File destination, long timestamp ) Fix Version: 1.0-alpha-5 > verbose exception can improve debugging user problem > ---------------------------------------------------- > > Key: WAGONSSH-15 > URL: http://jira.codehaus.org/browse/WAGONSSH-15 > Project: wagon-ssh > Type: Wish > Reporter: Juan F. Codagnone > Priority: Trivial > Fix For: 1.0-alpha-5 > Attachments: WAGONSSH-15.diff > > > An example of an actual get exception: > Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while downloading from the remote repository:[test-private-repo] -> sftp://localhost/tmp/m2 > ... > Caused by: No such file > at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:1541) > at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:1207) > at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:587) > It doesnt give you much information unless you know to read the whole stacktrace (in this case you can spot that is a metadata problem because it apears DefaultRepositoryMetadataManager.java:2309). I propose something like: > Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while downloading `ar/com/test/maven/poms/bare/maven-metadata.xml' from the remote repository:[test-private-repo] -> sftp://localhost/tmp/m2 > it can be accomplish with something like: (but you already know that! ;-) > --- src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java (revision 290590) > +++ src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java (working copy) > @@ -565,12 +588,14 @@ > } > } > - String msg = "Error occured while downloading from the remote repository:" + getRepository(); > + String msg = "Error occured while downloading `" + resource.getName() > + + "' from the remote repository:" + getRepository(); > throw new TransferFailedException( msg, e ); > } > public boolean getIfNewer( String resourceName, File destination, long timestamp ) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: wagon-dev-unsubscribe@maven.apache.org For additional commands, e-mail: wagon-dev-help@maven.apache.org