aspose file tools*
The moose likes Other Open Source Projects and the fly likes OutputStream encountered error during write Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "OutputStream encountered error during write " Watch "OutputStream encountered error during write " New topic
Author

OutputStream encountered error during write

naga eswar
Ranch Hand

Joined: Jan 25, 2012
Posts: 120

Hi we are generating PDF file using FOP ad using the websphere 6.1

the generated PDF is in for byte bsPDF[]

Later setting in DVO as oNonHTMLDVO.setPdf(bsPDF);

Below is the code to open file,





I am geting below exception at line outStream.write(readBytes) .... cany body help me please

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

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18906
    
    8

Probably the user cancelled the request (by clicking on the "Stop" button or navigating to another page or closing the browser or something like that). This is normal behaviour.
naga eswar
Ranch Hand

Joined: Jan 25, 2012
Posts: 120
Thanks for your reply paul


Paul Clapham wrote:Probably the user cancelled the request (by clicking on the "Stop" button or navigating to another page or closing the browser or something like that). This is normal behaviour.


But here user means who. can you elaborate regarding this.
If it is normal behaviour. How can I resolve this. this problem i am facing from 5 days.... can you help me please...
naga eswar
Ranch Hand

Joined: Jan 25, 2012
Posts: 120
Excellent paul.... I observe that at the client side that we are closing the window usinf win close.
Now I am not facing that exception.

But still the file is not opening. Can any body help me please.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OutputStream encountered error during write