ICEfaces
  1. ICEfaces
  2. ICE-7395

UnsupportedOperationException thrown when running Spring Web Flow tutorial

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1-Beta
    • Fix Version/s: 3.0.RC1, 3.0
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      Tomcat, ICEfaces 2.1 Beta, JSF 2.1.3 b02
    • Assignee Priority:
      P1

      Description

      The following error is thrown when trying to use the was built from the Spring Web Flow Tutorial: http://wiki.icefaces.org/display/ICE/Spring+Web+Flow+2

      java.lang.UnsupportedOperationException
      at javax.faces.context.FacesContext.isReleased(FacesContext.java:609)
      at com.sun.faces.context.PartialViewContextImpl.updateFacesContext(PartialViewContextImpl.java:475)
      at com.sun.faces.context.PartialViewContextImpl.isAjaxRequest(PartialViewContextImpl.java:108)
      at org.icefaces.impl.context.DOMPartialViewContext.isAjaxRequest(DOMPartialViewContext.java:93)
      at org.icefaces.impl.context.DOMPartialViewContext.isAjaxRequest(DOMPartialViewContext.java:93)
      at javax.faces.context.PartialViewContextWrapper.isAjaxRequest(PartialViewContextWrapper.java:117)
      at javax.faces.component.UIViewRoot.getRendersChildren(UIViewRoot.java:1020)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1755)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
      at org.springframework.faces.webflow.FlowViewHandler.renderView(FlowViewHandler.java:99)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at org.springframework.faces.webflow.FlowLifecycle.render(FlowLifecycle.java:80)
      at org.springframework.faces.webflow.JsfView.render(JsfView.java:90)
      at org.springframework.webflow.engine.ViewState.render(ViewState.java:296)
      at org.springframework.webflow.engine.ViewState.refresh(ViewState.java:243)
      at org.springframework.webflow.engine.ViewState.resume(ViewState.java:221)
      at org.springframework.webflow.engine.Flow.resume(Flow.java:545)
      at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:261)
      at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)
      at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
      at org.springframework.faces.webflow.JsfFlowHandlerAdapter.handle(JsfFlowHandlerAdapter.java:48)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)

        Activity

        Hide
        Greg Dick added a comment -

        The UnsupportedOperationException is caused by new JSF methods on the FacesContext NOT having been overridden by classes in Spring Webflow. This wont be rectified until Webflow releases a version that works properly. For the record, the last version that 'works' is JSF 2.1.0-b07.

        The tutorial has been updated to use ICEFaces version 2.1.0-BETA2. There may be versions of ICEFaces that require newer versions of JSF, and these would therefore be incompatible with Spring Webflow.

        Show
        Greg Dick added a comment - The UnsupportedOperationException is caused by new JSF methods on the FacesContext NOT having been overridden by classes in Spring Webflow. This wont be rectified until Webflow releases a version that works properly. For the record, the last version that 'works' is JSF 2.1.0-b07. The tutorial has been updated to use ICEFaces version 2.1.0-BETA2. There may be versions of ICEFaces that require newer versions of JSF, and these would therefore be incompatible with Spring Webflow.

          People

          • Assignee:
            Greg Dick
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: