Uploaded image for project: 'JBoss WFK 2'
  1. JBoss WFK 2
  2. WFK2-774

RichFaces: validation quickstart: UnsupportedOperationException after confirmation of the registration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.7.0.ER1
    • Fix Version/s: 2.7.0.ER2
    • Component/s: RichFaces
    • Labels:
      None
    • Environment:

      EAP 6.3.1.GA

      Tried with: Firefox 33, Firefox 30, Chrome 38

    • Target Release:
    • Steps to Reproduce:
      Hide
      1. deploy richfaces-validation quickstart and open http://localhost:8080/jboss-richfaces-validation/index.jsf
      2. proceed with filling the form:
        1. email: abc@one.com
        2. continue
        3. name: abc
        4. phone: 1234567891
        5. continue
        6. confirm
      3. you will get an error on both client and server side
      Show
      deploy richfaces-validation quickstart and open http://localhost:8080/jboss-richfaces-validation/index.jsf proceed with filling the form: email: abc@one.com continue name: abc phone: 1234567891 continue confirm you will get an error on both client and server side
    • Release Notes Docs Status:
      Not Required

      Description

      After confirming the final registration step in the application, you get:
      on the client side:

      javax.servlet.ServletException
      	javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
      
      JBWEB000071: root cause
      
      java.lang.UnsupportedOperationException
      	javax.faces.context.ExternalContext.isSecure(ExternalContext.java:1932)
      	com.sun.faces.context.flash.ELFlash.setCookie(ELFlash.java:956)
      	com.sun.faces.context.flash.ELFlash.doLastPhaseActions(ELFlash.java:638)
      	com.sun.faces.context.ExternalContextImpl.redirect(ExternalContextImpl.java:581)
      	javax.faces.context.ExternalContextWrapper.redirect(ExternalContextWrapper.java:462)
      	com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:180)
      	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:129)
      	javax.faces.component.UICommand.broadcast(UICommand.java:315)
      	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:786)
      	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1251)
      	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
      	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      	javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      

      on the server side:

      12:58:10,083 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jboss-richfaces-validation].[FacesServlet]] (http-/127.0.0.1:8080-3) JBWEB000236: Servlet.service() for servlet FacesServlet threw exception: java.lang.UnsupportedOperationException
              at javax.faces.context.ExternalContext.isSecure(ExternalContext.java:1932) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
              at com.sun.faces.context.flash.ELFlash.setCookie(ELFlash.java:956) [jsf-impl-2.1.28.redhat-6.jar:2.1.28.redhat-6]
              at com.sun.faces.context.flash.ELFlash.doLastPhaseActions(ELFlash.java:638) [jsf-impl-2.1.28.redhat-6.jar:2.1.28.redhat-6]
              at com.sun.faces.context.ExternalContextImpl.redirect(ExternalContextImpl.java:581) [jsf-impl-2.1.28.redhat-6.jar:2.1.28.redhat-6]
              at javax.faces.context.ExternalContextWrapper.redirect(ExternalContextWrapper.java:462) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
              at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:180) [jsf-impl-2.1.28.redhat-6.jar:2.1.28.redhat-6]
              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:129) [jsf-impl-2.1.28.redhat-6.jar:2.1.28.redhat-6]
              at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:786) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1251) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.1.28.redhat-6.jar:2.1.28.redhat-6]
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.28.redhat-6.jar:2.1.28.redhat-6]
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.28.redhat-6.jar:2.1.28.redhat-6]
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.4.1.Final-redhat-3.jar:7.4.1.Final-redhat-3]
              at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.4.1.Final-redhat-3.jar:7.4.1.Final-redhat-3]
              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.4.1.Final-redhat-3.jar:7.4.1.Final-redhat-3]
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.4.9.Final-redhat-1.jar:7.4.9.Final-redhat-1]
              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pslegr Pavel Slegr
                  Reporter:
                  jstefek Jiří Štefek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: