]
Anton Belevich resolved RF-8733.
--------------------------------
Fix Version/s: 4.0.0.Milestone1
Resolution: Done
FacesException when a4j:ajax wraps several elements
---------------------------------------------------
Key: RF-8733
URL:
https://jira.jboss.org/browse/RF-8733
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-a4j-core
Affects Versions: 4.0.0.Alpha2
Environment: JBoss 6 M2, Tomcat 6.0.26, OpenJDK Runtime Environment (IcedTea6
1.8) (fedora-38.b18.fc12-i386), RichFaces 4.0.0.Alpha2
Reporter: Pavol Pitonak
Assignee: Anton Belevich
Priority: Critical
Fix For: 4.0.0.Alpha2, 4.0.0.Milestone1
1. deploy core-demo 4.0.0.Alpha2
2. navigate to
http://localhost:8080/core-demo/ajax.jsf
3. put e.g. "a" into 2nd, 3rd or 4th text input on the page
result: exception is thrown, below is a log from Tomcat
<a:ajax event="keyup" execute="@this" render="text1"
status="ilStatus" listener="#{supportBean.behaviorListener}">
<h:inputText value="#{supportBean.text1}" />
<h:inputText value="#{supportBean.text1}" />
<h:inputText value="#{supportBean.text1}" />
</a:ajax>
2010-06-07 11:02:04,908 DEBUG [org.richfaces.demo.PhaseTracker] Phase RESTORE_VIEW 1
started
2010-06-07 11:02:04,929 DEBUG [org.richfaces.demo.PhaseTracker] Phase RESTORE_VIEW 1
completed by 20ms
2010-06-07 11:02:04,929 DEBUG [org.richfaces.demo.PhaseTracker] Phase
APPLY_REQUEST_VALUES 2 started
2010-06-07 11:02:04,930 DEBUG [org.richfaces.demo.PhaseTracker] Phase
APPLY_REQUEST_VALUES 2 completed by 1ms
2010-06-07 11:02:04,930 DEBUG [org.richfaces.demo.PhaseTracker] Phase PROCESS_VALIDATIONS
3 started
2010-06-07 11:02:04,930 DEBUG [org.richfaces.demo.PhaseTracker] Phase PROCESS_VALIDATIONS
3 completed by 0ms
2010-06-07 11:02:04,930 DEBUG [org.richfaces.demo.PhaseTracker] Phase UPDATE_MODEL_VALUES
4 started
2010-06-07 11:02:04,931 DEBUG [org.richfaces.demo.PhaseTracker] Phase UPDATE_MODEL_VALUES
4 completed by 1ms
2010-06-07 11:02:04,931 DEBUG [org.richfaces.demo.PhaseTracker] Phase INVOKE_APPLICATION
5 started
2010-06-07 11:02:04,931 DEBUG [org.richfaces.demo.PhaseTracker] Phase INVOKE_APPLICATION
5 completed by 0ms
javax.faces.FacesException
at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:90)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.NullPointerException
at
org.ajax4jsf.component.behavior.MethodExpressionAjaxBehaviorListener.processAjaxBehavior(MethodExpressionAjaxBehaviorListener.java:77)
at
javax.faces.event.AjaxBehaviorEvent.processListener(AjaxBehaviorEvent.java:113)
at javax.faces.component.behavior.BehaviorBase.broadcast(BehaviorBase.java:98)
at org.ajax4jsf.component.behavior.AjaxBehavior.broadcast(AjaxBehavior.java:296)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:763)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
... 15 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: