[ https://issues.apache.org/jira/browse/SSHD-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17388480#comment-17388480 ]
Ömer Kurular commented on SSHD-1065: ------------------------------------ [~Lipi] thank you for quick response. I do not create ssh clients but two ssh servers. My case is different, it seems. I am running two ssh servers and when I try to close one or both in order, it throws the said exception. Hoping two find a solution. > Sporadical "Executor has been shut down" exceptions displayed > ------------------------------------------------------------- > > Key: SSHD-1065 > URL: https://issues.apache.org/jira/browse/SSHD-1065 > Project: MINA SSHD > Issue Type: Bug > Affects Versions: 2.5.1 > Reporter: Björn Kautler > Priority: Minor > Labels: user-confirmation-required, user-response-required > > I'm doing this: > {code:java} > SshClient.setUpDefaultSimpleClient().use { ssh -> > ssh.sessionLogin("server.company.com", "user", "p@ssw0rd").use { session -> > println(session.executeRemoteCommand("id")) > println(session.executeRemoteCommand("ps aux")) > } > } {code} > (The {{use}} is basically Kotlin sugar for {{try-with-resources}}) > This works fine, but sporadically this or similar is displayed, not > disturbing project flow: > {code:java} > Exception in thread "Thread-67" java.lang.IllegalStateException: Executor has > been shut down > at > org.apache.sshd.common.util.ValidateUtils.createFormattedException(ValidateUtils.java:213) > at > org.apache.sshd.common.util.ValidateUtils.throwIllegalStateException(ValidateUtils.java:207) > at > org.apache.sshd.common.util.ValidateUtils.checkState(ValidateUtils.java:184) > at > org.apache.sshd.common.util.threads.NoCloseExecutor.execute(NoCloseExecutor.java:100) > at > java.base/sun.nio.ch.AsynchronousChannelGroupImpl.executeOnPooledThread(AsynchronousChannelGroupImpl.java:188) > at java.base/sun.nio.ch.Invoker.invokeIndirectly(Invoker.java:213) > at java.base/sun.nio.ch.Invoker.invoke(Invoker.java:189) > at java.base/sun.nio.ch.Invoker.invoke(Invoker.java:298) > at > java.base/sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.failed(WindowsAsynchronousSocketChannelImpl.java:602) > at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:389) > at java.base/java.lang.Thread.run(Thread.java:834) {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org