[richfaces-issues] [JBoss JIRA] Created: (RF-10784) AjaxViewRoot swallows NoSuchElementException from by the application code

Vladimir Kravchenko (JIRA) jira-events at lists.jboss.org
Fri Mar 18 13:38:49 EDT 2011


AjaxViewRoot swallows NoSuchElementException from by the application code
-------------------------------------------------------------------------

                 Key: RF-10784
                 URL: https://issues.jboss.org/browse/RF-10784
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 3.3.2.SR1
            Reporter: Vladimir Kravchenko


AjaxViewRoot.processEvents() swallows NoSuchElemntException thrown by an apllication code, due to too wide catch block:
{code}
	public void processEvents(FacesContext context,
			EventsQueue phaseEventsQueue, boolean havePhaseEvents) {
		FacesEvent event;
		while (havePhaseEvents) {
			try {
				event = (FacesEvent) phaseEventsQueue.remove();
				UIComponent source = event.getComponent();
				try {
					source.broadcast(event);
				} catch (AbortProcessingException e) {
					if (_log.isErrorEnabled()) {
						UIComponent component = event.getComponent();
						String id = null != component ? component
								.getClientId(context) : "";
						_log.error(
								"Error processing faces event for the component "
										+ id, e);
					}
				}
			} catch (NoSuchElementException e) {
				havePhaseEvents = false;
			}
		}
	}
{code}
http://anonsvn.jboss.org/repos/richfaces/tags/3.3.3.Final/framework/impl/src/main/java/org/ajax4jsf/component/AjaxViewRoot.java


A NoSuchElemtException thrown inside "source.broadcast(event);" will be swallowed by the catch block.


--
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