Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin Push SocketTimeoutException

Bartłomiej Pasik
6 years ago Nov 29, 2016 9:29am


I've implemented in my app Vaadin Push and I'm getting SocketTimeoutException when browser is idle (something like 5 mins).

lis 29, 2016 10:19:24 AM org.atmosphere.container.Jetty9WebSocketHandler onWebSocketError
java.net.SocketTimeoutException: Timeout on Read
    at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:526)
    at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173)
    at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:496)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539)
    at java.lang.Thread.run(Thread.java:745)

I'm using Vaadin 7.7.4 and Jetty 9.2.3.v20140905.

How can I fix this?

Janis Pütz
6 years ago Dec 12, 2016 11:02pm

Good question. I get the same exception a lot.

I didnt see any problems with it though, so I doubt it's as severe as the log says.

Bartłomiej Pasik
6 years ago Dec 15, 2016 8:31am