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

Blogs - NoSuchUserException and Email does not get sent when flagging a Blogs Entry as inappropriate

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.2.0 CE B3, 6.2.0 CE RC1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 13.04 on Firefox with Java 1.7.0_21, MySQL 5.5, Tomcat 7.0.39, and Portal CE (GitID: 48af2ec45d915e34d3044988043760898904b84f )
    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Add the Blogs Portlet to a Page
      2. Add a Blogs Entry
      3. Click the flag button for the Blog Entry
      4. Select a reason from the drop-down menu and click Save
      5. The following NoSuchUserException will display in the console, an email will not be sent to the Admin

      Exception Stacktrace:

       11:19:34,327 ERROR [liferay/flags-1][ParallelDestination:92] Unable to process message {destinationName=liferay/flags, response=null, responseDestinationName=null, responseId=null, payload={className=, classPK=0, comments=null, contentTitle=, contentURL=, reason=, reportedUserId=0, reporterEmailAddress=, [email protected]4}, values={[email protected]705dd608, principalName=2, companyId=1}}
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.NoSuchUserException: No User exists with the primary key 0
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
      	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)
      Caused by: com.liferay.portal.NoSuchUserException: No User exists with the primary key 0
      	at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7198)
      	at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7216)
      	at sun.reflect.GeneratedMethodAccessor394.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
      	at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
      	at com.sun.proxy.$Proxy617.findByPrimaryKey(Unknown Source)
      	at com.liferay.portal.service.impl.UserLocalServiceImpl.getUserById(UserLocalServiceImpl.java:2639)
      	at sun.reflect.GeneratedMethodAccessor409.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:117)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:186)
      	at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:62)
      	at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:51)
      	at com.sun.proxy.$Proxy251.getUserById(Unknown Source)
      	at com.liferay.portal.service.UserLocalServiceUtil.getUserById(UserLocalServiceUtil.java:2127)
      	at com.liferay.portlet.flags.messaging.FlagsRequestMessageListener.doReceive(FlagsRequestMessageListener.java:110)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	... 5 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eudaldo.alonso Eudaldo Alonso
              Reporter:
              james.lefeu James Lefeu (Inactive)
              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:
                8 years, 19 weeks, 6 days ago

                  Packages

                  Version Package