Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in ServletOutputStream

 
naga eswar
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am facing problem while writing byte data into ServletOutputStream.
The senerio is we are generating a PDF file by using FOP as below,




_strXslData is String which contians XSL program
_strXmlData is String which contains XML code as below



Later we are adding images to pdf with below code

 
naga eswar
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Later the mergedPdfsb(the genearated PDF), we are setting in DVO oNonHTMLDVO.setPdf();

Now in the below code we are facing the problem....




So at the outStream.write(readBytes); line while writing the bytes into ServletOutputStream, we are getting the exception

com.ibm.wsspi.webcontainer.ClosedConnectionException: OutputStream encountered error during write

Can any body help us please.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic