Solved

File Upload - Larger File size - Stream Ended UnExpectedly

Posted on 2011-09-21
2
975 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn different types of Android Layout and some basics of an Android App.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

623 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