• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts Upload & WebSphere : Premature end of stream while reading multipart request

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm using the Struts 1.0.2 : the WAR Upload example works fine on WSAD 4.0 (IBM WebSphere Studio Application Develloper) but when I try to run it on WAS 4.0 (IBM WebSphere Application Server - Advanced) I keep getting this I/O exception :

I've figured out that the the problem comes from Struts trying to write a temporary file on the server : MultipartIterator.createLocalFile(...). The thing is Struts apparently can write the beginning of the file in the temporary directory (I've checked if it was actually created) but looses the I/O Stream before the end. It never does this under WSAD and always does it under WAS.
Can someone help, this is urgent . Thanxs.
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
eye,
JavaRanch has a naming policy which is strictly enforced. Please read this policy and change your display name if you wish to continue posting here. Thanks.
 
Everybody's invited. Except this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic