Marco,

I sometimes get this problem, too, using a similar setup. Usually, I can go back to 
the HTML form, reload it, and submit it again, and it works. I have not had any luck 
in determining it's cause.

Perhaps you should post this to the "Commons Users List" (see 
http://jakarta.apache.org/commons/fileupload/mail-lists.html to subscribe.)

Steve

> -----Original Message-----
> From: Marco Bucciarelli [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 18, 2002 11:00 AM
> To: [EMAIL PROTECTED]
> Subject: Problems with file upload
> 
> 
> I have a servlet that manages the file upload, using a FILE 
> field in a "multipart/form-data" form:
> <FORM ACTION="servlet/requestupload" METHOD=POST 
> ENCTYPE="multipart/form-data">
>   Which file to upload? <INPUT TYPE=FILE NAME=file1> <BR>
>   <INPUT TYPE=SUBMIT>
> </FORM>
> 
> I have a Tomcat 4.1.12 + Apache WebServer 1.3.22 + mod_jk 
> 1.2.2 on RedHat Linux 7.0.
> 
> When I submit the form, after a few minutes, in my 
> catalina.out file I get the message:
> 
> Dec 18, 2002 5:31:48 PM org.apache.jk.common.ChannelSocket 
> processConnection
> WARNING: server has closed the current connection (-1)
> 
> on mod_jk.log with debug set to Information, I get:
> [Wed Dec 18 17:48:45 2002]  [mod_jk.c (1841)]: 
> mod_jk::jk_translate, check alias_dir: /var/tomcat4/webapps
> [Wed Dec 18 17:48:45 2002]  [mod_jk.c (1864)]: 
> mod_jk::jk_translate, AutoAlias child_dir: Asso2000
> [Wed Dec 18 17:48:45 2002]  [jk_uri_worker_map.c (460)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [Wed Dec 18 17:48:45 2002]  [jk_uri_worker_map.c (477)]: 
> Attempting to map URI '/edptest/servlet/requestupload'
> [Wed Dec 18 17:48:45 2002]  [jk_uri_worker_map.c (502)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a context match 
> ajp13 -> /edptest/servlet/
> [Wed Dec 18 17:48:45 2002]  [jk_worker.c (132)]: Into 
> wc_get_worker_for_name ajp13
> [Wed Dec 18 17:48:45 2002]  [jk_worker.c (136)]: 
> wc_get_worker_for_name, done  found a worker
> [Wed Dec 18 17:48:45 2002]  [jk_ajp_common.c (1404)]: Into 
> jk_worker_t::get_endpoint
> [Wed Dec 18 17:48:45 2002]  [jk_ajp_common.c (1448)]: In 
> jk_endpoint_t::ajp_get_endpoint, time elapsed since last 
> request = 41 seconds
> [Wed Dec 18 17:48:45 2002]  [jk_ajp_common.c (1116)]: Into 
> jk_endpoint_t::service
> [Wed Dec 18 17:48:45 2002]  [jk_ajp_common.c (295)]: Into 
> ajp_marshal_into_msgb
> [Wed Dec 18 17:48:45 2002]  [jk_ajp_common.c (432)]: 
> ajp_marshal_into_msgb - Done
> [Wed Dec 18 17:48:45 2002]  [jk_ajp_common.c (642)]: sending 
> to ajp13 #508
> [Wed Dec 18 17:48:45 2002]  [jk_ajp_common.c (884)]: 
> ajp_send_request 2: request body to send 297143 - request 
> body to resend 0
> [Wed Dec 18 17:48:48 2002]  [jk_ajp_common.c (642)]: sending 
> to ajp13 #8192
> [Wed Dec 18 17:48:55 2002]  [jk_ajp_common.c (729)]: received 
> from ajp13 #3
> [Wed Dec 18 17:49:24 2002]  [jk_ajp_common.c (642)]: sending 
> to ajp13 #8192
> [Wed Dec 18 17:49:24 2002]  [jk_ajp_common.c (729)]: received 
> from ajp13 #3
> [Wed Dec 18 17:49:41 2002]  [jk_ajp_common.c (642)]: sending 
> to ajp13 #8192
> [Wed Dec 18 17:49:41 2002]  [jk_ajp_common.c (729)]: received 
> from ajp13 #3
> 
> and the browser says it can not find the server or there is a 
> DNS error.
> 
> I find the saved files in the right directory, but with zero size.
> 
> The "problem" is that in my test environment, with the same 
> configuration, everything works!!
> There must be something different in the configuration of 
> Apache, Tomcat, mod_jk, but I could not find the problem.
> 
> On the same server and same Apache WebServer, everything 
> worked with Tomcat 3.2.1 and mod_jk, using ajp12.
> 
> Any idea on what I have to look for?
> 
> Bye,
> Marco.
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to