Bug 8123

Summary: If an invalid attribute value is provided to startRow of the <sql:query> action, a ClassCastException is thrown with what appears to be a JspException as the root cause.
Product: Taglibs Reporter: Ryan Lubke <Ryan.Lubke>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: major CC: Lance.Andersen
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Ryan Lubke 2002-04-15 19:29:28 UTC
Given:

  <sql:query var="resultSet" 
            dataSource="${applicationScope.jstlDS}" 
            startRow="invalid" >
     <c:out value="${sqlProps.Select_Jstl_Tab1_By_Id_Query}" />
  </sql:query>

Result:

java.lang.ClassCastException: javax.servlet.jsp.JspException
	at
org.apache.taglibs.standard.tag.el.sql.QueryTag.evaluateExpressions(QueryTag.java:143)
	at org.apache.taglibs.standard.tag.el.sql.QueryTag.doStartTag(QueryTag.java:121)

According to the spec, this should be a JspException with the original exception
set as the root cause.
Comment 1 Justyna Horwat 2002-04-16 00:38:47 UTC
Fixed in same commit as 8126. (Forgot to mention Bugzilla 8123 in the commit 
message)