1 Reply Latest reply: Dec 7, 2009 12:54 AM by 843807 RSS

    exception in error page in jsp

    843807
      HTTP Status 500 -

      --------------------------------------------------------------------------------

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      org.apache.jasper.JasperException: Unable to compile class for JSP:

      An error occurred at line: 6 in the jsp file: /WEB-INF/error.jsp
      exception cannot be resolved
      3:      <title> Error in Processing UserDetails</title>
      4:      </head>
      5:
      6:      <body>Following Error is reported in Previous page <b><i><%= exception %></i></b> at hte follwong place:<br><br>
      7:
      8:      <pre>
      9:      <%@ page import="java.io.*" %>


      An error occurred at line: 10 in the jsp file: /WEB-INF/error.jsp
      exception cannot be resolved
      7:
      8:      <pre>
      9:      <%@ page import="java.io.*" %>
      10:      <% exception.printStackTrace(new PrintWriter(out)); %>
      11:      </pre>
      12:      </body>
      13: </html>


      Stacktrace:
           org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
           org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
           org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
           org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
           org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686)
           org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:656)
           org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:801)
           org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
           org.apache.jsp.UserDetails.newRowUp_jsp._jspService(newRowUp_jsp.java:133)
           org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


      note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.


      --------------------------------------------------------------------------------
      my code is :
      <html>
           <head>
           <title> Error in Processing UserDetails</title>
           </head>
      
           <body>Following Error is reported in Previous page <b><i><%= exception %></i></b> at hte follwong place:<br><br>
      
           <pre>
           <%@ page import="java.io.*" %>
           <% exception.printStackTrace(new PrintWriter(out)); %>
           </pre>
           </body>
      </html>
      and i called the errorPage in other jsp pages...