title: org.apache.jasper.JasperException
body: <p>when i open first time website
  its show error like this </p>
  
  <pre><code>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
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
      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.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:130)
      org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:107)
      org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:78)
      org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:383)
  
  root cause
  
  java.lang.NullPointerException
      org.apache.jsp.index_jsp._jspService(index_jsp.java:73)
      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)
      org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:130)
      org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:107)
      org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:78)
      org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:383)
  
  note The full stack trace of the root cause is available in the Apache Tomcat/5.5.28 logs.
  </code></pre>
  
  <p>but if i refresh then site will open perfectly but if u leave idle sometime then if u open next then also same error after that if u refresh then site open perfect
    this is the problem, its applying in entire application in any page.</p>