hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sid Subr <sid_...@yahoo.com>
Subject Re: uploading large files
Date Mon, 08 Dec 2003 05:35:52 GMT
so what I see is 

java.net.SocketException: Software caused connection
abort: socket write error
        at
java.net.SocketOutputStream.socketWrite0(Native
Method)
        at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        at
org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1351)
        at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
        at
java.io.BufferedOutputStream.write(BufferedOutputStream.java:110)
        at
org.apache.commons.httpclient.methods.multipart.FilePart.sendData(FilePart.java:259)
        at
org.apache.commons.httpclient.methods.multipart.Part.send(Part.java:293)
        at
org.apache.commons.httpclient.methods.multipart.Part.sendParts(Part.java:342)
        at
org.apache.commons.httpclient.methods.MultipartPostMethod.writeRequestBody(MultipartPostMethod.java:288)
        at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2302)
        at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2629)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1085)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:674)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529)

when I do the following
// create Multipart post method
//add request ehader to keep alive the connecion
//create new http client
//set setimeout
//create credentials      
//get state and set the credentials
     //set authentication true     
        // create file desc
        //add part to method using custom file part
         //execute method
         // Read the response body.
         // Release the connection.

and this is from a java app and this fails for large
files and the same file works fine from the web page
using a multipart form method..

--- Sid Subr <sid_136@yahoo.com> wrote:
> the webserver receives the file fine if uploaded
> from
> a web page..
> 
> --- Ortwin_Glück <ortwin.glueck@nose.ch> wrote:
> > Sid Subr wrote:
> > > Hi Michael..
> > > 
> > > did not help..
> > > java.net.SocketException: Software caused
> > connection
> > > abort: socket write error
> > >         at
> > > java.net.SocketOutputStream.socketWrite0(Native
> > > Method)
> > 
> > You were saying that everything worked fine for
> > files < 3 MB. It seems to me
> > that your web server limit the upload file size.
> > What are you using on the
> > server side? PHP? Tomcat + Fileupload?
> > 
> > 
> > > I know the wie logs can tell something, I set
> the
> > > system properties etc for logging it where do
> the
> > logs
> > > go to? I cannot see any logs.. so I have to set
> > > something in my application's main to see the
> wire
> > > logs?
> > 
> > Please refer to the logging guide on the
> HttpClient
> > website.
> > 
> > have a nice weekend
> > 
> > Odi
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> >
>
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > commons-httpclient-dev-help@jakarta.apache.org
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
>
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message