Results 1 to 2 of 2
  1. #1
    Join Date
    May 2007
    Posts
    139

    Unanswered: ModelFacade / Java / MySQL / localhost / get error: list table rows

    ModelFacade / Java / MySQL / localhost / get error: list table rows

    you may find the complete JAVA EE App I refer at:
    Cengage Learning -Dynamic Web Application Development
    Examples:Chapter 12: 12-3 folder [database in 12-1]

    I am currently debugging...

    Q:sometimes I getting errors, with some code lines[not numbers] themselfs appear on error, and sometimes without... who confg this?

    ERROR Getting:

    Code:
    type Exception report
    
    message 
    
    description The server encountered an internal error () that prevented it from fulfilling this request.
    
    exception 
    
    org.apache.jasper.JasperException: javax.el.ELException: Error reading 'claims' on type com.webhomecover.beans.ClaimCollection
    	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    
    
    root cause 
    
    javax.el.ELException: Error reading 'claims' on type com.webhomecover.beans.ClaimCollection
    	javax.el.BeanELResolver.getValue(BeanELResolver.java:66)
    	javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
    	org.apache.el.parser.AstValue.getValue(AstValue.java:118)
    	org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
    	org.apache.jasper****ntime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:925)
    	org.apache.jsp.listclaims_jsp._jspx_meth_c_005fforEach_005f0(listclaims_jsp.java:125)
    	org.apache.jsp.listclaims_jsp._jspService(listclaims_jsp.java:99)
    	org.apache.jasper****ntime.HttpJspBase.service(HttpJspBase.java:70)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    
    
    root cause 
    
    java.lang.NullPointerException
    	com.webhomecover.dao.ClaimDAO.readClaims(Unknown Source)
    	com.webhomecover.model.ModelFacade.getClaims(Unknown Source)
    	com.webhomecover.beans.ClaimCollection.getClaims(Unknown Source)
    	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	java.lang.reflect.Method.invoke(Method.java:597)
    	javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
    	javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
    	org.apache.el.parser.AstValue.getValue(AstValue.java:118)
    	org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
    	org.apache.jasper****ntime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:925)
    	org.apache.jsp.listclaims_jsp._jspx_meth_c_005fforEach_005f0(listclaims_jsp.java:125)
    	org.apache.jsp.listclaims_jsp._jspService(listclaims_jsp.java:99)
    	org.apache.jasper****ntime.HttpJspBase.service(HttpJspBase.java:70)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    
    
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

  2. #2
    Join Date
    May 2007
    Posts
    139
    import javax.naming.*;
    in ClaimDAO.java needs include any in classbath ? during compile/run...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •