PUBLIC - Liferay Social Office Community Edition
  1. PUBLIC - Liferay Social Office Community Edition
  2. SOS-1885

Recent Blogs is not displaying any entries and there are exceptions in the console

    Details

    • Fix Priority:
      4
    • Affects Portal Version/s:
      6.2.x
    • Similar Issues:
      Show 4 results 

      Description

      Recent Blogs is not displaying any entries and there are exceptions in the console.

      1. Deploy SO plugins.
      2. Create a new site.
      3. Navigate to the site.
      4. Click "Blogs" to go to the page.

      Actual results: The Recent Blogs portlet is empty and the console shows exceptions.

      Expected results: After adding an entry, it should appear in the Recent Blogs portlet, and there should be no console exceptions even when there are no blogs to be displayed.

      SEVERE: Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP:
      
      An error occurred at line: 23 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp
      preferences cannot be resolved
      20: <%@ include file="/html/portlet/blogs_aggregator/init.jsp" %>
      21:
      22: <%
      23: Map<String, String[]> preferencesMap = preferences.getMap();
      24:
      25: if (preferencesMap.isEmpty()) {
      26:     preferences.setValue("displayStyle", "title");
      
      
      An error occurred at line: 26 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp
      preferences cannot be resolved
      23: Map<String, String[]> preferencesMap = preferences.getMap();
      24:
      25: if (preferencesMap.isEmpty()) {
      26:     preferences.setValue("displayStyle", "title");
      27:     preferences.setValue("enableRssSubscription", "false");
      28:     preferences.setValue("max", "10");
      29:     preferences.setValue("selectionMethod", "scope");
      
      
      An error occurred at line: 27 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp
      preferences cannot be resolved
      24:
      25: if (preferencesMap.isEmpty()) {
      26:     preferences.setValue("displayStyle", "title");
      27:     preferences.setValue("enableRssSubscription", "false");
      28:     preferences.setValue("max", "10");
      29:     preferences.setValue("selectionMethod", "scope");
      30:     preferences.setValue("showTags", "false");
      
      
      An error occurred at line: 28 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp
      preferences cannot be resolved
      25: if (preferencesMap.isEmpty()) {
      26:     preferences.setValue("displayStyle", "title");
      27:     preferences.setValue("enableRssSubscription", "false");
      28:     preferences.setValue("max", "10");
      29:     preferences.setValue("selectionMethod", "scope");
      30:     preferences.setValue("showTags", "false");
      31:
      
      
      An error occurred at line: 29 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp
      preferences cannot be resolved
      26:     preferences.setValue("displayStyle", "title");
      27:     preferences.setValue("enableRssSubscription", "false");
      28:     preferences.setValue("max", "10");
      29:     preferences.setValue("selectionMethod", "scope");
      30:     preferences.setValue("showTags", "false");
      31:
      32:     preferences.store();
      
      
      An error occurred at line: 30 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp
      preferences cannot be resolved
      27:     preferences.setValue("enableRssSubscription", "false");
      28:     preferences.setValue("max", "10");
      29:     preferences.setValue("selectionMethod", "scope");
      30:     preferences.setValue("showTags", "false");
      31:
      32:     preferences.store();
      33: }
      
      
      An error occurred at line: 32 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp
      preferences cannot be resolved
      29:     preferences.setValue("selectionMethod", "scope");
      30:     preferences.setValue("showTags", "false");
      31:
      32:     preferences.store();
      33: }
      34: %>
      35:
      
      
      Stacktrace:
              at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
              at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
              at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
              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:728)
              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:116)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
              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:749)
              at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
              at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
              at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:55)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
              at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3807)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              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:728)
              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:116)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
              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:749)
              at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
              at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
              at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:331)
              at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:128)
              at com.liferay.portal.struts.PortletRequestProcessor.doInclude(PortletRequestProcessor.java:370)
              at com.liferay.portal.struts.PortletRequestProcessor.doForward(PortletRequestProcessor.java:338)
              at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
              at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:341)
              at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
              at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:234)
              at com.liferay.portlet.StrutsPortlet.include(StrutsPortlet.java:296)
              at com.liferay.portlet.StrutsPortlet.doView(StrutsPortlet.java:157)
              at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:213)
              at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
              at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)
              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:618)
              at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:677)
              at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:379)
              at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1242)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.portlet.PortletContainerImpl._doRender(PortletContainerImpl.java:655)
              at com.liferay.portlet.PortletContainerImpl.render(PortletContainerImpl.java:138)
              at com.liferay.portlet.SecurityPortletContainerWrapper.render(SecurityPortletContainerWrapper.java:141)
              at com.liferay.portlet.RestrictPortletContainerWrapper.render(RestrictPortletContainerWrapper.java:126)
              at com.liferay.portal.kernel.portlet.PortletContainerUtil.render(PortletContainerUtil.java:156)
              at com.liferay.portal.layoutconfiguration.util.PortletRenderer._render(PortletRenderer.java:120)
              at com.liferay.portal.layoutconfiguration.util.PortletRenderer.access$4(PortletRenderer.java:107)
              at com.liferay.portal.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:174)
              at com.liferay.portal.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:1)
              at com.liferay.portal.kernel.executor.CopyThreadLocalCallable.call(CopyThreadLocalCallable.java:69)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:722)
      
      18:02:21,680 ERROR [RuntimePageImpl-12][IncludeTag:129] Current URL /web/open-site1/blogs generates exception: Unable to compile class for JSP: ____An error occurred at line: 23 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__20: <%@ include file="/html/portlet/blogs_aggregator/init.jsp" %>__21: __22: <%__23: Map<String, String[]> preferencesMap = preferences.getMap();__24: __25: if (preferencesMap.isEmpty()) {__26:   preferences.setValue("displayStyle", "title");______An error occurred at line: 26 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__23: Map<String, String[]> preferencesMap = preferences.getMap();__24: __25: if (preferencesMap.isEmpty()) {__26:    preferences.setValue("displayStyle", "title");__27:     preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");______An error occurred at line: 27 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__24: __25: if (preferencesMap.isEmpty()) {__26:   preferences.setValue("displayStyle", "title");__27:     preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");______An error occurred at line: 28 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__25: if (preferencesMap.isEmpty()) {__26:        preferences.setValue("displayStyle", "title");__27:     preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");__31: ______An error occurred at line: 29 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__26:       preferences.setValue("displayStyle", "title");__27:     preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");__31: __32:   preferences.store();______An error occurred at line: 30 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__27:   preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");__31: __32:   preferences.store();__33: }______An error occurred at line: 32 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__29:    preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");__31: __32:   preferences.store();__33: }__34: %>__35: ______Stacktrace: [Sanitized]
      org.apache.jasper.JasperException: Unable to compile class for JSP: ____An error occurred at line: 23 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__20: <%@ include file="/html/portlet/blogs_aggregator/init.jsp" %>__21: __22: <%__23: Map<String, String[]> preferencesMap = preferences.getMap();__24: __25: if (preferencesMap.isEmpty()) {__26:       preferences.setValue("displayStyle", "title");______An error occurred at line: 26 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__23: Map<String, String[]> preferencesMap = preferences.getMap();__24: __25: if (preferencesMap.isEmpty()) {__26:    preferences.setValue("displayStyle", "title");__27:     preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");______An error occurred at line: 27 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__24: __25: if (preferencesMap.isEmpty()) {__26:   preferences.setValue("displayStyle", "title");__27:     preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");______An error occurred at line: 28 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__25: if (preferencesMap.isEmpty()) {__26:        preferences.setValue("displayStyle", "title");__27:     preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");__31: ______An error occurred at line: 29 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__26:       preferences.setValue("displayStyle", "title");__27:     preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");__31: __32:   preferences.store();______An error occurred at line: 30 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__27:   preferences.setValue("enableRssSubscription", "false");__28:    preferences.setValue("max", "10");__29:         preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");__31: __32:   preferences.store();__33: }______An error occurred at line: 32 in the jsp file: /html/portlet/blogs_aggregator/view.so-hook.jsp__preferences cannot be resolved__29:    preferences.setValue("selectionMethod", "scope");__30:  preferences.setValue("showTags", "false");__31: __32:   preferences.store();__33: }__34: %>__35: ______Stacktrace: [Sanitized]
              at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
              at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
              at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
              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:728)
              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:116)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
              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:749)
              at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
              at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
      

        Activity

        Hide
        Benjamin Yeh (Inactive) added a comment - - edited

        PASSED Manual Testing following the steps in the description.

        Fixed on:
        Tomcat 7.0.42 + MySQL 5. Portal 6.2.0 CE GA1
        Plugins 6.2.X CE Git ID: 8921493bf863c45ab58a27fb6c29f8e8cfd75d30

        Recent Blogs says if there's an entry or not. No console errors.

        Show
        Benjamin Yeh (Inactive) added a comment - - edited PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0.42 + MySQL 5. Portal 6.2.0 CE GA1 Plugins 6.2.X CE Git ID: 8921493bf863c45ab58a27fb6c29f8e8cfd75d30 Recent Blogs says if there's an entry or not. No console errors.

          People

          • Assignee:
            Benjamin Yeh (Inactive)
            Reporter:
            Mandy Lee
            Participants of an Issue:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response:
              Days since last comment:
              1 year, 15 weeks, 3 days ago

              Development

                Structure Helper Panel