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

Chat Plugin - SentMessageCount does not increase in value when chat messages are sent

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 CE RC2
    • Fix Version/s: None
    • Component/s: Chat
    • Labels:
    • Environment:
      Tomcat 7 + MySQL 5. Portal 6.2.x GIT ID: 47c79ff18e649c191c4b24ccc733b178fcbf88c5.
      Plugins 6.2.x GIT ID: 3a15ff11c48db0328d99f896ab0842b036d91032.
    • Fix Priority:
      3

      Description

      1. Setup portal instance, it is recommended you add these lines:
        .
        Append to portal-ext.properties
         spring.configs=\
                META-INF/base-spring.xml,\
                \
                META-INF/hibernate-spring.xml,\
                META-INF/infrastructure-spring.xml,\
                META-INF/management-spring.xml,\
                \
                META-INF/util-spring.xml,\
                \
                META-INF/jpa-spring.xml,\
                \
                META-INF/executor-spring.xml,\
                \
                META-INF/audit-spring.xml,\
                META-INF/cluster-spring.xml,\
                META-INF/editor-spring.xml,\
                META-INF/jcr-spring.xml,\
                META-INF/ldap-spring.xml,\
                META-INF/messaging-core-spring.xml,\
                META-INF/messaging-misc-spring.xml,\
                META-INF/mobile-device-spring.xml,\
                META-INF/notifications-spring.xml,\
                META-INF/poller-spring.xml,\
                META-INF/rules-spring.xml,\
                META-INF/scheduler-spring.xml,\
                META-INF/scripting-spring.xml,\
                META-INF/search-spring.xml,\
                META-INF/workflow-spring.xml,\
                \
                META-INF/counter-spring.xml,\
                META-INF/mail-spring.xml,\
                META-INF/portal-spring.xml,\
                META-INF/portlet-container-spring.xml,\
                META-INF/staging-spring.xml,\
                META-INF/virtual-layouts-spring.xml,\
                \
                META-INF/monitoring-spring.xml,\
                \
                #META-INF/dynamic-data-source-spring.xml,\
                #META-INF/shard-data-source-spring.xml,\
                #META-INF/memcached-spring.xml,\
                \
                classpath*:META-INF/ext-spring.xml
        
        monitoring.data.sample.thread.local=true    
        monitoring.portal.request=true    
        monitoring.portlet.action.request=true    
        monitoring.portlet.event.request=true    
        monitoring.portlet.render.request=true    
        monitoring.portlet.resource.request=true    
        monitoring.show.per.request.data.sample=true
        
      2. Deploy the chat portlet
      3. Start jconsole, connect to org.apache.catalina.startup.Bootstrap start, if on tomcat
      4. Expand Liferay > MessagingDestinationStatistics > Portal > liferay/hotdeploy > SentMessageCount
      5. Browse to liferay portal and sign in, create a user, open a second browser and sign in as the other user.
      6. As one of the users, send a chat message to the other user

      Expected result:
      The value of SentMessageCount on jconsole is increased by 1

      Actual result:
      The value of SentMessageCount on jconsole stays the same value it started on, resetting the server does not have the value change, spamming messages does not increase the value.

      Sometimes it outputs this error message on restart of the server:
      .

      Error
      17:46:48,955 ERROR [http-bio-8080-exec-1][status_jsp:92] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portal.poller.PollerRequestHandlerImpl.executePollerRequests(PollerRequestHandlerImpl.java:290)
              at com.liferay.portal.poller.PollerRequestHandlerImpl.processRequest(PollerRequestHandlerImpl.java:115)
              at com.liferay.portal.poller.PollerRequestHandlerUtil.processRequest(PollerRequestHandlerUtil.java:39)
              at com.liferay.portal.poller.PollerServlet.getContent(PollerServlet.java:93)
              at com.liferay.portal.poller.PollerServlet.service(PollerServlet.java:47)
              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.BaseFilter.processFilter(BaseFilter.java:169)
              at com.liferay.portal.servlet.filters.jsoncontenttype.JSONContentTypeFilter.processFilter(JSONContentTypeFilter.java:46)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
              at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
              at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
              at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:193)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:185)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
              at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:165)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:165)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:185)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
              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.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
              at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Days since last comment:
                3 years, 3 weeks, 4 days ago

                Packages

                Version Package