Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1542

ConcurrentModificationException on initial page load with two instances of the jsf2-portlet on the same Liferay Portal page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: liferay-faces-3.2.4-ga5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Tomcat

      Description

      Steps to reproduce:

      1. Startup Tomcat
      2. Deploy the jsf2-portlet
      3. Add EIGHT or more instances of the jsf2-portlet to a portal page and remember the URL of the portal page
      4. Shutdown Tomcat
      5. Startup Tomcat
      6. Directly hit the portal page URL (from step #3)

      If the bug still exists, then the following stacktrace can intermittently occur:

      14:57:33,781 ERROR [com.liferay.portlet.layoutconfiguration.util.RuntimePageImpl-2][render_portlet_jsp:154] java.util.ConcurrentModificationException
      at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
      at java.util.AbstractList$Itr.next(AbstractList.java:343)
      at java.util.Collections$1.nextElement(Collections.java:3395)
      at com.liferay.faces.bridge.util.LocaleIterator.next(LocaleIterator.java:37)
      at com.liferay.faces.bridge.util.LocaleIterator.next(LocaleIterator.java:24)
      at com.sun.faces.application.view.MultiViewHandler.calculateLocale(MultiViewHandler.java:182)
      at javax.faces.application.ViewHandlerWrapper.calculateLocale(ViewHandlerWrapper.java:106)
      at com.sun.faces.application.view.ViewHandlingStrategy.createView(ViewHandlingStrategy.java:166)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.createView(FaceletViewHandlingStrategy.java:797)
      at com.sun.faces.application.view.MultiViewHandler.createView(MultiViewHandler.java:159)
      at javax.faces.application.ViewHandlerWrapper.createView(ViewHandlerWrapper.java:168)
      at com.liferay.faces.bridge.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:74)
      at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:106)
      at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:233)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:185)
      at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:85)
      at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:112)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                neil.griffin Neil Griffin
                Reporter:
                neil.griffin Neil Griffin
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package