Solved

File Upload - Larger File size - Stream Ended UnExpectedly

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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 30
javap bin 2 41
How to convert String matching to regex in java 4 52
ejb mdb examples 1 10
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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 third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

821 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