ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-841) NPE when SSH/SFTP resolver asks password and cancel is pressed
Date Fri, 13 Jun 2008 22:27:44 GMT
NPE when SSH/SFTP resolver asks password and cancel is pressed
--------------------------------------------------------------

                 Key: IVY-841
                 URL: https://issues.apache.org/jira/browse/IVY-841
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0-RC1
            Reporter: Maarten Coene


If you use SSH/SFTP resolver and didn't specify a password, the resolver will display a popup
asking for the password.
If you click on the "cancel" button, you'll get the following NPE:

{noformat}
java.lang.NullPointerException
        at com.jcraft.jsch.Buffer.putString(Buffer.java:59)
        at com.jcraft.jsch.UserAuthKeyboardInteractive.start(UserAuthKeyboardInteractive.java:189)
        at com.jcraft.jsch.Session.connect(Session.java:424)
        at com.jcraft.jsch.Session.connect(Session.java:145)
        at org.apache.ivy.plugins.repository.ssh.SshCache.getSession(SshCache.java:330)
        at org.apache.ivy.plugins.repository.ssh.AbstractSshBasedRepository.getSession(AbstractSshBasedRepository.java:108)
        at org.apache.ivy.plugins.repository.ssh.SshRepository.put(SshRepository.java:236)
        at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
        at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:214)
        at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:204)
        at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:247)
        at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:200)
        at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:161)
        at org.apache.ivy.Ivy.publish(Ivy.java:600)
        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:289)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message