----------------------------------------
> Date: Wed, 8 Apr 2009 16:17:33 -0500
> From:
> To: [email protected]
> Subject: Re: [iText-questions] java.net.SocketException: Broken pipe failed
>
> Broken pipe, from my experience, can likely be a timeout with your web
> server. I would look at the config for your web server to see what the
> timeout is set at.
>
And get more memory too , and another CPU, etc...
Yes, you probably have a connection loss due to time but this really isn't the
solution any more than more memory will fix a memory leak.
If you task is not interactive you want a paradigm like they use for other
servers that take a while to respond to a query, bioinformatics servers come to
mind. The first thing anyone
wants to do with a servlet, once they realize it is a real program,
is turn it into something that lives forever. You see people try to keep
connections open for ever even in wireless environments where the problem
is worse. And for sure, persistents and pipelining have their uses
but not here.
You can return the user a cookie or status url or something similar
but connections get lost. You can't design anything based on assumptions
to the contrary, and hanging an "interactive" browser defeats the purpose.
> Krovvidy wrote:
>> Hi,
>>
>> We have a requirement to generate huge PDF reports around 3000-4000 pages
>> in the browser. We are trying to use iText. The code works fine locally even
>> though it takes quite a while. But in the integration environment it throws
>> a java.net.SocketException: Write failed: Broken pipe. And I also notice my
>> request is getting submitted twice. We use Internet Explorer as our
>> standard. I have tried all the options suggested in the book too. But I am
>> not having much luck. I am enclosing my code for my jsp, servlet and also of
>> the exceptions.
>>
>> To add more, the above code works perfectly fine for small reports around
>> 100 pages. But still the request gets submitted twice. I have implemented
>> all the work arounds suggested in the book. But without help.Can anyone
>> suggest?
>>
>> Integration+Exception.doc
>>
>> I would really appreciate anyone's help as I have to really get this done.
>>
>> ThanksGdsExportReportPDFServlet.java
>> http://www.nabble.com/file/p22959622/GdsExportReportPDFServlet.java
>> GdsExportReportPDFServlet.java
>> http://www.nabble.com/file/p22959622/Integration%2BException.doc
>> Integration+Exception.doc
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
_________________________________________________________________
Rediscover HotmailĀ®: Get e-mail storage that grows with you.
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php