End of file exception

Hello all,

I’m not sure whether this error belongs to Vaadin, but I always get this message in the logifle by testing my vaadin application on a tablet.
I start my vaadin application within spring boot. Does anyone knows what the problem is / it can fixed?

Thanks! Best Regards,
Thomas


2016-12-08 22:10:12,976 ERROR | http-nio-80-exec-1 | org.atmosphere.container.JSR356Endpoint |
java.io.EOFException: null
at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1202)
at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.isReadyForRead(NioEndpoint.java:1127)
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:802)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
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)

From the available information (atmosphere error), I can only think of that maybe your mobile browser doesn’t support WebSockets communication. Are you perhaps using Push in your application?

-Olli

Hello,

Yes, I’m using PUSH in my application. But the fields are updated (I have a cylce refresh implemented).

Best Regards,
Thomas

Hi,

you could then experiment with different Push transport modes; see this blog post for more information:
https://blog.codecentric.de/en/2014/08/the-3-different-transport-modes-with-vaadin-and-push/

-Olli

… I think another option solved the issue! Thanks…

Great!

Thomas, how did you solve the issue? We are having the same problem in our production app, not sure what is the problem there… Thank you!

I added to following to the annotation:

@Push(value = PushMode.AUTOMATIC, transport = Transport.LONG_POLLING)