Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.0 CE B3
Description
This test class must be properly declared: test listeners and annotations
Steps to reproduce:
1) cd portal-impl
2) ant test-class -Dclass=JournalFolderServiceTest
Expected behaviour:
Tests pass, and no stacktraces are present in log
Actual behaviour:
Tests passs, and this stacktrace is present in log:
[junit] 15:56:05,987 ERROR [liferay/subscription_sender-1][ParallelDestination:92] Unable to process message {destinationName=liferay/subscription_sender, response=null, responseDestinationName=null, responseId=null, [email protected], values={[email protected]4f7351e4, principalName=10193, companyId=0}}
[junit] com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 13101
[junit] at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
[junit] at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
[junit] at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
[junit] at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
[junit] at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
[junit] at java.lang.Thread.run(Thread.java:662)
[junit] Caused by: com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 13101
[junit] at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:7560)
[junit] at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:7578)
[junit] at com.liferay.portal.service.impl.GroupLocalServiceImpl.getGroup(GroupLocalServiceImpl.java:1162)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:117)
[junit] at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
[junit] at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
[junit] at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
[junit] at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
[junit] at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
[junit] at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:186)
[junit] at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:62)
[junit] at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:51)
[junit] at $Proxy128.getGroup(Unknown Source)
[junit] at com.liferay.portal.service.GroupLocalServiceUtil.getGroup(GroupLocalServiceUtil.java:213)
[junit] at com.liferay.portal.model.impl.CompanyImpl.getPortalURL(CompanyImpl.java:154)
[junit] at com.liferay.portal.util.SubscriptionSender.initialize(SubscriptionSender.java:238)
[junit] at com.liferay.portal.util.SubscriptionSender.flushNotifications(SubscriptionSender.java:105)
[junit] at com.liferay.portal.messaging.SubscriptionSenderMessageListener.doReceive(SubscriptionSenderMessageListener.java:48)
[junit] at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
[junit] ... 5 more