Cyberduck Mountain Duck CLI

#11074 closed defect (fixed)

[cyberduck:ssh] sftp causes NPE

Reported by: umjammer Owned by:
Priority: normal Milestone:
Component: sftp Version: 7.0.1
Severity: normal Keywords: sftp
Cc: Architecture:
Platform: macOS 10.15


i'm developing an application using cyberduck libraries

■ i got NPE when i used sftp session.

    at net.schmizz.sshj.sftp.RemoteFile$ReadAheadRemoteFileInputStream.retrieveUnconfirmedRead(
    at net.schmizz.sshj.sftp.RemoteFile$ReadAheadRemoteFileInputStream.available(
    at java.nio.channels.Channels$
    at vavi.nio.file.Util$
    at vavi.nio.file.cyberduck.CyberduckFileSystemDriver$
  • error location is here

  • program entry point is here

  • my env
  +- ch.iterate.ssh:sshj:0:22:14
$ java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

■ i did

  • update cyberduck version
  +- ch.iterate.ssh:sshj:0:22:15


  • update sshj


but got warning

java.lang.NoSuchMethodError: net.schmizz.sshj.sftp.SFTPEngine.supportsServerExtension(Ljava/lang/String;Ljava/lang/String;)Z
	at ch.cyberduck.core.sftp.SFTPQuotaFeature.isStatVFSOpenSSHSupported(
	at ch.cyberduck.core.sftp.SFTPQuotaFeature.get(
	at vavi.nio.file.cyberduck.CyberduckFileStore.getQuota(
	at vavi.nio.file.cyberduck.CyberduckFileStore.getTotalSpace(
	at net.fusejna.FuseFilesystem._statfs(
	at net.fusejna.StructFuseOperations$26.callback(
	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(
	at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(

■ i want you

  • update cyberduck:ssh's sshj library to 0.29.0 compatible


Change History (2)

comment:1 Changed on Sep 14, 2020 at 8:32:59 AM by dkocher

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed on Sep 14, 2020 at 8:35:22 AM by dkocher

The dependency has since been updated in r49669.

Note: See TracTickets for help on using tickets.