ICEfaces
  1. ICEfaces
  2. ICE-11152

poll - Server Internal Error when using Mojarra 2.2 JSF

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P04
    • Fix Version/s: EE-3.3.0.GA_P05
    • Component/s: ICE-Components, Sample Apps
    • Labels:
      None
    • Environment:
      EE-3.3.0.GA_P04 release code
      Browsers: all
      Server: GlassFish 4.1.1 /using default Mojarra 2.2.12 JSF
    • Assignee Priority:
      P2

      Description

      poll application from EE-3.3.0,GA_P04 release bundle was built without the JSF library in the .war file, and installed on GlassFish 4.1.1 that contains Mojarra 2.2.12 JSF.

      A Server Internal Error popup occurs when accessing the poll application main page in a browser.
      [#|2016-09-30T15:17:59.563-0600|SEVERE|glassfish 4.1|javax.enterprise.resource.webcontainer.jsf.application|_ThreadID=99;_ThreadName=http-li
      stener-1(1);_TimeMillis=1475270279563;_LevelValue=1000;|
        Error Rendering View[/poll.xhtml]
      javax.faces.FacesException: Cannot add the same component twice: main:j_idt15:j_idt52first
              at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:748)
              at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:675)
              at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:347)
              at com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:565)
              at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108)
              at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118)
              at com.sun.faces.application.ApplicationImpl.processListenersAccountingForAdds(ApplicationImpl.java:2218)
              at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2036)
              at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:290)
              at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:245)
              at javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2254)
              at javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1935)
             ..................
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
      ..............

        Issue Links

          Activity

          Hide
          Mircea Toma added a comment -

          Take temporarily the scroller component out of the view while adding transient child components to it. By doing so JSF implementation will not try to add back the components that were added dynamically yor the tree (and thus causing the duplicate ID exception).

          Show
          Mircea Toma added a comment - Take temporarily the scroller component out of the view while adding transient child components to it. By doing so JSF implementation will not try to add back the components that were added dynamically yor the tree (and thus causing the duplicate ID exception).
          Hide
          Liana Munroe added a comment -

          Verified ICEfaces EE-3.3.0 nightly trunk r51820 using glassfish 4.1.1 with mojarra 2.2.13 jsf, ME Edge, IE 11, 10, 9, 8, 7, FF 55, Chrome 60.

          Show
          Liana Munroe added a comment - Verified ICEfaces EE-3.3.0 nightly trunk r51820 using glassfish 4.1.1 with mojarra 2.2.13 jsf, ME Edge, IE 11, 10, 9, 8, 7, FF 55, Chrome 60.

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Carmen Cristurean
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: