You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2001/01/05 17:33:15 UTC

BugRat Report #706 has been filed.

Bug report #706 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/706>

REPORT #706 Details.

Project: Jasper
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: low
Severity: non-critical
Confidence: public
Environment: 
   Release: 3.2.b7
   JVM Release: Sun 1.3
   Operating System: Linux
   OS Release: Red Hat 6.2
   Platform: Tomcat

Synopsis: 
out.flush() call in jsp page.

Description:
In the generated final block of code of a jsp's java file, jasper does the following:

        } catch (Exception ex) {
            if (out.getBufferSize() != 0)
                out.clearBuffer();
            pageContext.handlePageException(ex);
        } finally {
            out.flush();
            _jspxFactory.releasePageContext(pageContext);
        }

This causes an issue if the jsp page is generating binary data. You get an exception thrown as you're not allowed to talk to the Writer if the OutputStream is being used.