Hello,
I implemented a video upload and play function for mp4-videos in my application.
Often (but not always) I get the the following exception after clicking “Exec import” in the pop up window
and the video is not shown (text something like “no video with supported format … found” is shown instead).
Nevertherless after clicking “Exec import” (which moves the file from “tmp” to “video” and gives it another name)
and clicking “Show video” in the main window, the video is shown correctly
I have the impression that this is somehow connected to the size of the video file.
For files of size 44 Mb I get the exception very often, 4 Mb files seem to work all times.
While this does not seem to be a Vaadin problem, I would be grateful if somebody has made
similar experiences and found a solution.
I use Vaadin 7.6.7, Tomcat 8.0.21.
I also attach a WAR-file with a stripped down version of my source code.
org.apache.catalina.connector.ClientAbortException: java.io.IOException: An existing connection was forcibly closed by the remote host
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:393)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:344)
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:418)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:406)
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:97)
at com.vaadin.server.DownloadStream.writeResponse(DownloadStream.java:305)
at com.vaadin.ui.AbstractMedia.handleConnectorRequest(AbstractMedia.java:121)
at com.vaadin.server.ConnectorResourceHandler.handleRequest(ConnectorResourceHandler.java:83)
at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1408)
…
Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:127)