1 Reply Latest reply on Aug 1, 2009 1:55 AM by yahawari

    NPE and pages.xml

    asookazian

      I am getting JBoss Seam debug page for a NPE.


      This is the catchall exception config in pages.xml:


       <exception>
              <redirect view-id="/error.xhtml">
                  <message>Unexpected error, please try again</message>
              </redirect>
          </exception>



      will that not catch and redirect a NPE (or any other Runtime Exception) to error.xhtml?


      or do I have to turn off debug below in components.xml?


      <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>

        • 1. Re: NPE and pages.xml
          yahawari

          when facelets is in the debug mode it will catch this exception first. i think if u do this


           <context-param>
                <param-name>facelets.DEVELOPMENT</param-name>
                <param-value>false</param-value>
             </context-param>
          



          you will get ur error page.