You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "min yun law (Jira)" <ji...@apache.org> on 2020/09/22 19:44: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=17200335#comment-17200335 ]
min yun law commented on SSHD-1065:
-----------------------------------
I also sometime see such error as:
Exception in thread "Thread-37" java.lang.IllegalStateException: Executor has been shut downException in thread "Thread-37" 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 sun.nio.ch.AsynchronousChannelGroupImpl.executeOnPooledThread(AsynchronousChannelGroupImpl.java:188) at sun.nio.ch.Invoker.invokeIndirectly(Invoker.java:212) at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAsynchronousSocketChannelImpl.java:432) at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:191) at sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213) at sun.nio.ch.EPollPort$EventHandlerTask.run(EPollPort.java:293) at java.lang.Thread.run(Thread.java:748)
While my project still continue running.
> 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