Hi,
I'm using Tomcat versión 8.5.23 with http2 and from time to time I get some
ClosedChannelException:
{"message":"Failed to register socket with selector from
poller","timestamp":"2019-10-02T02:23:32+02:00","level":"ERROR","networkFunction":"UDR","serviceId":"eric-udr-nudrfe","exception":"java.nio.channels.ClosedChannelException:
null at
java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:197)
at
org.apache.tomcat.util.net.NioEndpoint$PollerEvent.run(NioEndpoint.java:567) at
org.apache.tomcat.util.net.NioEndpoint$Poller.events(NioEndpoint.java:682) at
org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:787) at
java.lang.Thread.run(Thread.java:748) "}
I don't know if this might be a problem in the configuration in my
EmbeddedServletContainerCustomizer ( I don't think this is the problem because
normally it works as expected) or if there is a nio library bug which is
already fixed in a newer version or if maybe there's a way to handle this
exception through the socket.
I would appreciate any help to fix or avoid this behavior.
BR,
Helena