On Sat, Aug 7, 2010 at 1:36 AM, Atsuhiko Yamanaka <y...@jcraft.com> wrote: > According to the bug report[1], Java5 and previous must not > allow to insert providers at 1.
I read a number of bug reports, and most of them required a sunsolve or oracle login. > How about adding an argument "BC" to getInstance method invocations in > com.jcraft.jsch.jce.DH class? I mean that > > myKpairGen=KeyPairGenerator.getInstance("DH", "BC"); > myKeyAgree=KeyAgreement.getInstance("DH", "BC"); Fantastic! I patched the 1.4.3 source and compiled under JDK 1.5. On machine B under JDK 1.5, the combination of: 1) Dynamically inserting BC provider at a position after SUN, but before JCE (position 3 in my case) 2) Specifying the BC provider in the getInstance methods for DH resolved the issue. I ran a test class in a shell loop for 15 minutes and not once did I see the symptoms reappear. Thanks to you, I now have a short-term solution (JDK 1.5, BC, and patched JSCH 1.4.3) as well as a long-term solution (JDK 1.6, BC, and baseline JSCH 1.4.3). Again, many thanks for your help and persistence. I hope this email thread benefits anyone else that might use JSCH on this platform who encounters the same issue. -- Best Regards, Scott Spyrison ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users