Announcement Announcement Module
Collapse
No announcement yet.
UnsupportedOperationException when switching to Mojarra 2.2.0-m15 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • UnsupportedOperationException when switching to Mojarra 2.2.0-m15

    Our application works fine with Mojarra 2.1.21, SWF 2.3.2 and primefaces 3.5. When switching to Mojarra 2.2.0-m15, the following exception occurs on the first view:

    org.springframework.webflow.execution.FlowExecutio nException: Exception thrown in state 'searchCustomer' of flow 'customer'
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.wrap(FlowExecutionImpl.java:571)
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:262)
    at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:169)
    at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:183)
    at org.springframework.faces.webflow.JsfFlowHandlerAd apter.handle(JsfFlowHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:925)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:856)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:936)
    at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:827)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:621)
    at org.springframework.web.servlet.FrameworkServlet.s ervice(FrameworkServlet.java:812)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at ch.sbb.esta.service.implicitcontext.web.ImplicitCo ntextPassingFilter.doFilterInternal(ImplicitContex tPassingFilter.java:58)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at org.springframework.orm.jpa.support.OpenEntityMana gerInViewFilter.doFilterInternal(OpenEntityManager InViewFilter.java:180)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:581)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:929)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:1002)
    at org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:585)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1121)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:614)
    at java.lang.Thread.run(Thread.java:777)
    Caused by: javax.faces.FacesException
    at com.sun.faces.context.ExceptionHandlerImpl.handle( ExceptionHandlerImpl.java:141)
    at javax.faces.context.ExceptionHandlerWrapper.handle (ExceptionHandlerWrapper.java:100)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:1 19)
    at com.sun.faces.lifecycle.LifecycleImpl.render(Lifec ycleImpl.java:219)
    at org.springframework.faces.webflow.FlowLifecycle.re nder(FlowLifecycle.java:80)
    at org.springframework.faces.webflow.JsfView.render(J sfView.java:89)
    at org.springframework.webflow.engine.ViewState.rende r(ViewState.java:296)
    at org.springframework.webflow.engine.ViewState.refre sh(ViewState.java:243)
    at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:221)
    at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:258)
    ... 34 more
    Caused by: java.lang.UnsupportedOperationException
    at javax.faces.context.ExternalContext.getClientWindo w(ExternalContext.java:1500)
    at com.sun.faces.context.ExternalContextImpl.encodeAc tionURL(ExternalContextImpl.java:562)
    at org.springframework.faces.webflow.ExternalContextW rapper.encodeActionURL(ExternalContextWrapper.java :29)
    at com.sun.faces.renderkit.html_basic.FormRenderer.ge tActionStr(FormRenderer.java:234)
    at com.sun.faces.renderkit.html_basic.FormRenderer.en codeBegin(FormRenderer.java:134)
    at javax.faces.component.UIComponentBase.encodeBegin( UIComponentBase.java:869)
    at javax.faces.component.UIComponent.encodeAll(UIComp onent.java:1854)
    at javax.faces.component.UIComponent.encodeAll(UIComp onent.java:1859)
    at javax.faces.component.UIComponent.encodeAll(UIComp onent.java:1859)
    at com.sun.faces.application.view.FaceletViewHandling Strategy.renderView(FaceletViewHandlingStrategy.ja va:443)
    at com.sun.faces.application.view.MultiViewHandler.re nderView(MultiViewHandler.java:131)
    at org.springframework.faces.webflow.FlowViewHandler. renderView(FlowViewHandler.java:99)
    at com.sun.faces.lifecycle.RenderResponsePhase.execut e(RenderResponsePhase.java:120)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:1 01)
    ... 42 more

    Is there something missing for JSF 2.2?

  • #2
    The exception remains the same with Mojarra 2.2.0

    Comment


    • #3
      Is this problem maybe related to Weblfow's ExternalContext implementation ?

      Comment


      • #4
        I have the same problem on Tomcat 6. The current stable releases of Spring WebFlow does not implement the JSF 2.2 API perfectly. Thats why the invoke of javax.faces.context.ExternalContext.getClientWindo w(...) maybe fails. I think the source could be the clientWindowId feature.

        The only solution for this is to update your Spring Webflow libraries to 2.4 SNAPSHOT. I grabbed the library files from http://maven.springframework.org/sna...mework/webflow . My Spring Framework is the latest stable release.

        A note for Tomcat Users. Spring Webflow 2.4 seems to require j2EE features now. You need to have an implementation for the CDI specification in your project. The Weld library suits very well to implement this specification on servers that aren't j2EE compatible (see http://www.seamframework.org/Weld for more information).

        Hope this helps ^^
        Last edited by tapsi; Jul 17th, 2013, 05:39 AM.

        Comment

        Working...
        X