tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <>
Subject Bug in runtime/
Date Thu, 17 May 2001 09:09:47 GMT

Excuse the cross post to User/Dev but this problem has been reported by
others in user.

Further to yesterday's message re jasper/tomcat exceptions, it seems
that there is either a bug in the coed generation or the
JspFactoryImpl.  If the generated code gets an exception pageContext is
never set so in the finally clause the releasePageContext will be passed

Seems to me the releasePageContext should either check for null or the
generated code should check for null.  In the generated number guess
code from the examples there is

        } catch (Exception ex) {
            if (out != null && out.getBufferSize() != 0)
            if (pageContext != null)
        } finally {
            if (out != null) out.flush();
            if (_jspxFactory != null)
the exception checks for null but not the finally.

Who might be the best person to decide where the fix should go??

This causes big problems if security is turned on because any access
control failure makes this problem occur.

Antony Bowesman
Teamware Group
tel: +358 9 5128 2562
fax: +358 9 5128 2705

View raw message