[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jgit-dev] NPE aufter upgrade while pushing to "known" host via ssh
|
Hi,
I've upgraded jgit/egit to latest 3.3.0 (from 3.1.0) and reproducibly observed NPE while trying to push to the remote via ssh:
eclipse.buildId=3.8.0.v20120822-1153
java.version=1.7.0_04
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Error
Fri Mar 07 08:41:29 CET 2014
An exception occurred during push on URI ssh://git@xxx:7999/tool/eclipse-plugins-src.git: null
java.lang.NullPointerException
at com.jcraft.jsch.Session.checkHost(Session.java:802)
at com.jcraft.jsch.Session.connect(Session.java:342)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection.<init>(TransportGitSsh.java:306)
at org.eclipse.jgit.transport.TransportGitSsh.openPush(TransportGitSsh.java:152)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:154)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1173)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:156)
at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:221)
at org.eclipse.egit.ui.internal.push.PushOperationUI.execute(PushOperationUI.java:164)
at org.eclipse.egit.ui.internal.push.PushOperationUI$1.run(PushOperationUI.java:226)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
After removing the affected remote host from "known hosts" ssh settings in Eclipse, on next push attempt egit correctly asked me if I can trust the now "unknown" host and after confirmation the push was OK.
Is it expected to see such behavior on upgrade or should I file a bug?
Kind regards,
Andrey Loskutov
http://google.com/+AndreyLoskutov