You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Jon Smirl <jo...@mediaone.net> on 1999/12/20 20:20:05 UTC
mod_jserv/5498: Pages being returned are empty
>Number: 5498
>Category: mod_jserv
>Synopsis: Pages being returned are empty
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: jserv
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Dec 20 11:30:01 PST 1999
>Last-Modified:
>Originator: jonsmirl@mediaone.net
>Organization:
apache
>Release: 1.3.9 1.1b3
>Environment:
Win95, MS JVM
>Description:
I can watch my servlet write data into the output stream, but this data is not being flushed form JServ to Apache. Should out.close() in JServConnection.java be servlet_out.close() instead? Switch this fixes my problem.
> From JServConnection.java...
if (servlet_writer != null) {
servlet_writer.close();
}
out.close;
change to:
if (servlet_writer != null) {
servlet_writer.close();
} else
servlet_out.close();
Why is this loop needed in the JServOutputStream close function?
public void close() throws IOException {
int l;
do {
l = in.available();
in.skip(l);
} while (l > 0);
sendHttpHeaders();
out.close();
The page that is giving me trouble has data available on it.
Jon Smirl
jonsmirl@mediaone.net
>How-To-Repeat:
>Fix:
> From JServConnection.java...
if (servlet_writer != null) {
servlet_writer.close();
}
out.close;
change to:
if (servlet_writer != null) {
servlet_writer.close();
} else
servlet_out.close();
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]