ICEfaces
  1. ICEfaces
  2. ICE-9328

UnsupportedOperationException when trying to add JSF portlets to a portal page dynamically with javax.faces.PROJECT_STAGE=Production

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.3, EE-3.3.0.GA
    • Fix Version/s: EE-3.3.0.GA
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Liferay Faces Bridge 3.x-ga3
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial, Compatibility/Configuration
    • Workaround Exists:
      Yes

      Description

      When a portlet is initially added to a page, the LiferayFaces Bridge may log the following exception:

      ERROR [http-bio-8080-exec-7][render_portlet_jsp:154] java.io.IOException: java.lang.UnsupportedOperationException
      at com.liferay.faces.bridge.renderkit.html_basic.HeadResponseWriterLiferayImpl.endElement(HeadResponseWriterLiferayImpl.java:94)
      at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:112)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:881)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
      at com.liferay.faces.bridge.renderkit.html_basic.HeadRendererBridgeImpl.encodeBegin(HeadRendererBridgeImpl.java:231)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:826)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:439)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
      at com.liferay.faces.bridge.application.ViewHandlerCompatImpl.renderView(ViewHandlerCompatImpl.java:35)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:227)
      at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:85)
      at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:112)
      at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)

      It only happens when the PROJECT_STAGE is set to Production:

          <context-param>
              <param-name>javax.faces.PROJECT_STAGE</param-name>
              <param-value>Production</param-value>
          </context-param>

      When set to Development, the exception is not logged.

        Activity

        There are no subversion log entries for this issue yet.

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: