Solved

File Upload - Larger File size - Stream Ended UnExpectedly

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java mysql insert application 14 68
.htaccess css/images no longer loading 4 86
glassfish admin console 1 53
Netbeans and org.apache.commons.lang3 issue 3 55
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses

710 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