Loading...
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
TUTORIAL

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

Video upload & show: org.apache.catalina.connector.ClientAbortException: ja

hp surf
5 years ago Dec 19, 2016 2:10pm

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)

 

hp surf
5 years ago Dec 20, 2016 4:00pm
Janis Pütz
6 months ago Apr 19, 2021 2:13pm

I am getting the same error, when I open the Vaadin app in the browser. It does not seem to affect the user experience, but it bloat logs. It does seem to be a vaadin issue over here.