hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ANEESHCH <aneesh.c...@gmail.com>
Subject Re: Max file size which can be transmitted using HttPClient
Date Sun, 21 Sep 2008 16:37:41 GMT

Hi,
When I tried using UnbufferedPost, I got the following error:

[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R
org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing
request can not be repeated.
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:487)
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
com.ey.weblib.webdav.docstore.FileStreamer.write(FileStreamer.java:67)
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
com.ey.weblib.webdav.docstore.RemoteDocFileManager.writeStream(RemoteDocFileManager.java:349)
[9/20/08 11:27:14:206 EDT] 2a4e4dea SystemErr     R 	at
com.ey.weblib.webdav.docstore.DocFileCoordinator.uploadAFile(DocFileCoordinator.java:394)
................................
Then tried with a custom entity class, and set the flag isRepeatable to
true, I strated getting the following errror...

[9/21/08 0:12:36:648 EDT] 2a4e4dea SystemErr     R java.io.IOException: Read
error
[9/21/08 0:12:36:648 EDT] 2a4e4dea SystemErr     R  at
java.io.FileInputStream.readBytes(Native Method)
[9/21/08 0:12:36:648 EDT] 2a4e4dea SystemErr     R  at
java.io.FileInputStream.read(FileInputStream.java:203)
[9/21/08 0:12:36:648 EDT] 2a4e4dea SystemErr     R  at
com.ey.weblib.webdav.docstore.InputStreamCustomEntity.writeRequest(InputStreamCustomEntity.java:50)
[9/21/08 0:12:36:648 EDT] 2a4e4dea SystemErr     R  at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
[9/21/08 0:12:36:648 EDT] 2a4e4dea SystemErr     R  at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
[9/21/08 0:12:36:648 EDT] 2a4e4dea SystemErr     R  at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
[9/21/08 0:12:36:648 EDT] 2a4e4dea SystemErr     R  at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
[9/21/08 0:12:36:648 EDT] 2a4e4dea SystemErr     R  at 
..................................
=========================================================

Please give me your opinion
-A




ANEESHCH wrote:
> 
> Hi,
> I have a requirement for sending a huge stream, created by uploading a 2GB
> file, using fileupload to a remote file share using Http. When I'm tried
> with java.net.HttpURLConnection, it was failing by throwing OutOfmemory
> error. 
> 1) Can I make use of HttpClient in this scenario? 
> 2)What's the max file size which can be send using HttpClient?
> 3)Is it request streaming which I have to use for this purpose.
> 
> My application is running on, Websphere Application Server ND 5.1. and the
> current max heap size of eah JVM is 768M.
> 
> 
> Any help is appreciated..
> 
> Thanks in advance
> 
> -A
> 

-- 
View this message in context: http://www.nabble.com/Max-file-size-which-can-be-transmitted-using-HttPClient-tp19585600p19595998.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message