RE: Upload Exception - Time out error

2006-09-28 Thread Sandeep Darvekar
Hi Folks,

 

I tried the suggested change, but I am still facing the same problem. Here
is the exception that I get.

** Picateers Exception Handler received an exception of type
org.apache.commons.fileupload.FileUploadException at [28/Sep/2006:15:19:05]
**

org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Read timed out

at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.jav
a:429)

at
com.picateers.photo.Action.ProcessUpload.execute(ProcessUpload.java:82)

at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:421)

at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

at
com.picateers.photo.filter.LoggingFilter.doFilter(LoggingFilter.java:84)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

at
com.picateers.photo.filter.SecurityFilter.doFilter(SecurityFilter.java:119)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)

at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)

at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)

at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)

at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

/org.apache.commons.fileupload.FileUploadException:
313644,1  97%

 

Can someone please throw some light on it?

 

 

Thanks 

Sandeep Darvekar

Persistent Systems Pvt. Ltd. India

Ph: +1-408-406-1282 (Cell)

Ph: +91-98811-52525 (Cell, India)

Ph: +91-20-3023-4692 (Office, India)

 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: 24 September, 2006 9:55 PM
To: Tomcat Users List
Subject: Re: Upload Exception - Time out error

 

The connector element you posted has it correctly.  I wouldn't try the 

short form "10MB" though --  the docs don't mention that as a valid way 

of expressing the value.

 

As far as updating a production service, it's always best to try it in a 

parallel test environment.  If that's not an option, then make a copy of 

the existing server.xml and roll back to it if the change has unwanted 

side effects.  In this case I doubt there will be any.

 

--David

 

Sandeep Darvekar wrote:

> Just to reconfirm, my server.xml should have connector element as

> 

>  

>maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

> 

>enableLookups="false" redirectPort="8443" acceptCount="100"

> 

>connectionTimeout="2" disableUploadTimeout="true" />

> 

> Where I am setting maxPostSize="10MB"

> 

> Please correct me if I am wrong. I will be doing this change on production

> server where I am facing this issue and cannot test this in staging as we

> cannot reproduce this problem there.

> 

> Thanks for sending me the quick reply.

> 

>  

> 

> Thanks 

> 

> Sandeep Darvekar

> 

> Persistent Systems Pvt. Ltd. India

> 

> Ph: +1-408-406-1282 (Cell)

> 

> Ph: +91-98811-52525 (Cell, India)

> 

> Ph: +91-20-3023-4692 (Office, India)

> 

>  

> 

> -Original Message-

&g

Re: Upload Exception - Time out error

2006-09-24 Thread David Smith
The connector element you posted has it correctly.  I wouldn't try the 
short form "10MB" though --  the docs don't mention that as a valid way 
of expressing the value.


As far as updating a production service, it's always best to try it in a 
parallel test environment.  If that's not an option, then make a copy of 
the existing server.xml and roll back to it if the change has unwanted 
side effects.  In this case I doubt there will be any.


--David

Sandeep Darvekar wrote:

Just to reconfirm, my server.xml should have connector element as



Where I am setting maxPostSize="10MB"

Please correct me if I am wrong. I will be doing this change on production
server where I am facing this issue and cannot test this in staging as we
cannot reproduce this problem there.

Thanks for sending me the quick reply.

 

Thanks 


Sandeep Darvekar

Persistent Systems Pvt. Ltd. India

Ph: +1-408-406-1282 (Cell)

Ph: +91-98811-52525 (Cell, India)

Ph: +91-20-3023-4692 (Office, India)

 


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 24 September, 2006 8:16 PM

To: Tomcat Users List
Subject: RE: Upload Exception - Time out error

 

  
From: Sandeep Darvekar [mailto:[EMAIL PROTECTED] 
    


  

Subject: RE: Upload Exception - Time out error



  

  
Thanks for refereeing to this link. However when I looked at 



  

server.xml that I have on my tamcat installation it does not



  

show any attribute with name maxPostSize.



 


Read the doc, not your server.xml - maxPostSize is an attribute of the

 element, and has a default value of 2MB.  Once more, with

feeling:

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

 


 - Chuck

 

 


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

MATERIAL and is thus for use only by the intended recipient. If you

received this in error, please contact the sender and delete the e-mail

and its attachments from all computers.

 


-

To start a new topic, e-mail: users@tomcat.apache.org

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.

  



--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Upload Exception - Time out error

2006-09-24 Thread Sandeep Darvekar
Just to reconfirm, my server.xml should have connector element as



Where I am setting maxPostSize="10MB"

Please correct me if I am wrong. I will be doing this change on production
server where I am facing this issue and cannot test this in staging as we
cannot reproduce this problem there.

Thanks for sending me the quick reply.

 

Thanks 

Sandeep Darvekar

Persistent Systems Pvt. Ltd. India

Ph: +1-408-406-1282 (Cell)

Ph: +91-98811-52525 (Cell, India)

Ph: +91-20-3023-4692 (Office, India)

 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 24 September, 2006 8:16 PM
To: Tomcat Users List
Subject: RE: Upload Exception - Time out error

 

> From: Sandeep Darvekar [mailto:[EMAIL PROTECTED] 

> Subject: RE: Upload Exception - Time out error

> 

> Thanks for refereeing to this link. However when I looked at 

> server.xml that I have on my tamcat installation it does not

> show any attribute with name maxPostSize.

 

Read the doc, not your server.xml - maxPostSize is an attribute of the

 element, and has a default value of 2MB.  Once more, with

feeling:

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

 

 - Chuck

 

 

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

MATERIAL and is thus for use only by the intended recipient. If you

received this in error, please contact the sender and delete the e-mail

and its attachments from all computers.

 

-

To start a new topic, e-mail: users@tomcat.apache.org

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.


RE: Upload Exception - Time out error

2006-09-24 Thread Caldarale, Charles R
> From: Sandeep Darvekar [mailto:[EMAIL PROTECTED] 
> Subject: RE: Upload Exception - Time out error
> 
> Thanks for refereeing to this link. However when I looked at 
> server.xml that I have on my tamcat installation it does not
> show any attribute with name maxPostSize.

Read the doc, not your server.xml - maxPostSize is an attribute of the
 element, and has a default value of 2MB.  Once more, with
feeling:
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Upload Exception - Time out error

2006-09-24 Thread Sandeep Darvekar
Hi Mark,

Thanks for refereeing to this link. However when I looked at server.xml that
I have on my tamcat installation it does not show any attribute with name
maxPostSize. Here is my server.xml attached.
Please let me know how to configure it.

Thanks 
Sandeep Darvekar
-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 22 September, 2006 4:20 AM
To: Tomcat Users List
Subject: Re: Upload Exception - Time out error

Sandeep Darvekar wrote:
> Hello,
> 
> Is there any limit configuration on tomcat that restricts uploading the
> files above 2MB size?

See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

You want maxPostSize

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.







  
  
  
  

  
  







  

  

  
  






	
	













 
 



  
  

  

  
  

  
  

  

  

  

  

  
  

 

















  



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Upload Exception - Time out error

2006-09-22 Thread Mark Thomas
Sandeep Darvekar wrote:
> Hello,
> 
> Is there any limit configuration on tomcat that restricts uploading the
> files above 2MB size?

See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

You want maxPostSize

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Upload Exception - Time out error

2006-09-21 Thread Sandeep Darvekar
Hello,

 

Is there any limit configuration on tomcat that restricts uploading the
files above 2MB size?

 

Thanks 

Sandeep Darvekar

 

  _  

From: Sandeep Darvekar [mailto:[EMAIL PROTECTED] 
Sent: 21 September, 2006 7:54 PM
To: 'users@tomcat.apache.org'
Cc: 'Sandeep Darvekar'
Subject: Upload Exception - Time out error

 

Hello,

 

We have one web application developed on tomcat which is used for uploading
the photos from the end users. We are facing one typical issue when we try
to upload a big image photo of size 7MB. We get the exception on the applet
(client side) as well as on the server (tomcat Catalina.out). I have
attached this exception in the mail. 

We have modified the tomcat server.xml for the timeout period to reasonably
large value. I have monitored the network traffic using ethereal and it
shows that client is sending the data and server fails to acknowledge it.
Ethereal shows that it happens in the first 40 seconds when the data
transferred is not even 40kb. But this behavior is not observed when the
image size is 2-3 MB and we are able to upload the images with 2-3 MB size
without any issues.

 

Have you guys faced this kind of issue? Do you know what could be the reason
why this occurs? 

 

Please send me if you have pointers on this. Feel free to write to me if you
need more information about this problem.

 

Thanks 

Sandeep Darvekar


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.


Upload Exception - Time out error

2006-09-21 Thread Sandeep Darvekar
Hello,

 

We have one web application developed on tomcat which is used for uploading
the photos from the end users. We are facing one typical issue when we try
to upload a big image photo of size 7MB. We get the exception on the applet
(client side) as well as on the server (tomcat Catalina.out). I have
attached this exception in the mail. 

We have modified the tomcat server.xml for the timeout period to reasonably
large value. I have monitored the network traffic using ethereal and it
shows that client is sending the data and server fails to acknowledge it.
Ethereal shows that it happens in the first 40 seconds when the data
transferred is not even 40kb. But this behavior is not observed when the
image size is 2-3 MB and we are able to upload the images with 2-3 MB size
without any issues.

 

Have you guys faced this kind of issue? Do you know what could be the reason
why this occurs? 

 

Please send me if you have pointers on this. Feel free to write to me if you
need more information about this problem.

 

Thanks 

Sandeep Darvekar


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.