From ivy-user-return-2501-apmail-ant-ivy-user-archive=ant.apache.org@ant.apache.org Tue Feb 19 08:49:28 2008 Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 16877 invoked from network); 19 Feb 2008 08:49:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2008 08:49:28 -0000 Received: (qmail 15303 invoked by uid 500); 19 Feb 2008 08:49:22 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 15169 invoked by uid 500); 19 Feb 2008 08:49:22 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 15160 invoked by uid 99); 19 Feb 2008 08:49:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 00:49:22 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gscokart@gmail.com designates 64.233.178.246 as permitted sender) Received: from [64.233.178.246] (HELO hs-out-0708.google.com) (64.233.178.246) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 08:48:49 +0000 Received: by hs-out-0708.google.com with SMTP id n78so2270526hsc.12 for ; Tue, 19 Feb 2008 00:48:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=Neu+LQbpdJpwkdiO5mZygbj3iPzNJFz6/5M95uNu7d8=; b=iSEFK70o2RKEql5f2KpcW1oHJp0g3RjmIFKvAXEQVUEe0PrpPufQ87whKHW/BL3sN3WYS89EHOeSIGT+aZNqrpUlwb+2USPflgpzvHwxpZbQeFXoc05SOC7SJWVscrASRKVySJJoCohqLV4cHDI8lSM8JVJRd476WTRMZu676x8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gRVvJ28E+QXFKA7oEW7c05zi6A35kNOYR4agPucVS1GNneXDj3BL/F05kQamo3DaOADW0YVVCbsC2nAu8Fuf//GooZIpXx0A65FeyUMnYfEJoOhyeDkqBoyFLPJ5KwZfqZdUGazGgE4SCWQYyewMD0daz4Ty1bkn2RailBRYVvs= Received: by 10.142.180.17 with SMTP id c17mr5082092wff.83.1203410937182; Tue, 19 Feb 2008 00:48:57 -0800 (PST) Received: by 10.142.174.2 with HTTP; Tue, 19 Feb 2008 00:48:57 -0800 (PST) Message-ID: Date: Tue, 19 Feb 2008 09:48:57 +0100 From: "Gilles Scokart" To: ivy-user@ant.apache.org Subject: Re: Nullpointer when publishing In-Reply-To: <1203408198.3724.5.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10221_24061616.1203410937170" References: <1203408198.3724.5.camel@localhost.localdomain> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_10221_24061616.1203410937170 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline It is already fixed for the next version : https://issues.apache.org/jira/browse/IVY-709 Gilles 2008/2/19, Vasco Lemoine : > > Hi, > > I have the following problem when I publish to a SFTP repository and > hardcode username and password into the sftp-resolver everything is fine > when I remove the username and password and enter them in the > popup-window I get a Null-pointer exception.I checked JIRA but didn't > find anything describing the problem. > > --Vasco > > Stack Trace: > [ivy:publish] :: SSH :: connecting to panoramix... > > BUILD FAILED > /home/vale/data/vant-ivy/dist/etc/ivy-release.xml:7: impossible to > publish artifacts for imc#valescom;: java.lang.NullPointerException > at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:322) > at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275) > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > at org.apache.tools.ant.Task.perform(Task.java:364) > at org.apache.tools.ant.Target.execute(Target.java:341) > at org.apache.tools.ant.Target.performTasks(Target.java:369) > at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > at org.apache.tools.ant.Project.executeTarget(Project.java:1185) > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets( > DefaultExecutor.java:40) > at > org.apache.tools.ant.Project.executeTargets(Project.java:1068) > at org.apache.tools.ant.Main.runBuild(Main.java:668) > at org.apache.tools.ant.Main.startAnt(Main.java:187) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > Caused by: java.lang.NullPointerException > at > org.apache.ivy.plugins.repository.ssh.SshCache.getSession(SshCache.java > :330) > at > > org.apache.ivy.plugins.repository.ssh.AbstractSshBasedRepository.getSession > (AbstractSshBasedRepository.java:82) > at > org.apache.ivy.plugins.repository.sftp.SFTPRepository.getSftpChannel( > SFTPRepository.java:223) > at > org.apache.ivy.plugins.repository.sftp.SFTPRepository.put( > SFTPRepository.java:134) > at > org.apache.ivy.plugins.repository.AbstractRepository.put( > AbstractRepository.java:130) > at > org.apache.ivy.plugins.resolver.RepositoryResolver.put( > RepositoryResolver.java:177) > at > org.apache.ivy.plugins.resolver.RepositoryResolver.publish( > RepositoryResolver.java:167) > at > org.apache.ivy.plugins.resolver.ChainResolver.publish(ChainResolver.java > :247) > at > org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:242) > at > org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:195) > at > org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:156) > at org.apache.ivy.Ivy.publish(Ivy.java:586) > at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:299) > ... 13 more > --- Nested Exception --- > java.lang.NullPointerException > at > org.apache.ivy.plugins.repository.ssh.SshCache.getSession(SshCache.java > :330) > at > > org.apache.ivy.plugins.repository.ssh.AbstractSshBasedRepository.getSession > (AbstractSshBasedRepository.java:82) > at > org.apache.ivy.plugins.repository.sftp.SFTPRepository.getSftpChannel( > SFTPRepository.java:223) > at > org.apache.ivy.plugins.repository.sftp.SFTPRepository.put( > SFTPRepository.java:134) > at > org.apache.ivy.plugins.repository.AbstractRepository.put( > AbstractRepository.java:130) > at > org.apache.ivy.plugins.resolver.RepositoryResolver.put( > RepositoryResolver.java:177) > at > org.apache.ivy.plugins.resolver.RepositoryResolver.publish( > RepositoryResolver.java:167) > at > org.apache.ivy.plugins.resolver.ChainResolver.publish(ChainResolver.java > :247) > at > org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:242) > at > org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:195) > at > org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:156) > at org.apache.ivy.Ivy.publish(Ivy.java:586) > at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:299) > at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275) > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > at org.apache.tools.ant.Task.perform(Task.java:364) > at org.apache.tools.ant.Target.execute(Target.java:341) > at org.apache.tools.ant.Target.performTasks(Target.java:369) > at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > at org.apache.tools.ant.Project.executeTarget(Project.java:1185) > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets( > DefaultExecutor.java:40) > at > org.apache.tools.ant.Project.executeTargets(Project.java:1068) > at org.apache.tools.ant.Main.runBuild(Main.java:668) > at org.apache.tools.ant.Main.startAnt(Main.java:187) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > > Total time: 13 seconds > > > -- Gilles Scokart ------=_Part_10221_24061616.1203410937170--