ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "graw" <gr...@arcor.de>
Subject WG: Nullpointer when publishing
Date Sat, 23 Feb 2008 19:48:59 GMT


-----Urspr√ľngliche Nachricht-----
Von: Vasco Lemoine [mailto:vasco.lemoine@imc.nl] 
Gesendet: Dienstag, 19. Februar 2008 09:03
An: ivy-user@ant.apache.org
Betreff: Nullpointer when publishing

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(DefaultExecut
or.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.getSess
ion(AbstractSshBasedRepository.java:82)
        at
org.apache.ivy.plugins.repository.sftp.SFTPRepository.getSftpChannel(SFT
PRepository.java:223)
        at
org.apache.ivy.plugins.repository.sftp.SFTPRepository.put(SFTPRepository
.java:134)
        at
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractReposit
ory.java:130)
        at
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolve
r.java:177)
        at
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryRes
olver.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.getSess
ion(AbstractSshBasedRepository.java:82)
        at
org.apache.ivy.plugins.repository.sftp.SFTPRepository.getSftpChannel(SFT
PRepository.java:223)
        at
org.apache.ivy.plugins.repository.sftp.SFTPRepository.put(SFTPRepository
.java:134)
        at
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractReposit
ory.java:130)
        at
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolve
r.java:177)
        at
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryRes
olver.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(DefaultExecut
or.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