"Failed to render portlet include" error on business console

Hi,

We are trying to include portlet A on a task portlet B. It works fine when we test this as sysadmin on MWS. We however, get a “Failed to render portlet include” error when we test on business console. Is there some setting that we need to look at maybe? We are on WebMethods 9-12

Thanks,
Keneilwe

Hi,

Can you share the error details please.

Thanks for your prompt response.

[i]2017-03-23 15:50:32 CAT (c.s.p.w.f.s.SSOHttpServletRequest:WARN) [qtp1376013036-11324] - No UserPrincipal found in Subject for thread qtp1376013036-11324
2017-03-23 15:50:32 CAT (jsf:INFO) [qtp1376013036-11287] [RID:172981] - Failed to render included portlet
2017-03-23 15:50:32 CAT (jsf:INFO) [qtp1376013036-11287] [RID:172981] - com.webmethods.portal.mech.access.PortalAccessException: [POP.003.0025] scadmin cannot view the content of New Supplier Request Approval.
at com.webmethods.portal.mech.view.impl.ViewableMechanics.checkView(ViewableMechanics.java:65)
at com.webmethods.portal.bizPolicy.command.portlet.GetPortletContent.getPortletContent(GetPortletContent.java:53)
at com.webmethods.portal.framework.portletcontainer.impl.PortletApplicationHandler$PortletProviderImpl.renderPortlet(PortletApplicationHandler.java:288)
at com.webmethods.caf.faces.render.html.output.PortletIncludeRenderer.encodeEnd(PortletIncludeRenderer.java:53)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
at com.webmethods.caf.faces.view.CafViewDeclarationLanguage.renderView(CafViewDeclarationLanguage.java:214)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
at com.webmethods.caf.faces.portlet.PortletLifecycle$RenderResponsePhase.execute(PortletLifecycle.java:860)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.webmethods.caf.faces.portlet.PortletLifecycle.phase(PortletLifecycle.java:317)
at com.webmethods.caf.faces.portlet.PortletLifecycle.render(PortletLifecycle.java:260)
at com.webmethods.caf.faces.portlet.FacesPortlet.render(FacesPortlet.java:457)
at com.webmethods.portal.framework.portletcontainer.impl.PortletApplicationHandler.process(PortletApplicationHandler.java:607)
at com.webmethods.portal.framework.portletcontainer.servlet.PortletServlet.service(PortletServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:595)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.Dispatcher.include(Dispatcher.java:115)
at com.webmethods.portal.framework.portletcontainer.PortletContainer.dispatch(PortletContainer.java:223)
at com.webmethods.portal.framework.portletcontainer.PortletContainer.process(PortletContainer.java:132)
at com.webmethods.portal.framework.portletcontainer.PortletContainer.renderPortlet(PortletContainer.java:105)
at com.webmethods.portal.framework.portletcontainer.beans.PortletBean.processRequest(PortletBean.java:197)
at com.webmethods.portal.framework.portletcontainer.beans.PortletBean.getContentInternal(PortletBean.java:85)
at com.webmethods.portal.framework.portlet.beans.BasicPortletBean.getContent(BasicPortletBean.java:151)
at com.webmethods.portal.mech.portlet.impl.PortletMechanics.getPortletContent(PortletMechanics.java:96)
at com.webmethods.portal.mech.storage.page.PortletHelper.renderContent(PortletHelper.java:430)
at com.webmethods.portal.mech.storage.page.PortletHelper.renderContent(PortletHelper.java:402)
at com.webmethods.portal.framework.presentation.renderers.DefaultRenderer.renderPageContent(DefaultRenderer.java:479)
at com.webmethods.portal.framework.presentation.renderers.DefaultRenderer.render(DefaultRenderer.java:341)
at com.webmethods.portal.framework.presentation.PresentationManager.handlePres(PresentationManager.java:444)
at com.webmethods.portal.framework.dispatch.DispatchManager.pres(DispatchManager.java:721)
at com.webmethods.portal.framework.dispatch.DispatchManager.handle(DispatchManager.java:551)
at com.webmethods.portal.framework.dispatch.DispatchManager.handleDispatch(DispatchManager.java:448)
at com.webmethods.portal.framework.impl.PortalServlet.service(PortalServlet.java:329)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:364)
at com.webmethods.caf.faces.servlet.GZIPFilter.doFilter(GZIPFilter.java:48)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at com.webmethods.portal.framework.impl.NTLMV1Filter.doFilter(NTLMV1Filter.java:55)
at com.webmethods.portal.framework.impl.NTLMFilter.doFilter(NTLMFilter.java:26)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at com.webmethods.portal.framework.impl.RequestFilter.doFilter(RequestFilter.java:63)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at com.webmethods.portal.framework.impl.JsfPartialAjaxRequestFilter.doFilter(JsfPartialAjaxRequestFilter.java:77)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at com.webmethods.portal.framework.impl.SpnegoFilterWrapper.doFilter(SpnegoFilterWrapper.java:85)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at com.webmethods.portal.webapp.jetty7.MwsServer.handle(MwsServer.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)

2017-03-23 15:50:32 CAT (jsf:INFO) [qtp1376013036-11287] [RID:172981] - Failed to render included portlet: Failed to render included portlet
[/i]

Hi Keneilwe,

Please login as Sysadmin to MWS and check for the following:
Under "FolderS" → "System" → "Portlets" search your custom portlet and at the end of the line go to the down arrow and select permissions.
Default permissions are "Everynone"="none" and "My webMethods Administrators"/"Admin Role"="Full Access".
Add your custom group or role here and grant "View Object". This will be displayed as "View only" after saving.

See MWS Administrators Guide for further informations.

This behaviour was introduced or changed in 9.x as difference againts previous versions.

Regards,
Holger

Thanks Holger,

It worked.

Regards,
Keneilwe