Interesting.  The AbstractMethodError is apparently coming from a call to
the ResultSetMetaData object associated with your JDBC driver.  The
underlying issue may result from either a bug or a version incompatibility
in the driver.  But this issue raises a question of how JSTL should handle
errors like this.  (I'll raise a related issue to the spec lead.)

Shawn

On Mon, 18 Mar 2002, Brett Morgan wrote:

> I'm trying to get the following code to work, but I keep getting a 
>java.lang.AbstractMethodError exception.  I've tested the connection in the scriptlet 
>and it works.  As soon as I add the sql tag the Exception is thrown.  I've also 
>included the stack trace.
> 
> <%@ page import="javax.naming.*,javax.sql.*" %>
> <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> <%
> Context initCtx = new InitialContext();
> Context envCtx = (Context) initCtx.lookup("java:comp/env");
> DataSource ds = (DataSource)envCtx.lookup("jdbc/Intranet");
> pageContext.setAttribute("db",ds);
> %>
> 
> <sql:query var="project" dataSource="${db}">
>     SELECT *
>     FROM user_task_project
> </sql:query>
> 
> 
> type Exception
> reportmessage Internal Server Error
> description The server encountered an internal error (Internal Server Error) that 
>prevented it from fulfilling this request.
> exception
> javax.servlet.ServletException
>  at 
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
>  at 
>org.apache.jsp.timesheet_0005fsummary$jsp._jspService(timesheet_0005fsummary$jsp.java:120)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
>  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>  at 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>  at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
>  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
>  at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
>  at java.lang.Thread.run(Thread.java:484)
> 
> root cause
> 
> java.lang.AbstractMethodError
>  at 
>javax.servlet.jsp.jstl.sql.ResultImpl$ResultMetaDataUtil.getMetaDataCache(ResultImpl.java:382)
>  at javax.servlet.jsp.jstl.sql.ResultImpl$ResultMetaDataUtil.(ResultImpl.java:209)
>  at javax.servlet.jsp.jstl.sql.ResultImpl.(ResultImpl.java:92)
>  at 
>org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doEndTag(QueryTagSupport.java:234)
>  at 
>org.apache.jsp.timesheet_0005fsummary$jsp._jspService(timesheet_0005fsummary$jsp.java:103)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
>  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>  at 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>  at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
>  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
>  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
>  at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
>  at java.lang.Thread.run(Thread.java:484)
> 
> _________________________________________________________
> 
>         p l u m b d e s i g n
> 
>         brett morgan | director of technology
>         157 chambers st ny ny 10007
>         p. 212 285 8600 x352 f. 212 285 8999
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to