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

Message Board portlet preview causes a console error

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE M3
    • Fix Version/s: 6.2.0 CE M3
    • Labels:
      None
    • Environment:
      Tomcat 7 + MySQL 5. Firefox 12.0. Portal 6.2.x GIT ID: 40fb9f713bf6134eb94b14a028dca0ce17edad0a

      Description

      1. Add a Message Boards portlet to a page.
      2. Click Post New Thread
      3. Add text to Subject and Body.
      4. Click Preview

      The preview doesn't appear to be functioning. Console errors occur upon clicking preview.

      Dec 13, 2012 12:07:39 AM org.apache.catalina.core.ApplicationDispatcher invoke
      SEVERE: Servlet.service() for servlet jsp threw exception
      com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 0
      at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:4960)
      at com.liferay.portal.service.impl.GroupLocalServiceImpl.getGroup(GroupLocalServiceImpl.java:905)
      at sun.reflect.GeneratedMethodAccessor704.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:162)
      at $Proxy23.getGroup(Unknown Source)
      at com.liferay.portal.service.GroupLocalServiceUtil.getGroup(GroupLocalServiceUtil.java:183)
      at com.liferay.portal.portletfilerepository.PortletFileRepositoryImpl.getPortletRepository(PortletFileRepositoryImpl.java:306)
      at com.liferay.portal.portletfilerepository.PortletFileRepositoryUtil.getPortletRepository(PortletFileRepositoryUtil.java:177)
      at com.liferay.portlet.messageboards.model.impl.MBMessageImpl.getAttachmentsFolderId(MBMessageImpl.java:86)
      at com.liferay.portlet.messageboards.model.impl.MBMessageImpl.getDeletedAttachmentsFileEntries(MBMessageImpl.java:126)
      at com.liferay.portlet.messageboards.model.impl.MBMessageImpl.getDeletedAttachmentsFileEntries(MBMessageImpl.java:118)
      at org.apache.jsp.html.portlet.message_005fboards.view_005fthread_005fmessage_jsp._jspService(view_005fthread_005fmessage_jsp.java:1819)
      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)
      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:75)
      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.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:53)
      at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:292)
      at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:200)
      at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:81)
      at org.apache.jsp.html.portlet.message_005fboards.edit_005fmessage_jsp._jspx_meth_liferay_002dutil_005finclude_005f0(edit_005fmessage_jsp.java:3219)
      at org.apache.jsp.html.portlet.message_005fboards.edit_005fmessage_jsp._jspService(edit_005fmessage_jsp.java:905)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:55)
      at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:292)
      at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:200)
      at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:81)
      at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3829)
      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)
      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:75)
      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.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:322)
      at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:120)
      at com.liferay.portal.struts.PortletRequestProcessor.doInclude(PortletRequestProcessor.java:371)
      at com.liferay.portal.struts.PortletRequestProcessor.doForward(PortletRequestProcessor.java:341)
      at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
      at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
      at com.liferay.portal.struts.PortletRequestProcessor.processForwardConfig(PortletRequestProcessor.java:479)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
      at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:237)
      at com.liferay.portlet.StrutsPortlet.include(StrutsPortlet.java:294)
      at com.liferay.portlet.StrutsPortlet.doView(StrutsPortlet.java:155)
      at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:215)
      at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
      at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
      at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
      at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:554)
      at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:613)
      at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:360)
      at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1202)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:55)
      at com.liferay.portlet.PortletContainerImpl._doRender(PortletContainerImpl.java:769)
      at com.liferay.portlet.PortletContainerImpl.render(PortletContainerImpl.java:141)
      at com.liferay.portlet.RestrictPortletContainerWrapper.render(RestrictPortletContainerWrapper.java:122)
      at com.liferay.portal.kernel.portlet.PortletContainerUtil.render(PortletContainerUtil.java:155)
      at com.liferay.portlet.layoutconfiguration.util.PortletRenderer._render(PortletRenderer.java:120)
      at com.liferay.portlet.layoutconfiguration.util.PortletRenderer.access$4(PortletRenderer.java:107)
      at com.liferay.portlet.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:175)
      at com.liferay.portlet.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:1)
      at com.liferay.portal.kernel.executor.CopyThreadLocalCallable.call(CopyThreadLocalCallable.java:68)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:675)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:586)
      at java.lang.Thread.run(Thread.java:619)
      00:07:39,941 ERROR [com.liferay.portlet.layoutconfiguration.util.RuntimePageImpl-2][IncludeTag:206] Current URL /web/guest/home?p_p_auth=0feyE8Zf&p_p_id=19&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_19_struts_action=%2Fmessage_boards%2Fedit_message&_19_redirect=http%3A%2F%2Flocalhost%3A8080%2Fw
      eb%2Fguest%2Fhome%3Fp_p_id%3D19%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26_19_p_v_g_id%3D10178%26_19_dataType%3Djson%26_19_cmd%3Dadd%26_19_currentURL%3D%252F%26_19_doAsUserId%3D&_19_messageId=10447&_19_preview=true generates exception: javax.servlet.Servlet
      Exception: com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 0
      00:07:39,978 ERROR [com.liferay.portlet.layoutconfiguration.util.RuntimePageImpl-2][IncludeTag:154] com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 0
      at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:4960)
      at com.liferay.portal.service.impl.GroupLocalServiceImpl.getGroup(GroupLocalServiceImpl.java:905)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:162)
      at com.liferay.portal.service.GroupLocalServiceUtil.getGroup(GroupLocalServiceUtil.java:183)
      at com.liferay.portal.portletfilerepository.PortletFileRepositoryImpl.getPortletRepository(PortletFileRepositoryImpl.java:306)
      at com.liferay.portal.portletfilerepository.PortletFileRepositoryUtil.getPortletRepository(PortletFileRepositoryUtil.java:177)
      at com.liferay.portlet.messageboards.model.impl.MBMessageImpl.getAttachmentsFolderId(MBMessageImpl.java:86)
      at com.liferay.portlet.messageboards.model.impl.MBMessageImpl.getDeletedAttachmentsFileEntries(MBMessageImpl.java:126)
      at com.liferay.portlet.messageboards.model.impl.MBMessageImpl.getDeletedAttachmentsFileEntries(MBMessageImpl.java:118)
      at org.apache.jsp.html.portlet.message_005fboards.view_005fthread_005fmessage_jsp._jspService(view_005fthread_005fmessage_jsp.java:1819)
      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)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jeffrey.yang Jeffrey Yang (Inactive)
                Reporter:
                kenji.heigel Kenji Heigel
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 51 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.0 CE M3