You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Natan Abolafya (Jira)" <ji...@apache.org> on 2020/09/30 15:30:00 UTC

[jira] [Commented] (DIRAPI-337) ClosedSelectorException while searching through LDAP

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

Natan Abolafya commented on DIRAPI-337:
---------------------------------------

I get this sometimes when I call _LdapConnectionPool.close()._ Couldn't figure out any pattern on that but it's probably what you said. Connection is already closed by the remote server.

 

But I think the way the library handles this can be improved. The exception occurs on a standalone thread and provides no way to handle it as it's not delegated anywhere. So it ends up on a `DefaultExceptionMonitor`, polluting the logs.

> ClosedSelectorException while searching through LDAP
> ----------------------------------------------------
>
>                 Key: DIRAPI-337
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-337
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Dom Gibson
>            Priority: Major
>
> Getting the below stack trace several times randomly while searching through LDAP.
>  
> java.nio.channels.ClosedSelectorException: null
> at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) ~[na:1.8.0_171]
> at sun.nio.ch.SelectorImpl.select(Unknown Source) ~[na:1.8.0_171]
> at org.apache.mina.transport.socket.nio.NioProcessor.select(NioProcessor.java:98) ~[mina-core-2.0.16.jar!/:na]
> at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1075) ~[mina-core-2.0.16.jar!/:na]
> at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.16.jar!/:na]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_171]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_171]
> at java.lang.Thread.run(Unknown Source) [na:1.8.0_171]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org