Our rule of thumb around here is "if it works outside a web server, it's
not our problem".  Having said that, one of several kind souls might
jump in anyway.

So does it work when writing to a file?

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 

> -----Original Message-----
> From: kikiya [mailto:[email protected]] 
> Sent: Wednesday, October 06, 2010 7:03 AM
> To: [email protected]
> Subject: [iText-questions] Connection error While closing 
> itext document
> 
> 
> My understanding of connection reset by peer is that if the 
> user either navigates from the page, or hits the stop button, 
> or some other way explicitly stops listening to the server. 
> Well I'm getting the connection reset by peer error, even 
> though I am not doing anything in the browser other than 
> waiting for the file to generate. 
> 
> While trying to print a report, I am getting an error page 
> (500) and when checking the logs I see it saying,
> 10/10/05 10:07:04 com.evermind.server.http.HttpIOException: 
> Connection reset by peer
> 10/10/05 10:07:04     at
> com.evermind.server.http.EvermindServletOutputStream.write(Eve
> rmindServletOutputStream.java:210)
> 10/10/05 10:07:04     at
> java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
> 10/10/05 10:07:04     at 
> com.lowagie.text.pdf.OutputStreamCounter.write(Unknown
> Source)
> 10/10/05 10:07:04     at
> java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:112)
> 10/10/05 10:07:04     at
> com.lowagie.text.rtf.document.output.RtfMemoryCache.writeTo(Un
> known Source)
> 10/10/05 10:07:04     at
> com.lowagie.text.rtf.document.RtfDocument.writeDocument(Unknow
> n Source)
> 10/10/05 10:07:04     at 
> com.lowagie.text.rtf.RtfWriter2.close(Unknown Source)
> 10/10/05 10:07:04     at 
> com.lowagie.text.Document.close(Unknown Source)
> 
> The problem is happening when I try to close the document in my code. 
> 
> I thought it could be because the report is large, but larger 
> reports are printing without issue. Is there something else I 
> am missing here? Could I possibly need to increase the server 
> timeout size?
> --
> View this message in context: 
> http://itext-general.2136553.n4.nabble.com/Connection-error-Wh
ile-closing-itext-document-tp2965020p2965020.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
> --------------------------------------------------------------
> ----------------
> Beautiful is writing same markup. Internet Explorer 9 
> supports standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, 
> and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time 
> creating great experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Many questions posted to this list can (and will) be answered 
> with a reference to the iText book: 
> http://www.itextpdf.com/book/ Please check the keywords list 
> before you ask for examples: http://itextpdf.com/themes/keywords.php
> 
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.862 / Virus Database: 271.1.1/3170 - Release 
> Date: 10/05/10 11:34:00
> 

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to