2 Replies Latest reply on Jan 22, 2009 2:24 AM by man4j

    RichFaces 3.3.0: Exception handling is changed!

    man4j

      AjaxViewRoot is catched any exceptions throwed in action listeners!!
      And any servlet filters stay unaware about throwed exception!
      F.e. my transaction filter do not rollback transaction if exception occur.
      Help! Thanks.

        • 1. Re: RichFaces 3.3.0: Exception handling is changed!
          nbelaevski

          Hello,

          We've fixed this issue in 3.3.0.GA: https://jira.jboss.org/jira/browse/RF-4473. Can you please check if this applies to you?

          • 2. Re: RichFaces 3.3.0: Exception handling is changed!
            man4j

            Error in this method:

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

            This method should rethrow catched exception.