You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Lyor Goldstein (Jira)" <ji...@apache.org> on 2021/04/02 07:55:00 UTC

[jira] [Commented] (SSHD-1065) Sporadical "Executor has been shut down" exceptions displayed

    [ https://issues.apache.org/jira/browse/SSHD-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17313682#comment-17313682 ] 

Lyor Goldstein commented on SSHD-1065:
--------------------------------------

[~vampire] is this still an issue ? Have you tried version 2.6.0 ? If no response I will close this issue...

> 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
>
> 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-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org