org.jboss.seam.handledException results in error "The class
'org.jboss.seam.Namespace' does not have the property
'handledException'" when this variable is not present
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-3077
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3077
Project: Seam
Issue Type: Bug
Reporter: Alex Savitsky
Assignee: Dan Allen
Fix For: 2.1.2.CR1
This variable (org.jboss.seam.handledException) is normally defined by Seam when an
unhandled exception is thrown, and is subsequently displayed on an error page. However,
when user refreshes the error page, they would get an error "The class
'org.jboss.seam.Namespace' does not have the property
'handledException'", due to the way Seam evaluates expressions -
"org.jboss.seam" evaluates to an instance of Namespace, and
"org.jboss.seam.handledException" is interpreted as "property
'handledException' of an object 'org.jboss.seam'".
What's worse, there's no way to prevent this error from appearing, as the usual
way of checking for variable existence - "empty org.jboss.seam.handledException"
wouldn't work here, as it never evaluates to null - it's either there, or throws
an error if it's not.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: