Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-1065

Sporadical "Executor has been shut down" exceptions displayed

    XMLWordPrintableJSON

Details

    Description

      I'm doing this:

      SshClient.setUpDefaultSimpleClient().use { ssh ->
         ssh.sessionLogin("server.company.com", "user", "p@ssw0rd").use { session ->
            println(session.executeRemoteCommand("id"))
            println(session.executeRemoteCommand("ps aux"))
         }
      } 

      (The use is basically Kotlin sugar for try-with-resources)

      This works fine, but sporadically this or similar is displayed, not disturbing project flow:

      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) 

      Attachments

        Activity

          People

            Unassigned Unassigned
            vampire Björn Kautler
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: