Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error 500 While writing on the Servlet Response  RSS feed

 
Apratim Khandalkar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • 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???
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the code that you're using to stream the data to the client?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!