"Remote Portlet Error" When Pressing F5 in Browser Creating a Portlet From a Task Flow (Doc ID 2103326.1)

Last updated on FEBRUARY 10, 2016

Applies to:

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

Symptoms

Creating a Portlet from a JSF page, on the JSF page there has a table and 2 command buttons. Portlet is added into portal page. When press F5 to refresh window in browser, portlet region shows:

"Remote Portlet Error".


If ever clicked any command button before press F5 key, the issue will not occur.

Steps To Reproduce:

  1. In JDeveloper, create new Fusion Web Application(ADF).
  2. In the Application Navigator, right click ViewController project, select menu item "New->Web Tier -> JSF -> ADF Task Flow", Click "OK" then on "Create Task Flow' dialog window deselect the check box "Create with Page Fragments". It means that .jspx used by default when you add view into task flow. Click "OK" to create a task flow.
  3. Drag and drop a view into task flow from Component Palette. Double click the View icon to open "Create JSF page" dialog window, leave default "view1.jspx", Click "OK" to create new view1.jspx.
  4. Edit view1.jspx, adding a read only table onto it. You can drag and drop a Placeholder Data Control onto view page to generate table.
  5. In the Application Navigator, right-click the task flow and choose "Create Portlet Entry". go ahead with all default options. Click Save All.
  6. Deploy application onto server WC_Portlet.
  7. Login onto em console, register this portlet producer.
  8. Login onto /webcenter, create new page and add portlet into page.
  9. Save & view the page.
  10. In browser press F5 key. It will show "Remote Portlet Error" in portlet region.


The WC_Portlet_diagnotic.log shows following exception:

[2015-12-08T18:03:21.276-05:00] [WC_Portlet] [ERROR] [ADFC-50016] [oracle.adfinternal.controller.application.AdfcExceptionHandler] [tid: [ACTIVE].ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: anonymous] [ecid: d0e6f9ec78b1c6a6:736f723b:150fd93b583:-8000-000000000011c659,0:1:1] [APP: TaskFlowPortlet_application1] [J2EE_APP.name: TaskFlowPortlet_application1] [J2EE_MODULE.name: TaskFlowPortlet-ViewController-context-root] [WEBSERVICE.name: WSRP_v2_Service] [WEBSERVICE_PORT.name: WSRP_v2_Markup_Service] [DSID: 0000L63pDwq6qIS_MDt1ie1MHGGM00000D] ADFc: While handling an exception the application's exception handler threw a new exception.[[java.lang.NullPointerException
at oracle.portlet.bridge.adf.lifecycle.ADFBridgePhaseListener.afterPhase(ADFBridgePhaseListener.java:76)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:520)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(BridgeImpl.java:1009)
at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:917)
at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:672)
at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:638)
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:274)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:245)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:
.....
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3748)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3714)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2283)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2182)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

 

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