[JSch-users] Why JSch (JSCH-0.0.6) throws exception, caused by java.security.SignatureException?
Status: Alpha
Brought to you by:
ymnk
From: Audrius M. <Aud...@me...> - 2003-01-31 16:15:11
|
While trying to open a connection, under Linux I sometimes get the following exception: java.security.SignatureException: invalid signature: out of range values at sun.security.provider.DSA.engineVerify(DSA.java:228) at sun.security.provider.DSA.engineVerify(DSA.java:182) at java.security.Signature.verify(Signature.java:464) at com.jcraft.jsch.jce.SignatureDSA.verify(SignatureDSA.java:120) at com.jcraft.jsch.jce.DHG1.start(DHG1.java:221) at com.jcraft.jsch.Session.connect(Session.java:204) at Sight.util.ssh.Server.<init>(Server.java:88) (my code starts) Strange, but this also happens only under Mandrake Linux 9.0. The problem is transient, and it is possible just to catch that exception and retry. After several retries, the connection finally can be created. Hence this is not a problem of the wrong server address or wrong user information. I wrote this workaround, and it works, but my application started to crash time to time with 'mac error', mentioned in my previous message. Maybe these two problems are linked somehow? With respect Audrius Meskauskas (Sight project) |