[
http://jira.jboss.com/jira/browse/JBSEAM-342?page=comments#action_12342793 ]
Sergei Rogovskiy commented on JBSEAM-342:
-----------------------------------------
I think there is an issue with SeamVariableResolver when AJAX bean tries to resolve
variable at some point. In fact using standard variable resolver solves the problem. I am
getting a nullpointer which is pretty obviosly comes from Seam. Using standard variable
resolver is not a workaround since it disables all seam features, so I think the issue is
pretty big.
00:14:04,033 ERROR [MyFacesResourceLoader] Could not find the class for component
org.apache.myfaces.custom.templates to load a resource.
00:14:05,861 ERROR [PhaseListenerManager] Exception in PhaseListener
APPLY_REQUEST_VALUES(2) beforePhase.
javax.faces.el.EvaluationException: Exception while invoking expression
#{cityAjaxBean.getItems}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165)
at
org.apache.myfaces.custom.suggestajax.SuggestAjaxRenderer.getSuggestedItems(SuggestAjaxRenderer.java:56)
at
org.apache.myfaces.custom.suggestajax.inputsuggestajax.InputSuggestAjaxRenderer.encodeAjax(InputSuggestAjaxRenderer.java:149)
at
org.apache.myfaces.custom.suggestajax.SuggestAjax.encodeAjax(SuggestAjax.java:91)
at
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.encodeAjax(AjaxDecodePhaseListener.java:210)
at
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.handleAjaxRequest(AjaxDecodePhaseListener.java:121)
at
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.beforePhase(AjaxDecodePhaseListener.java:99)
at
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
at
org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:206)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NullPointerException
at org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:62)
at org.jboss.seam.contexts.PageContext.get(PageContext.java:52)
at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:125)
at org.jboss.seam.Component.getInstance(Component.java:1245)
at
org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
at
org.apache.myfaces.custom.redirectTracker.RedirectTrackerVariableResolver.resolveVariable(RedirectTrackerVariableResolver.java:38)
at
org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
at
org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:567)
at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
at
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:455)
at
org.apache.myfaces.el.MethodBindingImpl.resolveToBaseAndProperty(MethodBindingImpl.java:180)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:114)
... 31 more
00:14:06,157 ERROR [PhaseListenerManager] Exception in PhaseListener
APPLY_REQUEST_VALUES(2) beforePhase.
javax.faces.el.EvaluationException: Exception while invoking expression
#{cityAjaxBean.getItems}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165)
at
org.apache.myfaces.custom.suggestajax.SuggestAjaxRenderer.getSuggestedItems(SuggestAjaxRenderer.java:56)
at
org.apache.myfaces.custom.suggestajax.inputsuggestajax.InputSuggestAjaxRenderer.encodeAjax(InputSuggestAjaxRenderer.java:149)
at
org.apache.myfaces.custom.suggestajax.SuggestAjax.encodeAjax(SuggestAjax.java:91)
at
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.encodeAjax(AjaxDecodePhaseListener.java:210)
at
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.handleAjaxRequest(AjaxDecodePhaseListener.java:121)
at
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.beforePhase(AjaxDecodePhaseListener.java:99)
at
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
at
org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:206)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NullPointerException
at org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:62)
at org.jboss.seam.contexts.PageContext.get(PageContext.java:52)
at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:125)
at org.jboss.seam.Component.getInstance(Component.java:1245)
at
org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
at
org.apache.myfaces.custom.redirectTracker.RedirectTrackerVariableResolver.resolveVariable(RedirectTrackerVariableResolver.java:38)
at
org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
at
org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:567)
at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
at
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:455)
at
org.apache.myfaces.el.MethodBindingImpl.resolveToBaseAndProperty(MethodBindingImpl.java:180)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:114)
... 31 more
CLONE -Seam and Myfaces ajax support.
-------------------------------------
Key: JBSEAM-342
URL:
http://jira.jboss.com/jira/browse/JBSEAM-342
Project: JBoss Seam
Issue Type: Feature Request
Environment: Jboss 4.0.4 + Seam beta + SVN myfaces
Reporter: Sergei Rogovskiy
Hi,
I have tried to use seam and myfaces sandbox component InputSugestAjax.
Is hapen some strage problem in variable resolver, or method rezolver for ajax
requests..
Please verify this issue, Maibe in the feature will be a problem in integration.
Thanks,
Cristi
--
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