[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4032) Vague exception when using a factory on a page-scoped component
Matthew Lieder (JIRA)
jira-events at lists.jboss.org
Mon Mar 23 16:50:22 EDT 2009
Vague exception when using a factory on a page-scoped component
---------------------------------------------------------------
Key: JBSEAM-4032
URL: https://jira.jboss.org/jira/browse/JBSEAM-4032
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.1.1.GA
Reporter: Matthew Lieder
The following code will cause an unhelpful NPE to be thrown by JSF when the factory is accessed:
@Name("someComponent")
@Scope(ScopeType.PAGE)
public class SomeComponent implements Serializable {
@Factory("someVar")
public String getSomeVar() {
return null;
}
}
While I believe I remember reading that using that particular type of factory method on a page-scoped component isn't supported (supported by the fact that removing the @Scope makes it work), the exception should at least be somewhat helpful in debugging the problem. NPE's with no messages are about as unfriendly as one can get.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list