[
https://issues.jboss.org/browse/RF-11818?page=com.atlassian.jira.plugin.s...
]
Brian Leathem updated RF-11818:
-------------------------------
Description:
Hi, following exception was thrown on ajax operation(postback). the same page was working
well with richfaces 4.0.0.
it was failing in UIDataAdaptor constructor.getFacesContext().getViewRoot() is returning
null.
{code}
SEVERE: Servlet.service() for servlet faces threw exception
java.lang.NullPointerException
at org.richfaces.component.UIDataAdaptor.<init>(UIDataAdaptor.java:226)
at org.richfaces.component.UISequence.<init>(UISequence.java:52)
at org.richfaces.component.UIRepeat.<init>(UIRepeat.java:38)
at sun.reflect.GeneratedConstructorAccessor127.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:362)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:327)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.internalRestoreTreeStructure(DefaultFaceletsStateManagementStrategy.java:979)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.internalRestoreTreeStructure(DefaultFaceletsStateManagementStrategy.java:989)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreView(DefaultFaceletsStateManagementStrategy.java:162)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:388)
at
org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
at
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1440)
at
org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:278)
at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:83)
at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:83)
at
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:123)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
{code}
was:
Hi, following exception was thrown on ajax operation(postback). the same page was working
well with richfaces 4.0.0.
it was failing in UIDataAdaptor constructor.getFacesContext().getViewRoot() is returning
null.
SEVERE: Servlet.service() for servlet faces threw exception
java.lang.NullPointerException
at org.richfaces.component.UIDataAdaptor.<init>(UIDataAdaptor.java:226)
at org.richfaces.component.UISequence.<init>(UISequence.java:52)
at org.richfaces.component.UIRepeat.<init>(UIRepeat.java:38)
at sun.reflect.GeneratedConstructorAccessor127.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:362)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:327)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.internalRestoreTreeStructure(DefaultFaceletsStateManagementStrategy.java:979)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.internalRestoreTreeStructure(DefaultFaceletsStateManagementStrategy.java:989)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreView(DefaultFaceletsStateManagementStrategy.java:162)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:388)
at
org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
at
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1440)
at
org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:278)
at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:83)
at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:83)
at
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:123)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
Labels: waiting_on_user (was: )
Component/s: component
(was: core)
Could you please provide the facelet page and relevant backing bean code that resulted in
this error?
4.1.0 exception thrown on ajax operation
----------------------------------------
Key: RF-11818
URL:
https://issues.jboss.org/browse/RF-11818
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component
Affects Versions: 4.1.0.Final
Environment: richfaces 4.1.0 + myfaces 2.0.5
Reporter: ravi j
Labels: waiting_on_user
Hi, following exception was thrown on ajax operation(postback). the same page was working
well with richfaces 4.0.0.
it was failing in UIDataAdaptor constructor.getFacesContext().getViewRoot() is returning
null.
{code}
SEVERE: Servlet.service() for servlet faces threw exception
java.lang.NullPointerException
at org.richfaces.component.UIDataAdaptor.<init>(UIDataAdaptor.java:226)
at org.richfaces.component.UISequence.<init>(UISequence.java:52)
at org.richfaces.component.UIRepeat.<init>(UIRepeat.java:38)
at sun.reflect.GeneratedConstructorAccessor127.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:362)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:327)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.internalRestoreTreeStructure(DefaultFaceletsStateManagementStrategy.java:979)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.internalRestoreTreeStructure(DefaultFaceletsStateManagementStrategy.java:989)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreView(DefaultFaceletsStateManagementStrategy.java:162)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:388)
at
org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
at
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1440)
at
org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:278)
at
javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:83)
at
javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:83)
at
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:123)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira