This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
SFTP connection failed with OpenSSH server 6.7 or above found from Debian 8 / Ubuntu 15.04. This is suspected due to lack of supported encryption algorithm compiled in the IDE module com-jcraft-jsch.jar More information can be found from: https://sourceforge.net/p/jsch/bugs/79/ Error message: java.lang.ClassNotFoundException: javax.crypto.spec.SecretKeySpec cannot be found by com.jcraft.jsch_0.1.51 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at org.netbeans.modules.netbinox.NetbinoxLoader.loadClass(NetbinoxLoader.java:81) at java.lang.ClassLoader.loadClass(Unknown Source) Caused: java.lang.NoClassDefFoundError: javax/crypto/spec/SecretKeySpec at com.jcraft.jsch.jce.AES128CTR.init(AES128CTR.java:56) at com.jcraft.jsch.Session.checkCipher(Session.java:2473) at com.jcraft.jsch.Session.checkCiphers(Session.java:2450) at com.jcraft.jsch.Session.send_kexinit(Session.java:616) at com.jcraft.jsch.Session.connect(Session.java:307) at com.jcraft.jsch.Session.connect(Session.java:183) at org.netbeans.modules.php.project.connections.sftp.SftpClient.connectSftpClient(SftpClient.java:277) at org.netbeans.modules.php.project.connections.sftp.SftpClient.init(SftpClient.java:159) at org.netbeans.modules.php.project.connections.sftp.SftpClient.connect(SftpClient.java:285) at org.netbeans.modules.php.project.connections.RemoteClient.connect(RemoteClient.java:193) at org.netbeans.modules.php.project.connections.ui.RemoteConnectionsPanel.testConnection(RemoteConnectionsPanel.java:252) at org.netbeans.modules.php.project.connections.ui.RemoteConnectionsPanel$2.run(RemoteConnectionsPanel.java:153) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
This is an update of the bug: System upgraded from 8.0 -> 8.0.2 will suffer from this bug since ide\modules\com-jcraft-jsch.jar would not be upgraded, the file size is 224,310 bytes. System newly install 8.0.2 will NOT suffer from this bug, file size of the jar file is 226666 bytes.
I am suffering from this same bug.
So, if I understand it correctly, we need to wait for new version of JSCh (the JSCh issue is still opened) - am I right? Feel free to let us know once it is released. Thanks.
I installed netbeans 8.0.2 separately, but ide\modules\com-jcraft-jsch.jar the file size is 224,310 bytes i.e. it is the same as 8.0, where to get file 226666 bytes size?
Update: you have to export all settings and keyrink passwords (if you need) and do clean uninstall of upgraded version, then do clean install of netbeans 8.0.2 and import previously exported settings
Could anyone please confirm that this issue is resolved with the latest Jsch (0.1.53)? Thanks.
JSch upgraded to the latest stable version [1], so closing this issue. Feel free to reopen but please provide information what can be done on NetBeans' side. Thanks. [1] see issue #254634