"Remote Portlet Error" When Consuming a JSF Portlet Bridge Portlet based on JSP Page (Doc ID 2252065.1)

Last updated on APRIL 06, 2017

Applies to:

Oracle WebCenter Portal - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to consume a JSF Portlet Bridge Portlet based on JSP Page in WebCenter Portal 12c,
the following error is displayed:

Remote Portlet Error

 

The WC_Portlet managed server log will show the following error:

 

<Feb 14, 2017, 2:26:08,585 PM GMT-00:00> <Warning> <oracle.adfinternal.view.faces.context.RichExceptionHandler> <BEA-000000> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
java.lang.IllegalStateException: An OutputStream is already in use.
   at com.bea.portlet.container.HttpServletResponseImpl.getWriter(HttpServletResponseImpl.java:135)
   at com.bea.portlet.container.MimeResponseImpl.getWriter(MimeResponseImpl.java:387)
   at javax.portlet.filter.RenderResponseWrapper.getWriter(RenderResponseWrapper.java:99)
...

<Feb 14, 2017, 2:26:08,586 PM GMT-00:00> <Error> <org.apache.myfaces.portlet.faces.bridge.logger.BridgeLoggerImpl> <BEA-000000> <Exception thrown in doFacesRequest:render
java.lang.IllegalStateException: An OutputStream is already in use.
   at com.bea.portlet.container.HttpServletResponseImpl.getWriter(HttpServletResponseImpl.java:135)
   at com.bea.portlet.container.MimeResponseImpl.getWriter(MimeResponseImpl.java:387)
   at javax.portlet.filter.RenderResponseWrapper.getWriter(RenderResponseWrapper.java:99)
...

<Feb 14, 2017, 2:26:08,588 PM GMT-00:00> <Error> <com.bea.wsrp.producer.i18n.ProducerLogger> <BEA-000000> <messagebody420942
javax.servlet.ServletException: javax.portlet.PortletException: doBridgeDispatch failed: error from Bridge in executing the request
   at com.bea.portlet.container.PortletStub.render(PortletStub.java:526)
   at com.bea.portlet.container.AppContainer.renderStub(AppContainer.java:1158)
   at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:1090)
...

Caused By: javax.portlet.PortletException: doBridgeDispatch failed: error from Bridge in executing the request
   at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:675)
   at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:638)
   at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:274)
...

Caused By: java.lang.IllegalStateException: An OutputStream is already in use.
   at com.bea.portlet.container.HttpServletResponseImpl.getWriter(HttpServletResponseImpl.java:135)
   at com.bea.portlet.container.MimeResponseImpl.getWriter(MimeResponseImpl.java:387)
   at javax.portlet.filter.RenderResponseWrapper.getWriter(RenderResponseWrapper.java:99)

 

 

Steps

 

  1. Create a fusion web app using JDeveloper.

  2. Create a jsp page under Web Content.

  3. Right click on JSP and create portlet entry for this JSP.

  4. Deploy the application to WC_Portlet managed server.
  5. Register the Portlet Producer with WebCenter Portal.
  6. Add the portlet to a page in a portal.

    Here you should see the "Remote Portlet Error".

  7. The WC_Portal managed server log wil show the following error:

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms