[richfaces-issues] [JBoss JIRA] Commented: (RF-10974) a4:poll data being called twice
Martin Sadowski (JIRA)
jira-events at lists.jboss.org
Fri May 6 12:23:18 EDT 2011
[ https://issues.jboss.org/browse/RF-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600404#comment-12600404 ]
Martin Sadowski commented on RF-10974:
--------------------------------------
First call:
{code}
Daemon Thread ["http-bio-8225"-exec-5] (Suspended (breakpoint at line 11 in TestBean))
TestBean.getPollData() line: 11
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
BeanELResolver.getValue(ELContext, Object, Object) line: 87
DemuxCompositeELResolver._getValue(int, ELResolver[], ELContext, Object, Object) line: 176
DemuxCompositeELResolver.getValue(ELContext, Object, Object) line: 203
AstValue.getValue(EvaluationContext) line: 169
ValueExpressionImpl.getValue(ELContext) line: 189
TagValueExpression.getValue(ELContext) line: 109
ComponentStateHelper.eval(Serializable, Object) line: 194
ComponentStateHelper.eval(Serializable) line: 182
UIPoll.getData() line: 109
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
UIComponentBase$AttributesMap.get(Object) line: 2338
ExecuteComponentCallback(RenderComponentCallback).doVisit(UIComponent, AjaxClientBehavior) line: 87
ExecuteComponentCallback.doVisit(UIComponent, AjaxClientBehavior) line: 49
ExecuteComponentCallback(ComponentCallback).visit(VisitContext, UIComponent) line: 98
ExecuteExtendedVisitContext(BaseExtendedVisitContext).invokeVisitCallback(UIComponent, VisitCallback) line: 337
UIPoll(UIComponent).visitTree(VisitContext, VisitCallback) line: 1589
HtmlForm(UIComponent).visitTree(VisitContext, VisitCallback) line: 1600
HtmlForm(UIForm).visitTree(VisitContext, VisitCallback) line: 344
UIOutput(UIComponent).visitTree(VisitContext, VisitCallback) line: 1600
UIViewRoot(UIComponent).visitTree(VisitContext, VisitCallback) line: 1600
ExtendedPartialViewContextImpl.visitActivatorComponent(String, VisitCallback, Set<VisitHint>) line: 452
ExtendedPartialViewContextImpl.visitActivatorAtExecute() line: 322
ExtendedPartialViewContextImpl.getExecuteIds() line: 110
ExtendedPartialViewContextImpl.isExecuteAll() line: 160
UIViewRoot.processDecodes(FacesContext) line: 929
ApplyRequestValuesPhase.execute(FacesContext) line: 78
ApplyRequestValuesPhase(Phase).doPhase(FacesContext, Lifecycle, ListIterator<PhaseListener>) line: 101
LifecycleImpl.execute(FacesContext) line: 118
FacesServlet.service(ServletRequest, ServletResponse) line: 409
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 304
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 210
StandardWrapperValve.invoke(Request, Response) line: 240
StandardContextValve.invoke(Request, Response) line: 164
NonLoginAuthenticator(AuthenticatorBase).invoke(Request, Response) line: 462
StandardHostValve.invoke(Request, Response) line: 164
ErrorReportValve.invoke(Request, Response) line: 100
AccessLogValve.invoke(Request, Response) line: 562
StandardEngineValve.invoke(Request, Response) line: 118
CoyoteAdapter.service(Request, Response) line: 395
Http11Processor.process(SocketWrapper<Socket>) line: 250
Http11Protocol$Http11ConnectionHandler.process(SocketWrapper<Socket>, SocketStatus) line: 188
Http11Protocol$Http11ConnectionHandler.process(SocketWrapper<Socket>) line: 166
JIoEndpoint$SocketProcessor.run() line: 302
ThreadPoolExecutor$Worker.runTask(Runnable) line: 886
ThreadPoolExecutor$Worker.run() line: 908
TaskThread(Thread).run() line: 619
{code}
Second call:
{code}
Daemon Thread ["http-bio-8225"-exec-3] (Suspended (breakpoint at line 11 in TestBean))
TestBean.getPollData() line: 11
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
BeanELResolver.getValue(ELContext, Object, Object) line: 87
DemuxCompositeELResolver._getValue(int, ELResolver[], ELContext, Object, Object) line: 176
DemuxCompositeELResolver.getValue(ELContext, Object, Object) line: 203
AstValue.getValue(EvaluationContext) line: 169
ValueExpressionImpl.getValue(ELContext) line: 189
TagValueExpression.getValue(ELContext) line: 109
ComponentStateHelper.eval(Serializable, Object) line: 194
ComponentStateHelper.eval(Serializable) line: 182
UIPoll.getData() line: 109
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
UIComponentBase$AttributesMap.get(Object) line: 2338
RenderComponentCallback.doVisit(UIComponent, AjaxClientBehavior) line: 87
RenderComponentCallback(ComponentCallback).visit(VisitContext, UIComponent) line: 98
ExecuteExtendedVisitContext(BaseExtendedVisitContext).invokeVisitCallback(UIComponent, VisitCallback) line: 337
UIPoll(UIComponent).visitTree(VisitContext, VisitCallback) line: 1589
HtmlForm(UIComponent).visitTree(VisitContext, VisitCallback) line: 1600
HtmlForm(UIForm).visitTree(VisitContext, VisitCallback) line: 344
UIOutput(UIComponent).visitTree(VisitContext, VisitCallback) line: 1600
UIViewRoot(UIComponent).visitTree(VisitContext, VisitCallback) line: 1600
ExtendedPartialViewContextImpl.visitActivatorComponent(String, VisitCallback, Set<VisitHint>) line: 452
ExtendedPartialViewContextImpl.visitActivatorAtRender(Collection<String>) line: 338
ExtendedPartialViewContextImpl.processPartialRenderPhase() line: 257
ExtendedPartialViewContextImpl.processPartial(PhaseId) line: 206
UIViewRoot.encodeChildren(FacesContext) line: 981
UIViewRoot(UIComponent).encodeAll(FacesContext) line: 1756
FaceletViewHandlingStrategy.renderView(FacesContext, UIViewRoot) line: 390
MultiViewHandler.renderView(FacesContext, UIViewRoot) line: 131
GlobalResourcesViewHandler(ViewHandlerWrapper).renderView(FacesContext, UIViewRoot) line: 288
RenderResponsePhase.execute(FacesContext) line: 121
RenderResponsePhase(Phase).doPhase(FacesContext, Lifecycle, ListIterator<PhaseListener>) line: 101
LifecycleImpl.render(FacesContext) line: 139
FacesServlet.service(ServletRequest, ServletResponse) line: 410
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 304
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 210
StandardWrapperValve.invoke(Request, Response) line: 240
StandardContextValve.invoke(Request, Response) line: 164
NonLoginAuthenticator(AuthenticatorBase).invoke(Request, Response) line: 462
StandardHostValve.invoke(Request, Response) line: 164
ErrorReportValve.invoke(Request, Response) line: 100
AccessLogValve.invoke(Request, Response) line: 562
StandardEngineValve.invoke(Request, Response) line: 118
CoyoteAdapter.service(Request, Response) line: 395
Http11Processor.process(SocketWrapper<Socket>) line: 250
Http11Protocol$Http11ConnectionHandler.process(SocketWrapper<Socket>, SocketStatus) line: 188
Http11Protocol$Http11ConnectionHandler.process(SocketWrapper<Socket>) line: 166
JIoEndpoint$SocketProcessor.run() line: 302
ThreadPoolExecutor$Worker.runTask(Runnable) line: 886
ThreadPoolExecutor$Worker.run() line: 908
TaskThread(Thread).run() line: 619
{code}
ApplyRequestValuesPhase <-> RenderResponsePhase
> a4:poll data being called twice
> -------------------------------
>
> Key: RF-10974
> URL: https://issues.jboss.org/browse/RF-10974
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.0.0.Final
> Environment: Tomcat 7.0.12
> Reporter: Martin Sadowski
>
> Bean:
> @ManagedBean
> @SessionScoped
> public class TestBean {
>
> int i = 0;
>
> public String getPollData() {
> System.out.println("getPollData()");
> return "" + i++;
> }
> }
> test.xhtml:
> <a4j:poll interval="10000" data="#{testBean.pollData}" oncomplete="alert(event.data);"/>
> Result:
> 1
> 3
> 5
> ...
> -> Twice every polling cycle.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list