[
https://issues.jboss.org/browse/JBSEAM-5080?page=com.atlassian.jira.plugi...
]
Marek Novotny resolved JBSEAM-5080.
-----------------------------------
Resolution: Done
Seam2.3 NPE in Interpolator.interpolate if pages.xml exception
http-error no message set
----------------------------------------------------------------------------------------
Key: JBSEAM-5080
URL:
https://issues.jboss.org/browse/JBSEAM-5080
Project: Seam 2
Issue Type: Bug
Affects Versions: 2.3.0.Final
Reporter: Marek Schmidt
Assignee: Marek Novotny
Fix For: 2.3.1.CR1
Having a exception handler with no message, e.g.
<exception
class="org.jboss.seam.example.tasks.ResourceNotFoundException"
log-level="debug">
<http-error error-code="404"/>
</exception>
in pages.xml
will cause an HTTP error 500 instead with a NPE exception:
java.lang.NullPointerException
org.jboss.seam.core.Interpolator.interpolate(Interpolator.java:64)
org.jboss.seam.faces.Navigator.getDisplayMessage(Navigator.java:87)
org.jboss.seam.exception.ErrorHandler.handle(ErrorHandler.java:27)
org.jboss.seam.exception.Exceptions.handle(Exceptions.java:76)
org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:114)
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
Actual results:
Error 500 with NPE
Expected results:
Error 404 with an empty or some default message should appear.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira