question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

com.hierynomus.sshj.transport.DisconnectionTest > shouldNotThrowTimeoutOnDisconnect FAILED

See original GitHub issue
D:\Projekty\sshj>gradlew clean build

> Task :compileJava 
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

> Task :compileTestJava 
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\Projekty\sshj\src\test\java\com\hierynomus\sshj\test\SshFixture.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

> Task :test 
? Test com.hierynomus.sshj.connection.channel.ChannelCloseEofTest; Executed: 1/1/0t
? Test com.hierynomus.sshj.connection.channel.direct.CommandTest; Executed: 1/1/0
? Test com.hierynomus.sshj.connection.channel.forwarded.RemotePortForwarderTest; Executed: 7/7/0
? Test com.hierynomus.sshj.keepalive.KeepAliveThreadTerminationTest; Executed: 0/0/0
? Test com.hierynomus.sshj.sftp.RemoteFileTest; Executed: 1/1/0

com.hierynomus.sshj.transport.DisconnectionTest > shouldNotThrowTimeoutOnDisconnect FAILED
    net.schmizz.sshj.connection.ConnectionException: Connection reset

        Caused by:
        net.schmizz.sshj.common.SSHException: Connection reset

            Caused by:
            java.net.SocketException: Connection reset
? Test com.hierynomus.sshj.transport.DisconnectionTest; Executed: 5/4/1
? Test com.hierynomus.sshj.transport.kex.KeyExchangeTest; Executed: 5/5/0
? Test com.hierynomus.sshj.userauth.GssApiTest; Executed: 1/1/0
? Test com.hierynomus.sshj.userauth.method.AuthPasswordTest; Executed: 4/4/0
? Test net.schmizz.sshj.common.BufferTest; Executed: 8/8/0
? Test net.schmizz.sshj.keyprovider.KeyProviderUtilTest; Executed: 6/6/0
? Test net.schmizz.sshj.keyprovider.OpenSSHKeyFileTest; Executed: 12/12/0
? Test net.schmizz.sshj.keyprovider.PKCS5KeyFileTest; Executed: 3/3/0
? Test net.schmizz.sshj.keyprovider.PKCS8KeyFileTest; Executed: 2/2/0est
? Test net.schmizz.sshj.keyprovider.PuTTYKeyFileTest; Executed: 6/6/0
? Test net.schmizz.sshj.sftp.FileModeTest; Executed: 2/2/0
? Test net.schmizz.sshj.sftp.PacketReaderTest; Executed: 2/2/0
? Test net.schmizz.sshj.sftp.PathHelperTest; Executed: 7/7/0
? Test net.schmizz.sshj.sftp.SFTPClientTest; Executed: 1/1/0
? Test net.schmizz.sshj.signature.SignatureDSATest; Executed: 1/1/0
? Test net.schmizz.sshj.signature.SignatureECDSATest; Executed: 3/3/0
? Test net.schmizz.sshj.SmokeTest; Executed: 2/2/0
? Test net.schmizz.sshj.transport.mac.BaseMacTest; Executed: 6/6/0
? Test net.schmizz.sshj.transport.mac.HMACMD596Test; Executed: 3/3/0
? Test net.schmizz.sshj.transport.mac.HMACMD5Test; Executed: 3/3/0
? Test net.schmizz.sshj.transport.mac.HMACSHA196Test; Executed: 3/3/0
? Test net.schmizz.sshj.transport.mac.HMACSHA1Test; Executed: 3/3/0
? Test net.schmizz.sshj.transport.mac.HMACSHA2256Test; Executed: 3/3/0
? Test net.schmizz.sshj.transport.mac.HMACSHA2512Test; Executed: 3/3/0
? Test net.schmizz.sshj.util.BufferTest; Executed: 6/6/0
? Test net.schmizz.sshj.xfer.scp.SCPFileTransferTest; Executed: 5/5/0
? Test com.hierynomus.sshj.common.KeyTypeSpec; Executed: 1/1/0
? Test com.hierynomus.sshj.connection.channel.direct.LocalPortForwarderSpec; Executed: 1/1/0
? Test com.hierynomus.sshj.sftp.SFTPClientSpec; Executed: 11/11/0
? Test com.hierynomus.sshj.transport.IdentificationStringParserSpec; Executed: 6/6/0
? Test com.hierynomus.sshj.transport.verification.KnownHostMatchersSpec; Executed: 24/24/0
? Test com.hierynomus.sshj.transport.verification.OpenSSHKnownHostsSpec; Executed: 9/9/0
? Test com.hierynomus.sshj.userauth.keyprovider.FileKeyProviderSpec; Executed: 2/2/0
? Test net.schmizz.sshj.signature.SignatureDSASpec; Executed: 2/2/0
? Test net.schmizz.sshj.transport.verification.FingerprintVerifierSpec; Executed: 6/6/0
? Test net.schmizz.sshj.userauth.password.ConsolePasswordFinderSpec; Executed: 0/0/0
? Test net.schmizz.sshj.xfer.FileSystemFileSpec; Executed: 3/3/0erifierSpec

180 tests completed, 1 failed


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///D:/Projekty/sshj/build/reports/tests/test/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 8s
15 actionable tasks: 12 executed, 3 up-to-date

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tancolocommented, Aug 22, 2018

@TukanF1 well, you only build *.jar file? Why not use the lib on maven? As @hierynomus said on #445

There is no need to build the library yourself, as it is included in Maven central. Only if you wish to make a PR would you need to be able to build the code.

gradle or pom, any one can be used, right?

0reactions
TukanF1commented, Aug 22, 2018

I want only build *.jar file, cause I need library to SFTP connecting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

net.schmizz.sshj.SSHClient.disconnect java code examples
Disconnects from the connected SSH server. SSHClient objects are not reusable therefore it is incorrect to attempt connection after this method has been...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found