title: java websocket EOFException occur
body: <p>I am using a Java websocket but I'm getting an error I don't understand.</p>
  <p>When the server gets either a <code>RuntimeException</code> or <code>NullPointerException</code> etc., the <code>onError</code> method is called.</p>
  <p>After that(finished onError method), the <code>onError</code> method is called again. After the second time, <code>EOFException</code> occurs continuously.</p>
  <p>Do you have any idea why <code>EOFException</code> is occurring after <code>onError</code> method?</p>
  <p>Here is my error log:</p>
  <pre><code>java.io.EOFException
      at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1267)
      at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.isReadyForRead(NioEndpoint.java:1176)
      at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:58)
      at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.upgradeDispatch(WsHttpUpgradeHandler.java:148)
      at org.apache.coyote.http11.upgrade.UpgradeProcessorInternal.dispatch(UpgradeProcessorInternal.java:54)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:53)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:788)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1485)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>