My servlet populates from a database.  I did modify it to stream the
workbook to the file system.  Then my servlet reads in the file, sets the
content length to the length of the file, and writes the file to the
outputstream back to the browser.

However, when it takes more than 60 seconds to start writing the stream back
to the browser, the browser never receives anything.  My servlet always
completes successfully (am tracing).

So, I wrote my own client with the following code:

URL url = new URL("http://myurlhere";);
HttpURLConnection uconn = (HttpURLConnection)url.openConnection();
uconn.setDoInput(true);
uconn.setFollowRedirects(true);
int responseCode = uconn.getResponseCode();  //Executes the servlet

I execute under a debugger and the uconn.getResponseCode() never returns.
Servlet completed.  The .xls file was created on the server.  It is a valid
.xls.

This is looking like a web server (sun java system web server 6.1) issue, or
setting somewhere.



-----Original Message-----
From: R S [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 12:20 PM
To: POI Users List
Subject: Re: Timeout?


Is your servlet populatiung the excel with data from a database or is
it non-dynamic data?

Instead of streaming the output to the browser, stream it to the file
system. If the file is created on the file system, then it could be a
fair indication that the problem lies elsewhere.

Thanks,
RAS

On Apr 4, 2005 12:00 PM, Thompson, Marshall
<[EMAIL PROTECTED]> wrote:
> I am using a servlet running under sun java system web server 6.1 and poi
to
> stream an excel to browser.  When my servlet takes longer than 60 seconds
-
> the browser never receives the excel, even though the servlet completes
> successfully.  Is there a timeout I need to manipulate somewhere?
> 
> Marshall Thompson
> ***Note:The information contained in this message may be privileged and
> confidential and protected from disclosure. If the reader of this message
is
> not the intended recipient, or an employee or agent responsible for
> delivering this message to the intended recipient, you are hereby notified
> that any dissemination, distribution or copying of this communication is
> strictly prohibited.  If you have received this communication in error,
> please notify the Sender immediately by replying to the message and
deleting
> it from your computer.  Thank you.  Premier Inc.
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
***Note:The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the Sender immediately by replying to the message and deleting
it from your computer.  Thank you.  Premier Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to