exception - java.nio.channels.ClosedChannelException -


I am working with Neo (non blocking mode).

When the server stops, and I am getting the following exception: java.nio.channels.ClosedChannelException .

P> Every 1 second, I am trying to connect to the server (via connect method) and get the same exception: java .nio.channels.ClosedChannelException .

The server is up, I'm getting the same exception and can not connect to the server.

  1. I do not understand why the server is getting an exception after the server is started?
  2. How do I resolve this, (How can I try to reconnect to the server?)

Thanks

< P>

socket channel is closed. You have closed it in your code, and then have continued to use it. Or perhaps you can ignore ConnectException .


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -