Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Exception when destroying an XD syslog-tcp source i.e. int-syslog:inbound-channel-adapter [INT-3473] #7438

Closed
spring-operator opened this issue Jul 15, 2014 · 2 comments
Assignees
Milestone

Comments

@spring-operator
Copy link
Contributor

Glenn Renfro opened INT-3473 and commented

Not a critical bug.

However, when destroying the syslog-tcp the following exception is thrown:

19:06:32,569 ERROR pool-96-thread-1 connection.TcpNioServerConnectionFactory - Selector closed
java.nio.channels.ClosedSelectorException
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:84)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
at org.springframework.integration.ip.tcp.connection.TcpNioServerConnectionFactory.doSelect(TcpNioServerConnectionFactory.java:131)
at org.springframework.integration.ip.tcp.connection.TcpNioServerConnectionFactory.run(TcpNioServerConnectionFactory.java:100)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

The Definition:

<int-syslog:inbound-channel-adapter id="adapter" channel="output"
                auto-startup="false"
                protocol="tcp" port="${port}" />

Affects: 4.0.2

Referenced from: pull request #1212

@spring-operator
Copy link
Contributor Author

Gary Russell commented

We're canceling the selector before resetting the active flag so the exception is logged.

@spring-operator
Copy link
Contributor Author

Gary Russell commented

Merged and cherry-picked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants