[
http://jira.jboss.com/jira/browse/JBSEAM-2762?page=all ]
ja my last name updated JBSEAM-2762:
------------------------------------
Description:
NPE occurs in Pages.java line 686 (Contexts.getPageContext() returns null).
My config:
<page view-id="*">
<param name="tnetBackUrl" />
...
</page>
<exception class="java.lang.Exception">
<redirect view-id="/error.xhtml">
<message>Error has occured, please contact
administrator</message>
</redirect>
</exception>
NPE occurs with such config during postback if uncatched exception was thrown during
INVOKE_APPLICATION phase. As a result HTTP 500 is returned.
If normal "get" using s:link is calling the same action which throws the same
exception, there is no problem.
problem seems to disapear if following is used instead:
<page view-id="*">
<param name="tnetBackUrl"
value="#{redirectManager.backUrl}"/>
...
</page>
where redirectManager is event scoped pojo.
was:
NPE occurs in Pages.java line 686 (Contexts.getPageContext() returns null).
My config:
<page view-id="*">
<param name="tnetBackUrl" />
...
</page>
<exception class="java.lang.Exception">
<redirect view-id="/error.xhtml">
<message>Error has occured, please contact
administrator</message>
</redirect>
</exception>
NPE occurs with such config during postback if uncatched exception was thrown during
INVOKE_APPLICATION phase. As a result HTTP 500 is returned.
problem seems to disapear if following is used instead:
<page view-id="*">
<param name="tnetBackUrl"
value="#{redirectManager.backUrl}"/>
...
</page>
where redirectManager is event scoped pojo.
PageContext is null after exception recovery in some cases - causes
HTTP 500
----------------------------------------------------------------------------
Key: JBSEAM-2762
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2762
Project: JBoss Seam
Issue Type: Bug
Components: Exception Handling
Affects Versions: 2.0.1.GA
Environment: jboss4.2.2
Reporter: ja my last name
NPE occurs in Pages.java line 686 (Contexts.getPageContext() returns null).
My config:
<page view-id="*">
<param name="tnetBackUrl" />
...
</page>
<exception class="java.lang.Exception">
<redirect view-id="/error.xhtml">
<message>Error has occured, please contact
administrator</message>
</redirect>
</exception>
NPE occurs with such config during postback if uncatched exception was thrown during
INVOKE_APPLICATION phase. As a result HTTP 500 is returned.
If normal "get" using s:link is calling the same action which throws the same
exception, there is no problem.
problem seems to disapear if following is used instead:
<page view-id="*">
<param name="tnetBackUrl"
value="#{redirectManager.backUrl}"/>
...
</page>
where redirectManager is event scoped pojo.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira