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

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case [5007000000JMGAH]
        Ken Fyten made changes -
        Fix Version/s 2.1 [ 10241 ]
        Assignee Priority P1
        Assignee Greg Dick [ greg.dick ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26220 Thu Nov 03 13:39:50 MDT 2011 greg.dick ICE-7395 Added calls to get the webflow key using introspection for Spring webflow 2+
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/compat/core/src/main/java/com/icesoft/util/SeamUtilities.java
        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.
        Greg Dick made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 3.0.RC1 [ 10300 ]
        Fix Version/s 3.0 [ 10241 ]
        Ken Fyten made changes -
        Fix Version/s 3.0 [ 10241 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28523 Mon Mar 26 12:21:12 MDT 2012 greg.dick ICE-7395 Added a webflow listener to duplicate missing event handling code
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/tutorials/booking-icefaces/src/main/webapp/WEB-INF/config/webflow-config.xml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28524 Mon Mar 26 12:22:05 MDT 2012 greg.dick ICE-7395 Added a webflow listener to duplicate missing event handling code
        Files Changed
        Commit graph ADD /icefaces3/trunk/icefaces/tutorials/booking-icefaces/src/main/java/com/icesoft/spring/security/WebflowListener.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28525 Mon Mar 26 12:23:14 MDT 2012 greg.dick ICE-7395 Added a webflow listener to duplicate missing event handling code
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/tutorials/booking-icefaces/src/main/webapp/WEB-INF/intro.xhtml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28526 Mon Mar 26 12:29:01 MDT 2012 greg.dick ICE-7395 Added a webflow listener to duplicate missing event handling code
        Files Changed
        Commit graph ADD /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/src/main/java/com/icesoft/spring/security/WebflowListener.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28527 Mon Mar 26 12:29:28 MDT 2012 greg.dick ICE-7395 Added a webflow listener to duplicate missing event handling code
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/src/main/webapp/WEB-INF/config/webflow-config.xml
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/src/main/webapp/WEB-INF/intro.xhtml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28558 Tue Mar 27 11:52:44 MDT 2012 greg.dick ICE-7395 Access assignViewID method via introspection to execute missing phaseListener code in Spring Webflow environment
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/src/main/java/com/icesoft/spring/security/WebflowListener.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28560 Tue Mar 27 12:57:18 MDT 2012 greg.dick ICE-7395 corrected location of common.xml
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/build.xml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28562 Tue Mar 27 17:25:19 MDT 2012 greg.dick ICE-7395 Restored embedded flow start parameter
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/src/main/webapp/WEB-INF/intro.xhtml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28563 Tue Mar 27 17:36:10 MDT 2012 greg.dick ICE-7395 Updated jars to spring-webflow 2.3.1 snapshot
        Files Changed
        Commit graph ADD /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-js-resources-2.3.1-snapshot.jar
        Commit graph DEL /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-faces-2.3.0.RELEASE.jar
        Commit graph ADD /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-webflow-2.3.1-snapshot.jar
        Commit graph ADD /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-js-2.3.1-snapshot.jar
        Commit graph ADD /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-faces-2.3.1-snapshot.jar
        Commit graph DEL /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-js-resources-2.3.0.RELEASE.jar
        Commit graph DEL /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-webflow-2.3.0.RELEASE.jar
        Commit graph DEL /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-js-2.3.0.RELEASE.jar
        Commit graph ADD /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-binding-2.3.1-snapshot.jar
        Commit graph DEL /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/tutorials/booking-icefaces/lib/spring-binding-2.3.0.RELEASE.jar

          People

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

            Dates

            • Created:
              Updated:
              Resolved: