Hi,

The Gradle project (http://www.gradle.org/) is using the SSHD library for
implementing SFTP functionality. We are currently depending on the version
0.10.0 with the coordinates "org.apache.sshd:sshd-core:0.10.0" from Maven
Central. In one of our builds we occasionally see the following stack trace
triggered by the method call(s)
"ClientSession.close(false).awaitUninterruptibly();":

java.lang.NullPointerException
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:125)
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:121)
    at
org.apache.sshd.common.future.DefaultSshFuture.notifyListener(DefaultSshFuture.java:261)
    at
org.apache.sshd.common.future.DefaultSshFuture.addListener(DefaultSshFuture.java:212)
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:126)
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:121)
    at
org.apache.sshd.common.future.DefaultSshFuture.notifyListener(DefaultSshFuture.java:261)
    at
org.apache.sshd.common.future.DefaultSshFuture.addListener(DefaultSshFuture.java:212)
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:126)
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:121)
    at
org.apache.sshd.common.future.DefaultSshFuture.notifyListener(DefaultSshFuture.java:261)
    at
org.apache.sshd.common.future.DefaultSshFuture.addListener(DefaultSshFuture.java:212)
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:126)
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:121)
    at
org.apache.sshd.common.util.CloseableUtils$4.close(CloseableUtils.java:132)
    at
org.apache.sshd.common.util.CloseableUtils$AbstractInnerCloseable.doCloseGracefully(CloseableUtils.java:232)
    at
org.apache.sshd.common.util.CloseableUtils$AbstractCloseable.close(CloseableUtils.java:190)
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:125)
    at
org.apache.sshd.common.util.CloseableUtils$4$1.operationComplete(CloseableUtils.java:121)
    at
org.apache.sshd.common.util.CloseableUtils$4.close(CloseableUtils.java:132)
    at
org.apache.sshd.common.util.CloseableUtils$AbstractInnerCloseable.doCloseGracefully(CloseableUtils.java:232)
    at
org.apache.sshd.common.util.CloseableUtils$AbstractCloseable.close(CloseableUtils.java:190)

So far we only experience this stack trace under Linux with the IBM JDK
1.6. Do you have any idea what could be going wrong here? Please also let
us know if we are using the API in an inappropriate way. If you want to dig
deeper, you can have a look at this class:
https://github.com/gradle/gradle/blob/master/subprojects/core-impl/src/main/groovy/org/gradle/api/internal/externalresource/transport/sftp/NonExistingFileHandlingSftpClient.java#L62

Any help would be highly appreciated. Let me know if you need any
additional information.

Thanks,

Ben

Reply via email to