Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error 500: OutputStream already obtained

 
Inna Rays
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Error 500: OutputStream already obtained" is happenning after websphere application using tiles and struts is calling a class to create an excel sheet with a null return after flushing the output. What should be done to avoid this error appearing in the Microsoft Excell document where the output is written?

FastExcelCSVPrinter fecp =
new FastExcelCSVPrinter(response.getOutputStream());
if (export(l, fecp))
{
fecp.flush();return null; //return null on success.
}
[ March 16, 2006: Message edited by: Inna Rays ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What this error indicates is that at some point prior to this call, another process has already written to the output steam, and this isn't allowed.

You have to make this call before any other process has a chance to attempt to write to the output stream. One thing you may want to check is that the call to this action should not be part of a tile definition.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic