Solved

File Upload - Larger File size - Stream Ended UnExpectedly

Posted on 2011-09-21
2
933 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now