1 2 Previous Next 21 Replies Latest reply on Feb 23, 2009 9:26 PM by Phil Wilson

    Session expired or Timeout

    Phil Wilson Apprentice

      Hi Guys,

      I have an issue with my app logging.

      It is running fine but when the users page expires it logs a error in catalina.out.

      I have my logging set to :
      log4j.rootLogger=error, R, dest1, dest2

      The app sends it to the proper error page and re-login prompt.
      I just don't want my logs full of timeout messages.

      This is the error msg.

      Feb 18, 2009 11:17:23 PM com.sun.faces.lifecycle.Phase doPhase
      SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /memberEmailReceived.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@1b1fd9c]
      2009-02-18 23:17:23,308 ERROR org.ajax4jsf.webapp.BaseXMLFilter org.ajax4jsf.webapp.BaseXMLFilter doXmlFilter - Exception in the filter chain
      javax.servlet.ServletException
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
       at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
       at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
       at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
       at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.NullPointerException
       at com.myApp.java.beansTable.EmailReceivedBeanTest.<init>(Unknown Source)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
       at java.lang.Class.newInstance0(Class.java:355)


        • 1. Re: Session expired or Timeout
          Phil Wilson Apprentice

          This is my logging property file too..

          handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

          ############################################################
          # Handler specific properties.
          # Describes specific configuration info for Handlers.
          # move to info was fine
          ############################################################
          # SEVERE, FINE, INFO

          org.apache.juli.FileHandler.level = SEVERE
          org.apache.juli.FileHandler.directory = ${catalina.base}/logs
          org.apache.juli.FileHandler.prefix = NetFixUpLogging.

          java.util.logging.ConsoleHandler.level = SEVERE
          java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

          • 2. Re: Session expired or Timeout
            Nick Belaevski Master

            Hello,

            The problem is NPE in your code and not VEE:

            Caused by: java.lang.NullPointerException
             at com.myApp.java.beansTable.EmailReceivedBeanTest.<init>(Unknown Source)
             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
             at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
            39)


            • 3. Re: Session expired or Timeout
              Phil Wilson Apprentice

              Thanks for your response...

              This only happens when the session timesout. It works fine during the regular session. That means I don't get a NPE when the session is active.

              "nbelaevski" wrote:
              Hello,

              The problem is NPE in your code and not VEE:
              Caused by: java.lang.NullPointerException
               at com.myApp.java.beansTable.EmailReceivedBeanTest.<init>(Unknown Source)
               at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
               at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
              39)


              • 4. Re: Session expired or Timeout
                Phil Wilson Apprentice

                This is the code that crashes...

                <h:form id="f2">
                <rich:dataGrid id="mailReceivedData" value="#{MailReceivedBeanTest.flirtsList}"
                var="mailReceivedData" columns="5" elements="20" >


                I know the bean is null when the session times out...but 2 questions...

                1. How do I test if it is null?

                2. If I test it and catch an exception...will this break the

                <%@ page errorPage="/error.jsp" %> that forwards it to the re-login page??

                it never hits this page so I am guessing I am missing something...

                from web.xml..
                
                <error-page>
                
                <error-code>500</error-code>
                <location>/error500.jsp</location>
                
                <error-code>404</error-code>
                <location>/error500.jsp</location>
                
                <error-code>400</error-code>
                <location>/error500.jsp</location>
                
                <error-code>403</error-code>
                <location>/error500.jsp</location>
                
                </error-page>
                
                
                <error-page>
                 <exception-type>javax.faces.application.ViewExpiredException</exception-type>
                 <location>/errorTimeOut.jsp</location>
                </error-page>
                
                <error-page>
                 <exception-type>java.lang.Exception</exception-type>
                 <location>/errorTimeOut.jsp</location>
                </error-page>
                
                
                
                
                <!-- 2. Context Parameters -->
                
                
                 <context-param>
                 <param-name>saveStateInClient</param-name>
                 <param-value>false</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>javax.faces.CONFIG_FILES</param-name>
                 <param-value>/WEB-INF/faces-config.xml</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                 <param-value>.jsp</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                 <param-value>server</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>com.sun.faces.validateXml</param-name>
                 <param-value>true</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>com.sun.faces.verifyObjects</param-name>
                 <param-value>false</param-value>
                 </context-param>
                


                • 5. Re: Session expired or Timeout
                  Nick Belaevski Master

                  I see exception is happening in the constructor of your bean and not in the JSF, so there's no sense in checking whether bean is null.

                  • 6. Re: Session expired or Timeout
                    Phil Wilson Apprentice

                     

                    "nbelaevski" wrote:
                    I see exception is happening in the constructor of your bean and not in the JSF, so there's no sense in checking whether bean is null.


                    Ok thanks...but you still have not answered my question about how this works when the session is active and logs error when session times out.


                    Phil

                    • 7. Re: Session expired or Timeout
                      Nick Belaevski Master

                      So if you're catching exceptions why should server react with error page?

                      BTW, Sun JSF uses java.util.Logger. Is it affected by Log4J configuration you use?

                      • 8. Re: Session expired or Timeout
                        Phil Wilson Apprentice

                        Ok...

                        Back to my orginal question...

                        <h:form id="f2">
                        <rich:dataGrid id="mailReceivedData" value="#{MailReceivedBeanTest.mailList}"
                        var="mailReceivedData" columns="5" elements="20" >


                        This code tosses an error...when session times out...

                        how do I catch it.?? This is a jsp page not a java page...

                        I have system.out in bean and it does not hit that when session times out.

                        Phil


                        • 9. Re: Session expired or Timeout
                          Nick Belaevski Master

                          Configure error-page to handle javax.faces.application.ViewExpiredException.

                          • 10. Re: Session expired or Timeout
                            Phil Wilson Apprentice

                             

                            "nbelaevski" wrote:
                            Configure error-page to handle javax.faces.application.ViewExpiredException.


                            Thanks for the reply..

                            In my web.xml I have ..
                            <error-page>
                             <exception type>javax.faces.application.ViewExpiredException</exception-type>
                             <location>/errorTimeOut.jsp</location>
                            </error-page>



                            It does not seem to hit this ....

                            Phil


                            • 11. Re: Session expired or Timeout
                              Phil Wilson Apprentice

                               

                              "nbelaevski" wrote:
                              Configure error-page to handle javax.faces.application.ViewExpiredException.


                              Thanks for the reply..

                              In my web.xml I have ..
                              <error-page>
                               <exception type>javax.faces.application.ViewExpiredException</exception-type>
                               <location>/errorTimeOut.jsp</location>
                              </error-page>



                              It does not seem to hit this ....

                              Phil

                              • 12. Re: Session expired or Timeout
                                Phil Wilson Apprentice

                                Ok...

                                I had this in my header.jsp..

                                <%@ page errorPage="/error.jsp" %>


                                I took it out and now I get a lot more on the error log.
                                
                                Feb 22, 2009 4:43:49 PM org.apache.jk.common.ChannelSocket init
                                INFO: JK: ajp13 listening on /0.0.0.0:11009
                                Feb 22, 2009 4:43:49 PM org.apache.jk.server.JkMain start
                                INFO: Jk running ID=0 time=0/28 config=null
                                Feb 22, 2009 4:43:49 PM org.apache.catalina.startup.Catalina start
                                INFO: Server startup in 6207 ms
                                Feb 22, 2009 4:46:53 PM org.apache.catalina.core.ApplicationDispatcher invoke
                                SEVERE: Servlet.service() for servlet jsp threw exception
                                java.lang.NullPointerException
                                 at com.myAppName.java.photoBean.returnImageNamesBean.<init>(Unknown Source)
                                 at org.apache.jsp.welcome_jsp._jspService(welcome_jsp.java:196)
                                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
                                 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
                                 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
                                 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
                                 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
                                 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
                                 at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
                                 at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
                                 at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
                                 at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                                 at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
                                 at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                                 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:191)
                                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                                 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
                                 at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
                                 at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
                                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
                                 at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                                 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
                                 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
                                 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
                                 at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
                                 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                                 at java.lang.Thread.run(Thread.java:619)
                                Feb 22, 2009 4:46:53 PM com.sun.faces.lifecycle.Phase doPhase
                                SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /welcome.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@ef9525]
                                2009-02-22 16:46:53,029 ERROR org.ajax4jsf.webapp.BaseXMLFilter org.ajax4jsf.webapp.BaseXMLFilter doXmlFilter - Exception in the filter chain
                                org.apache.jasper.JasperException: An exception occurred processing JSP page /welcome.jsp at line 8
                                
                                5: String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
                                6: %>
                                7:
                                8: <jsp:useBean id="returnImageNamesBean" class="com.myAppName.java.photoBean.returnImageNamesBean" scope="request" />
                                9:
                                10: <html>
                                11:
                                
                                Stacktrace:
                                 at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
                                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
                                 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
                                 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav a:290)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
                                 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:43 6)
                                 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
                                 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
                                 at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
                                 at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
                                 at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
                                 at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                                 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:191)
                                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                                 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav a:290)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
                                 at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
                                 at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
                                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav a:235)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
                                 at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                                 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
                                 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
                                 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
                                 at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
                                 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                                 at java.lang.Thread.run(Thread.java:619)
                                Caused by: java.lang.NullPointerException
                                 at com.myAppName.java.photoBean.returnImageNamesBean.<init>(Unknown Source)
                                 at org.apache.jsp.welcome_jsp._jspService(welcome_jsp.java:196)
                                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
                                 ... 39 more
                                Feb 22, 2009 4:46:53 PM org.apache.catalina.core.StandardWrapperValve invoke
                                SEVERE: Servlet.service() for servlet Faces Servlet threw exception
                                java.lang.NullPointerException
                                 at com.myAppName.java.photoBean.returnImageNamesBean.<init>(Unknown Source)
                                 at org.apache.jsp.welcome_jsp._jspService(welcome_jsp.java:196)
                                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
                                 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
                                 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav a:290)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
                                 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:43 6)
                                 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
                                 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
                                 at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
                                 at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
                                 at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
                                 at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                                 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:191)
                                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                                 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav a:290)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
                                 at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
                                 at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
                                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav a:235)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
                                 at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                                 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
                                 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
                                 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
                                 at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
                                 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                                 at java.lang.Thread.run(Thread.java:619)
                                Feb 22, 2009 4:46:53 PM org.apache.catalina.core.ApplicationDispatcher invoke
                                SEVERE: Servlet.service() for servlet jsp threw exception
                                java.lang.RuntimeException: Cannot find FacesContext
                                 at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java :1855)
                                 at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
                                 at org.apache.jsp.errorTimeOut_jsp._jspService(errorTimeOut_jsp.java:94)
                                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
                                 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
                                 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav a:290)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
                                 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:43 8)
                                 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
                                 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
                                 at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)
                                 at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:271)
                                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
                                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
                                 at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                                 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
                                 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
                                 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
                                 at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
                                 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                                 at java.lang.Thread.run(Thread.java:619)
                                Feb 22, 2009 4:46:53 PM org.apache.catalina.core.StandardHostValve custom
                                SEVERE: Exception Processing ErrorPage[exceptionType=java.lang.Exception, location=/errorTimeOut.jsp]
                                org.apache.jasper.JasperException: An exception occurred processing JSP page /errorTimeOut.jsp at line 16
                                
                                13: <html>
                                14: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
                                15: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
                                16: <f:view>
                                17: <f:loadBundle basename="loadNet" var="myAppNameBundle"/>
                                18:
                                19: <HEAD>
                                
                                
                                Stacktrace:
                                 at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
                                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
                                 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
                                 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav a:290)
                                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
                                 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:43 8)
                                 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
                                 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
                                 at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)
                                 at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:271)
                                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
                                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
                                 at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                                 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
                                 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
                                 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
                                 at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
                                 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                                 at java.lang.Thread.run(Thread.java:619)
                                Caused by: java.lang.RuntimeException: Cannot find FacesContext
                                 at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java :1855)
                                 at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
                                 at org.apache.jsp.errorTimeOut_jsp._jspService(errorTimeOut_jsp.java:94)
                                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
                                 ... 22 more
                                ^[:q!^C
                                tomcat2:/opt/apache-tomcat-6.0.18/logs# vi catalina.out
                                 at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
                                 at org.apache.jsp.errorTimeOut_jsp._jspService(errorTimeOut_jsp.java:94)
                                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
                                 ... 22 more



                                • 13. Re: Session expired or Timeout --- It works...
                                  Phil Wilson Apprentice

                                  I had an error in my errorTimeOut.jsp

                                  org.apache.jasper.JasperException: An exception occurred processing JSP page /errorTimeOut.jsp at li



                                  I looks like
                                  <%@ page errorPage="/error.jsp" %>


                                  on the jsp page was stopping it from getting to my web.xml processing.


                                  I fixed that and now it works...no more errors in my logs...

                                  Thanks for your help.

                                  Phil


                                  Phil


                                  • 14. Re: Session expired or Timeout
                                    Phil Wilson Apprentice


                                    PostPosted: Sun Feb 22, 2009 17:11 PM Post subject: Re: Session expired or Timeout --- It works... Reply with quote
                                    I had an error in my errorTimeOut.jsp

                                    Code:

                                    org.apache.jasper.JasperException: An exception occurred processing JSP page /errorTimeOut.jsp at li




                                    It looks like
                                    Code:

                                    <%@ page errorPage="/error.jsp" %>



                                    on the jsp page was stopping it from getting to my web.xml processing.


                                    I fixed that and now it works...no more errors in my logs...

                                    Thanks for your help.

                                    Phil

                                    1 2 Previous Next