Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-26696

Social Office Portlet breaks Liferay when logged in

    Details

      Description

      Deploy 6.1.x so-portlet to 6.1.x branch Liferay install.
      When logged in, error is thrown and portal seems unusable.

      Caused by: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/html/portlet/dockbar/view.jsp': com.liferay.portal.NoSuchRoleException: No Role exists with the key {companyId=10154, name=Social Office User}
      	at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:71)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
      	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
      	at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:4961)
      	at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1490)
      	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:187)
      	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:221)
      	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:208)
      	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:84)
      	at com.liferay.taglib.portletext.RuntimeTag.doTag(RuntimeTag.java:111)
      	at com.liferay.taglib.portletext.RuntimeTag.doTag(RuntimeTag.java:63)
      	at com.liferay.taglib.util.VelocityTaglib.runtime(VelocityTaglib.java:597)
      	at com.liferay.taglib.util.VelocityTaglib.runtime(VelocityTaglib.java:591)
      	at sun.reflect.GeneratedMethodAccessor506.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
      	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
      	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
      	... 158 more
      Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/html/portlet/dockbar/view.jsp': com.liferay.portal.NoSuchRoleException: No Role exists with the key {companyId=10154, name=Social Office User}
      	at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:911)
      	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:840)
      	at com.liferay.portal.kernel.servlet.PageContextWrapper.handlePageException(PageContextWrapper.java:161)
      	at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:2009)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      	... 187 more
      Caused by: javax.servlet.jsp.JspException: ServletException in '/html/portlet/dockbar/view.jsp': com.liferay.portal.NoSuchRoleException: No Role exists with the key {companyId=10154, name=Social Office User}
      	at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
      	at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
      	at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1476)
      	... 190 more
      14:55:45,757 ERROR [PortletRequestDispatcherImpl:123] org.apache.jasper.JasperException: Ha sucedido una excepción al procesar la página JSP /html/portlet/dockbar/view.jsp en línea 23
      
      20: <%@ include file="/html/portlet/dockbar/init.jsp" %>
      21: 
      22: <c:choose>
      23: 	<c:when test='<%= !UserLocalServiceUtil.hasRoleUser(themeDisplay.getCompanyId(), "Social Office User", themeDisplay.getUserId(), true) %>'>
      24: 		<liferay-util:include page="/html/portlet/dockbar/view.portal.jsp" />
      25: 	</c:when>
      26: 	<c:otherwise>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 32 weeks, 4 days ago

                Packages

                Version Package
                --Sprint 11/12
                6.2.0 CE M2