Solved

File Upload - Larger File size - Stream Ended UnExpectedly

Posted on 2011-09-21
2
948 Views
Last Modified: 2012-08-14
Hi

I am developing an application which has the option to upload files, I am using Tomcat 6 it is working fine when the files size is small, if it is larger files it is giving Exception "Stream Ended UnExpectedly"

I googled for this there are posts saying to increase the socket time out for the tomcat. If it is can you please suggest me how to do that

Thanks
Pavan
0
Comment
Question by:Gangadhara Melukote
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
reijnemans earned 500 total points
ID: 36572050
Hi You have to modifythe server.xml:

make sure the connector tag to have connectionTimeout="20000" and disableUploadTimeout="true"

regards,

Reijnemans
0
 
LVL 4

Expert Comment

by:reijnemans
ID: 36572054
disableUploadTimeout:
	
This flag allows the servlet container to use a different, longer connection timeout while a servlet is being executed, which in the end allows either the servlet a longer amount of time to complete its execution, or a longer timeout during data upload. If not specified, this attribute is set to "true".

Open in new window

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
session migration servlets 2 36
object oriented programming comparison 5 72
Groovy problem when using SOAPUI : DispatchException occurred 7 45
servlet example issue 6 39
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question