Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE B3
    • Fix Version/s: 6.2.0 CE B3
    • Component/s: Testing
    • Labels:
    • Story Points:
      2

      Description

      UserServiceTest must declare test listener without callbacks.

      Steps to reproduce:
      1) cd portal-impl
      2) ant test-class -Dclass=UserServiceTest
      Expected behaviour:
      Tests pass, and no stacktraces are present in log
      Actual behaviour:
      Tests passs, and this stacktrace is present in log:

      [junit] 06:42:19,836 ERROR [Thread-27][TransactionalCallbackAwareExecutionTestListener:92] com.liferay.portal.kernel.search.SearchException: com.liferay.portal.NoSuchContactException: No Contact exists with the primary key 16231
      [junit] com.liferay.portal.kernel.search.SearchException: com.liferay.portal.NoSuchContactException: No Contact exists with the primary key 16231
      [junit] at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:414)
      [junit] at com.liferay.portal.service.impl.UserLocalServiceImpl$1.doCall(UserLocalServiceImpl.java:5513)
      [junit] at com.liferay.portal.service.impl.UserLocalServiceImpl$1.doCall(UserLocalServiceImpl.java:1)
      [junit] at com.liferay.portal.kernel.dao.shard.ShardCallable.call(ShardCallable.java:33)
      [junit] at com.liferay.portal.test.TransactionalCallbackAwareExecutionTestListener.rollbackTransaction(TransactionalCallbackAwareExecutionTestListener.java:40)
      [junit] at com.liferay.portal.test.TransactionalExecutionTestListener.runAfterTest(TransactionalExecutionTestListener.java:62)
      [junit] at com.liferay.portal.kernel.test.TestContextHandler.runAfterTestMethod(TestContextHandler.java:60)
      [junit] at com.liferay.portal.kernel.test.RunAfterTestMethodCallback.evaluate(RunAfterTestMethodCallback.java:61)
      [junit] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      [junit] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      [junit] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      [junit] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      [junit] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      [junit] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      [junit] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      [junit] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      [junit] at com.liferay.portal.kernel.test.RunBeforeTestClassesCallback.evaluate(RunBeforeTestClassesCallback.java:39)
      [junit] at com.liferay.portal.kernel.test.RunAfterTestClassesCallback.evaluate(RunAfterTestClassesCallback.java:42)
      [junit] at com.liferay.portal.test.LiferayIntegrationJUnitTestRunner$1$1.run(LiferayIntegrationJUnitTestRunner.java:59)
      [junit] Caused by: com.liferay.portal.NoSuchContactException: No Contact exists with the primary key 16231
      [junit] at com.liferay.portal.service.persistence.ContactPersistenceImpl.findByPrimaryKey(ContactPersistenceImpl.java:1941)
      [junit] at com.liferay.portal.service.persistence.ContactPersistenceImpl.findByPrimaryKey(ContactPersistenceImpl.java:1959)
      [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.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
      [junit] at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
      [junit] at $Proxy122.findByPrimaryKey(Unknown Source)
      [junit] at com.liferay.portal.service.base.ContactLocalServiceBaseImpl.getContact(ContactLocalServiceBaseImpl.java:301)
      [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.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 $Proxy120.getContact(Unknown Source)
      [junit] at com.liferay.portal.service.ContactLocalServiceUtil.getContact(ContactLocalServiceUtil.java:197)
      [junit] at com.liferay.portal.model.impl.UserImpl.getContact(UserImpl.java:113)
      [junit] at com.liferay.portlet.usersadmin.util.UserIndexer.doReindex(UserIndexer.java:366)
      [junit] at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:408)
      [junit] ... 18 more
      [junit] 06:42:19,842 ERROR [Thread-27][TransactionalCallbackAwareExecutionTestListener:92] com.liferay.portal.NoSuchUserException: No User exists with the primary key 16230
      [junit] com.liferay.portal.NoSuchUserException: No User exists with the primary key 16230
      [junit] at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7198)
      [junit] at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7216)
      [junit] at com.liferay.portal.service.base.UserLocalServiceBaseImpl.getUser(UserLocalServiceBaseImpl.java:332)
      [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.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 $Proxy254.getUser(Unknown Source)
      [junit] at com.liferay.portal.service.UserLocalServiceUtil.getUser(UserLocalServiceUtil.java:213)
      [junit] at com.liferay.portlet.directory.workflow.UserWorkflowHandler.updateStatus(UserWorkflowHandler.java:62)
      [junit] at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.startWorkflowInstance(WorkflowHandlerRegistryUtil.java:163)
      [junit] at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.startWorkflowInstance(WorkflowHandlerRegistryUtil.java:184)
      [junit] at com.liferay.portal.service.impl.UserLocalServiceImpl$2.doCall(UserLocalServiceImpl.java:5689)
      [junit] at com.liferay.portal.service.impl.UserLocalServiceImpl$2.doCall(UserLocalServiceImpl.java:1)
      [junit] at com.liferay.portal.kernel.dao.shard.ShardCallable.call(ShardCallable.java:33)
      [junit] at com.liferay.portal.test.TransactionalCallbackAwareExecutionTestListener.rollbackTransaction(TransactionalCallbackAwareExecutionTestListener.java:40)
      [junit] at com.liferay.portal.test.TransactionalExecutionTestListener.runAfterTest(TransactionalExecutionTestListener.java:62)
      [junit] at com.liferay.portal.kernel.test.TestContextHandler.runAfterTestMethod(TestContextHandler.java:60)
      [junit] at com.liferay.portal.kernel.test.RunAfterTestMethodCallback.evaluate(RunAfterTestMethodCallback.java:61)
      [junit] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      [junit] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      [junit] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      [junit] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      [junit] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      [junit] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      [junit] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      [junit] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      [junit] at com.liferay.portal.kernel.test.RunBeforeTestClassesCallback.evaluate(RunBeforeTestClassesCallback.java:39)
      [junit] at com.liferay.portal.kernel.test.RunAfterTestClassesCallback.evaluate(RunAfterTestClassesCallback.java:42)
      [junit] at com.liferay.portal.test.LiferayIntegrationJUnitTestRunner$1$1.run(LiferayIntegrationJUnitTestRunner.java:59)
      [junit] Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7,586 sec
      [junit] Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7,586 sec

        Attachments

          Activity

            People

            • Assignee:
              mark.jin Mark Jin (Inactive)
              Reporter:
              manuel.delapenya Manuel de la Peña
              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:
                3 years, 47 weeks, 2 days ago