Hi everybody,
I keep on getting the following exception. Since I was invastigating
quite some time allready (on several FAQ and Mailinglists), I hope
somebody of you can help:
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at
samlinux.upload.httpclient.PostMethod.readResponse(PostMethod.java:56)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at
samlinux.upload.httpclient.AUploader.executeMethod(AUploader.java:181)
at samlinux.upload.httpclient.AUploader.upload(AUploader.java:386)
at samlinux.upload.model.AModel.uploadFiles(AModel.java:70)
at
samlinux.upload.controller.UploadThreadHandler.run(UploadThreadHandler.java:98)
at java.lang.Thread.run(Unknown Source)
I use a multipart-form to upload several files. When I do the
Post-Method I keep on getting this exception - but not everytime. Since
this makes no sense to me I'm not sure, if this can really have
something to do with the problem. But when I set the SocketTimeout to 8
seconds and set the Loglevel for "httpclient.wire.header" and
"httpclient.wire.content" to Level.FINE it works all the time.
I post the form to a apache-webserver and the receiving script is a
PHP-Script. As my customer says, although the timout occures, the file
seems to be uploaded correctly. The protocoll we are using is pure HTTP.
On the client side is a Virusscanner running. As soon I deactivate this
scanner, it seams to run correct.
Thanks in advance
Dieter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]