Re: [JSch-users] session.connect() NullPointerException
Status: Alpha
Brought to you by:
ymnk
From: Gerry R. <gr...@ve...> - 2013-11-16 15:17:04
|
Yes, same problem as in the bug. I reposted this to the bug. On 11/16/2013 06:00 AM, Oleg Sukhodolsky wrote: > It looks like this is the same problem as described in > http://sourceforge.net/p/jsch/bugs/63/ > > Oleg. > > On Sat, Nov 16, 2013 at 10:54 AM, Gerry Reno <gr...@ve...> wrote: >> Using JSch 1.5.0 >> >> I'm seeing a NullPointerExcepton every so often from Session.java on valid params. >> >> eg: >> >> session = jsch.getSession(TEST-2003\Administrator, 192.168.2.108, 22222) >> >> E/AndroidRuntime(17889): FATAL EXCEPTION: Thread-1684 >> E/AndroidRuntime(17889): java.lang.NullPointerException >> E/AndroidRuntime(17889): at com.jcraft.jsch.Session.checkHost(Session.java:802) >> E/AndroidRuntime(17889): at com.jcraft.jsch.Session.connect(Session.java:342) >> E/AndroidRuntime(17889): at com.jcraft.jsch.Session.connect(Session.java:183) >> >> >> I can log in with command line ssh using these same params both from Linux and from same Android. >> >> $ ssh -p 22222 'TEST-2003\Administrator'@192.168.2.108 >> The authenticity of host '192.168.2.108 (192.168.2.108)' can't be established. >> DSA key fingerprint is d4:e9:39:58:95:03:23:24:5a:e9:f7:df:29:b6:d5:d5. >> Are you sure you want to continue connecting (yes/no)? yes >> Warning: Permanently added '192.168.2.108' (DSA) to the list of known hosts. >> TEST-2003\Administrator@192.168.2.108's password: >> >> Microsoft Windows [Version >> 5.2.3790] >> (C) Copyright 1985-2003 Microsoft >> Corp. >> >> >> C:\Documents and >> Settings\Administrator>exit >> Connection to 192.168.2.108 >> closed. >> $ >> >> >> >> >> ------------------------------------------------------------------------------ >> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps >> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access >> Free app hosting. Or install the open source package on any LAMP server. >> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! >> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk >> _______________________________________________ >> JSch-users mailing list >> JSc...@li... >> https://lists.sourceforge.net/lists/listinfo/jsch-users |