• 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: OutputStream already obtained

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic