• 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

Error 500 While writing on the Servlet Response

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
We are develpoing a application which reads XML data from one server by using http connection and then writes the XML data to HttpServletResponse.
But the problem our XML data is huge so sometimes if data goes over1 MB then it writes only part of the data on to the HttpServletResponse and then it prints Error:500 with the data on the HttpServletResponse.
I have tried changing the buffer size by response.setBufferSize() .It works only if i give it a value exactly equals to the length of the data and this value is very large .Also everytime i can't calculate the length of the data before writing so this is not very feasible solution for me.
Please help if you have any idea???
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the code that you're using to stream the data to the client?
reply
    Bookmark Topic Watch Topic
  • New Topic