Re: [JSch-users] Jsch stopped working with Java8
Status: Alpha
Brought to you by:
ymnk
|
From: Marc L. <mar...@gm...> - 2014-07-28 18:56:11
|
Hi, just want to report back. I upgraded JSch to latest version and installed the JCE Ext. Security JAR from Oracle without any difference. Error is still the same with Java8. Seems to be a major bug in JSch. Hope someone of the authors can reply to that... Marc 2014-07-28 18:56 GMT+02:00 Marc Logemann <mar...@gm...>: > Thx for hint. Will try later on. Just downloaded the "JCE strong > encryption" package for Java 8. > > > 2014-07-28 18:24 GMT+02:00 Alan Ezust <ala...@gm...>: > > I am also having trouble using jsch with java8. I already posted my >> problem to this list earlier. >> Basically, the jEdit FTP plugin doesn't work for me in Java 8. >> >> But your problem is different, and one I might be able to help you with. >> you may need to install the JCE full key-strength encryption. >> >> >> http://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters >> >> >> >> >> >> On Mon, Jul 28, 2014 at 9:18 AM, Marc Logemann <mar...@gm...> >> wrote: >> >>> Hi, >>> >>> we are using JSch as transport mechanism for EDI data to a different >>> company for about 7 years now. Today we upgraded to Java 8 and now when we >>> try to connect, we get: >>> >>> Session.connect: java.security.InvalidKeyException: Key is too long >>> for this algorithm >>> >>> Currently we use: >>> >>> <dependency org="com.jcraft" name="jsch" rev="0.1.42"/> >>> >>> Our code is like this.. >>> >>> Session session = jsch.getSession(sftpUser, sftpHost); >>> session.setPassword(sftpPassword); >>> UserInfo ui = new SFTPClientWrapper.MyUserInfo(); >>> session.setUserInfo(ui); >>> session.connect(); >>> >>> >>> So some questions arise :-) >>> >>> 1) will upgrade to latest version of JSch help me? >>> >>> 2) do you know the error in general? I dont have any clue because i dont >>> do anything with keys. IMO its some kind of internal issue with java and >>> JSch. >>> >>> >>> Thanks for any hints. >>> >>> Marc >>> >>> >>> ------------------------------------------------------------------------------ >>> Infragistics Professional >>> Build stunning WinForms apps today! >>> Reboot your WinForms applications with our WinForms controls. >>> Build a bridge from your legacy apps to the future. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> JSch-users mailing list >>> JSc...@li... >>> https://lists.sourceforge.net/lists/listinfo/jsch-users >>> >>> >> > |