9 Replies Latest reply on Jul 26, 2009 8:23 PM by Ingo Jobling

    Why I am getting Redirect loop error?

    Hussein Baghdadi Novice

      Hey,


      I'm trying to port a seam-gen generated war application to run on Tomcat 6.0.18


      I created context.xml and put it under META-INF



      <Context path="/SMSBulkSend" docBase="SMSBulkSend"
              debug="5" reloadable="true" crossContext="true">
        <Resource name="jdbc/SmsBulkSendDS" auth="Container" type="javax.sql.DataSource"
                     maxActive="100" maxIdle="30" maxWait="10000"
                     username="smsbulk_user" password="pass" driverClassName="com.mysql.jdbc.Driver"
                     url="jdbc:mysql://domain/appdb?characterEncoding=utf-8"/> 
      </Context>



      The application deployed successfully, but upon requesting the application, I got this from FireFox



      Redirect Loop   
      
      Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
      
      The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.
      
          * Have you disabled or blocked cookies required by this site?
          * NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.



      And the URL become: My Link


      Seam 2.1.2
      Ubuntu 9.04
      Tomcat 6.0.18
      JDK 6 u13


      Thanks for help.

        • 1. Re: Why I am getting Redirect loop error?
          João Bosco Monteiro Newbie

          Hi,


          I am having same problem here. However, I'm using Seam 2.0.2SP1 and JBoss AS 4.2.3. My application has been up for 3 months and now this problem begins


          What should I look for?

          • 2. Re: Why I am getting Redirect loop error?
            Hussein Baghdadi Novice

            I don't know, I still have the problem

            • 3. Re: Why I am getting Redirect loop error?
              Stuart Douglas Master

              You are going to have to post more than that, I'd start with a stack trace and any relevant classes mentioned in the stack trace. Also posting a link to localhost is not particularly helpful.

              • 4. Re: Why I am getting Redirect loop error?
                João Bosco Monteiro Newbie

                In my case, there is no stack trace and the application apparently starts successfully.

                • 6. Re: Why I am getting Redirect loop error?
                  Hussein Baghdadi Novice

                  I reacreated the application again, Here is the exception:



                  SEVERE: swallowing exception
                  java.lang.RuntimeException: exception invoking: getTransaction
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
                       at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
                       at org.jboss.seam.Component.unwrap(Component.java:2275)
                       at org.jboss.seam.Component.getInstance(Component.java:2041)
                       at org.jboss.seam.Component.getInstance(Component.java:2000)
                       at org.jboss.seam.Component.getInstance(Component.java:1994)
                       at org.jboss.seam.Component.getInstance(Component.java:1967)
                       at org.jboss.seam.Component.getInstance(Component.java:1962)
                       at org.jboss.seam.transaction.Transaction.instance(Transaction.java:39)
                       at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:321)
                       at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:144)
                       at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:118)
                       at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
                       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
                       at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)
                       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                       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.coyote.http11.Http11Processor.process(Http11Processor.java:845)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                       at java.lang.Thread.run(Thread.java:619)
                  Caused by: javax.naming.NamingException: Cannot create resource instance
                       at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:113)
                       at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
                       at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
                       at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
                       at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
                       at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
                       at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
                       at javax.naming.InitialContext.lookup(InitialContext.java:392)
                       at org.jboss.seam.transaction.Transaction.getUserTransaction(Transaction.java:82)
                       at org.jboss.seam.transaction.Transaction.createUTTransaction(Transaction.java:74)
                       at org.jboss.seam.transaction.Transaction.getTransaction(Transaction.java:47)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:597)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
                       ... 47 more
                  Jul 26, 2009 10:10:54 AM org.jboss.seam.jsf.SeamPhaseListener afterPhase
                  WARNING: uncaught exception, passing to exception handler
                  java.lang.IllegalStateException: Could not commit transaction
                       at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:625)
                       at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:604)
                       at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:345)
                       at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:245)
                       at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:196)
                       at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
                       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
                       at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)
                       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                       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.coyote.http11.Http11Processor.process(Http11Processor.java:845)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                       at java.lang.Thread.run(Thread.java:619)
                  Caused by: java.lang.RuntimeException: exception invoking: getTransaction
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
                       at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
                       at org.jboss.seam.Component.unwrap(Component.java:2275)
                       at org.jboss.seam.Component.getInstance(Component.java:2041)
                       at org.jboss.seam.Component.getInstance(Component.java:2000)
                       at org.jboss.seam.Component.getInstance(Component.java:1994)
                       at org.jboss.seam.Component.getInstance(Component.java:1967)
                       at org.jboss.seam.Component.getInstance(Component.java:1962)
                       at org.jboss.seam.transaction.Transaction.instance(Transaction.java:39)
                       at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:610)
                       ... 40 more
                  Caused by: javax.naming.NamingException: Cannot create resource instance
                       at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:113)
                       at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
                       at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
                       at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
                       at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
                       at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
                       at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
                       at javax.naming.InitialContext.lookup(InitialContext.java:392)
                       at org.jboss.seam.transaction.Transaction.getUserTransaction(Transaction.java:82)
                       at org.jboss.seam.transaction.Transaction.createUTTransaction(Transaction.java:74)
                       at org.jboss.seam.transaction.Transaction.getTransaction(Transaction.java:47)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:597)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
                       ... 49 more
                  Jul 26, 2009 10:10:54 AM org.jboss.seam.exception.Exceptions handle
                  SEVERE: handled and logged exception
                  java.lang.IllegalStateException: Could not commit transaction
                       at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:625)
                       at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:604)
                       at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:345)
                       at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:245)
                       at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:196)
                       at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
                       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
                       at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)
                       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                       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.coyote.http11.Http11Processor.process(Http11Processor.java:845)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                       at java.lang.Thread.run(Thread.java:619)



                  • 7. Re: Why I am getting Redirect loop error?
                    Hussein Baghdadi Novice

                    Here are the configuration:
                    persistence.xml


                       <persistence-unit name="SmsBulkSend" transaction-type="RESOURCE_LOCAL">
                          <provider>org.hibernate.ejb.HibernatePersistence</provider>
                          <jta-data-source>java:comp/env/jdbc/SmsBulkSendDS</jta-data-source>
                          <properties>
                             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
                             <property name="hibernate.hbm2ddl.auto" value="validate"/>
                             <property name="hibernate.jdbc.batch_size" value="20"/>
                             <property name="hibernate.transaction.manager_lookup_class" value="@transactionManagerLookupClass@"/>
                          </properties>
                       </persistence-unit>



                    context.xml


                    <Context path="/SMSBulkSend" docBase="SMSBulkSend"
                            debug="5" reloadable="true" crossContext="true">
                    
                      <Resource name="jdbc/SmsBulkSendDS" auth="Container" type="javax.sql.DataSource"
                                   maxActive="100" maxIdle="30" maxWait="10000"
                                   username="theuser" password="thepass" driverClassName="com.mysql.jdbc.Driver"
                                   url="jdbc:mysql://domain/smsbulksend?characterEncoding=utf-8"/>
                     
                    </Context>



                    components.xml


                       <core:manager concurrent-request-timeout="500"
                                     conversation-timeout="120000"
                                     conversation-id-parameter="cid"
                                     parent-conversation-id-parameter="pid"/>
                       <web:hot-deploy-filter url-pattern="*.seam"/>
                       <persistence:entity-manager-factory name="entityManagerFactory"
                                          persistence-unit-name="SmsBulkSend" />
                       <persistence:managed-persistence-context name="entityManager" auto-create="true"
                                              entity-manager-factory="#{entityManagerFactory}"/>
                       <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
                       <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>



                    A snippet from web.xml



                       <persistence-unit-ref>
                          <persistence-unit-ref-name>SmsBulkSend/pu</persistence-unit-ref-name>
                          <persistence-unit-name>SmsBulkSend</persistence-unit-name>
                       </persistence-unit-ref>

                    • 8. Re: Why I am getting Redirect loop error?
                      Hussein Baghdadi Novice

                      I solved the previous exception, I have misnamed some variables in persistence and components file.


                      But now, I'm getting this exception:



                      SEVERE: handled and logged exception
                      java.lang.NullPointerException: Argument Error: Parameter message is null
                           at com.sun.faces.util.Util.notNull(Util.java:241)
                           at com.sun.faces.context.FacesContextImpl.addMessage(FacesContextImpl.java:322)
                           at org.jboss.seam.faces.FacesMessages.beforeRenderResponse(FacesMessages.java:46)
                           at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:484)
                           at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:148)
                           at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:118)
                           at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
                           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
                           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.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                           at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                           at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
                           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                           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.coyote.http11.Http11Processor.process(Http11Processor.java:845)
                           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                           at java.lang.Thread.run(Thread.java:619)




                      • 9. Re: Why I am getting Redirect loop error?
                        Ingo Jobling Master

                        Hello,


                        java.lang.NullPointerException: Argument Error: Parameter message is null
                             at com.sun.faces.util.Util.notNull(Util.java:241)
                             at com.sun.faces.context.FacesContextImpl.addMessage(FacesContextImpl.java:322)
                        



                        This is not the original exception, rather, it indicates that the message cannot be displayed.


                        Try scrolling back in the log to try to find the original cause.


                        Also, removing any <exception> entries in your pages.xml file might help in tracking down the original exception.