ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vasco Lemoine <vasco.lemo...@imc.nl>
Subject Re: Nullpointer when publishing
Date Tue, 19 Feb 2008 08:54:29 GMT
Cool.

On Tue, 2008-02-19 at 09:48 +0100, Gilles Scokart wrote:
> It is already fixed for the next version :
> https://issues.apache.org/jira/browse/IVY-709
> 
> Gilles
> 
> 
> 2008/2/19, Vasco Lemoine <vasco.lemoine@imc.nl>:
> >
> > 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
> >
> >
> >
> 
> 


Mime
View raw message