• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

SocketException while uploading File of more than 2GB via Apache HttpClient Object in Websphere

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a requirement of uploading zip files of more than 2GB size on a server. In order to achieve this i am using Apache HttpClient Object (org.apache.commons.httpclient)

If i deploy my application on Tomcat 5.5, I can successfully upload more than 5GB of zip files without making any changes in Tomcat configuration files. However when i try the same application on IBM Websphere 6.0 and 7.0 i cannot upload zip files of 2GB size and more, following is the exception i am getting. Is their any limitation on Websphere on maximum size file upload anything like maxRequestLength (setting found in .NET) found in Websphere.

 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Vinod,

unfortunately I don't know details about Websphere so I can't tell you exactly why it behaves like this. But Apache (the well-known HTTP server) has the same limitation in some versions on some systems. As far as I know the origin of this problem was, at least on Linux with Apache 2.0.x, because of limitations of some filesystem.

I guess, this doesn't help you very much but could it be that the said Tomcat and Websphere servers are running on a different machine with a different OS? Just a thought...

Marco
 
Vinod Borole
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marco,

Thank you for responding to my post. I really appreciate that.

More details, both the machines that run Tomcat and Webspher have same O.S which is WindowXP.

Later after posting this problem i tried to check how many bytes that HttpClient is trying to write out of 2GB file on the request, i can see that it writes some number of bytes and throws the following exception, one good thing i noticed over here is that it does the same thing 3 times - (It is something like it gives 3 tries to write bytes on request, everytime it errors out) But unfortunately on every try it throws same exception.


Can any one give me any suggestion as to how i can fix this problem?
 
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic