Executor has been shut down - help welcome [message #1864044] |
Wed, 13 March 2024 05:43  |
Eclipse User |
|
|
|
Hello,
in an eclipse-plugin I have to retrieve information from the remote-repository of a cloned-repository.
The clone is done via SSH, EGit (6.8) using Apache Mina Sshd-library.
For every selected java-project following code is run in its own thread:
final Repository r = repostoryMapping.getRepository();
try (final Git g = Git.wrap(r);) {
g.lsRemote().setHeads(true).setTags(true).call();
// ... and more ...
}
For more than one project this results in a lot of 'Executor has been shut down'-exceptions (almost a 1:1-relation to remote-call-per-project):
Exception in thread "Thread-2025" 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:190)
at java.base/sun.nio.ch.Invoker.invokeIndirectly(Invoker.java:215)
at java.base/sun.nio.ch.Invoker.invoke(Invoker.java:191)
at java.base/sun.nio.ch.Invoker.invoke(Invoker.java:300)
at java.base/sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.failed(WindowsAsynchronousSocketChannelImpl.java:607)
at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:389)
at java.base/java.lang.Thread.run(Thread.java:840)
This makes debugging the pluging in eclipse almost impossible, as the debug-view get filled up with canceled threads
which have to be run to get finshed, which in turn fills up the console view.
Is there something I missed ? May I configure anything to prevent this ?
Thanks
Kurt
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07645 seconds