updating JSCH
form version 0.1.55. to 0.2.24 and running proguard returns an error:
com.jcraft.jsch.JSchException: java.security.NoSuchAlgorithmException: Algorithm ECDH not available
at com.jcraft.jsch.DHECN.init(DHECN.java:83)
at com.jcraft.jsch.KeyExchange.doInit(KeyExchange.java:77)
at com.jcraft.jsch.Session.receive_kexinit(Session.java:638)
at com.jcraft.jsch.Session.connect(Session.java:336)
at com.jcraft.jsch.Session.connect(Session.java:198)
at watch.h.a(SourceFile:121)
at watch.watch.nagios(SourceFile:231)
at watch.watch$1.run(SourceFile:433)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.security.NoSuchAlgorithmException: Algorithm ECDH not available
at java.base/javax.crypto.KeyAgreement.getInstance(KeyAgreement.java:194)
at com.jcraft.jsch.jce.ECDHN.init(ECDHN.java:49)
at com.jcraft.jsch.DHECN.init(DHECN.java:78)
... 20 more
Using JSCH
version 0.2.24 without Proguard
runs normally.
Does anyone have a solution for this?
I am currently using 0.1.55 again.
Thank you GGK
updating JSCH
form version 0.1.55. to 0.2.24 and running proguard returns an error:
com.jcraft.jsch.JSchException: java.security.NoSuchAlgorithmException: Algorithm ECDH not available
at com.jcraft.jsch.DHECN.init(DHECN.java:83)
at com.jcraft.jsch.KeyExchange.doInit(KeyExchange.java:77)
at com.jcraft.jsch.Session.receive_kexinit(Session.java:638)
at com.jcraft.jsch.Session.connect(Session.java:336)
at com.jcraft.jsch.Session.connect(Session.java:198)
at watch.h.a(SourceFile:121)
at watch.watch.nagios(SourceFile:231)
at watch.watch$1.run(SourceFile:433)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.security.NoSuchAlgorithmException: Algorithm ECDH not available
at java.base/javax.crypto.KeyAgreement.getInstance(KeyAgreement.java:194)
at com.jcraft.jsch.jce.ECDHN.init(ECDHN.java:49)
at com.jcraft.jsch.DHECN.init(DHECN.java:78)
... 20 more
Using JSCH
version 0.2.24 without Proguard
runs normally.
Does anyone have a solution for this?
I am currently using 0.1.55 again.
Thank you GGK
Share Improve this question edited Mar 20 at 12:55 GGK stands for Ukraine asked Mar 20 at 10:50 GGK stands for UkraineGGK stands for Ukraine 75010 silver badges22 bronze badges 1- added the stacktrace in original post – GGK stands for Ukraine Commented Mar 20 at 14:00
1 Answer
Reset to default 2I fell into the trap. it was not due to proguard, but to the crypto module, which is required in 0.2.24. I added jdk.crypto.ec
to the JAVA binary and that was it.
Thank you
GGK