Details

    • Type: Bug Bug
    • Status: Closed
    • 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
    • Similar Issues:
      Show 5 results 

      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

        Activity

        Hide
        Mark Jin added a comment -

        PASSED Manual Testing following the steps in the description.

        Reproduced on:
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: e53e01f63fb49557af7c1f5fc02f262afbf10230.

        D:\62x_CE\portal\portal-impl>ant test-class -Dclass=UserServiceTest
        Buildfile: D:\62x_CE\portal\portal-impl\build.xml
        
        compile:
        
        compile-dependencies:
             [copy] Copying 11 files to D:\62x_CE\portal\portal-impl\classes\com\liferay\portal\deploy\dependencies
        
        build-common-java.compile:
        
        print-current-time:
             [echo] 八月 30, 2013 at 07:51 上午
        
        compile-test:
        
        compile-test:
        
        compile-test-integration:
        
        compile-test-cmd:
        
        compile-test-unit:
        
        compile-test-cmd:
            [mkdir] Created dir: D:\62x_CE\portal\portal-service\test-classes\unit
            [mkdir] Created dir: D:\62x_CE\portal\portal-service\test-results\unit
             [copy] Copying 1 file to D:\62x_CE\portal\portal-service\test-classes\unit
            [javac] Compiling 124 source files to D:\62x_CE\portal\portal-service\test-classes\unit
        
        build-common.compile-test:
        
        compile-test-integration:
        
        compile-test-cmd:
            [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-classes\integration
            [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-results\integration
             [copy] Copying 441 files to D:\62x_CE\portal\portal-impl\test-classes\integration
            [javac] Compiling 522 source files to D:\62x_CE\portal\portal-impl\test-classes\integration
        
        compile-test-unit:
        
        compile-test-cmd:
            [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-classes\unit
            [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-results\unit
             [copy] Copying 105 files to D:\62x_CE\portal\portal-impl\test-classes\unit
            [javac] Compiling 121 source files to D:\62x_CE\portal\portal-impl\test-classes\unit
        
        test-class:
        
        test-cmd:
            [junit] Loading file:/D:/62x_CE/portal/portal-impl/classes/system.properties
            [junit] Loading file:/D:/62x_CE/portal/portal-impl/test-classes/unit/system-ext.properties
            [junit] Loading file:/D:/62x_CE/portal/portal-impl/classes/portal.properties
            [junit] Loading file:/D:/62x_CE/portal/portal-impl/test-classes/integration/portal-test.properties
            [junit] Running com.liferay.portal.service.UserServiceTest
            [junit] Testsuite: com.liferay.portal.service.UserServiceTest
            [junit] -- listing properties --
            [junit] company.web.id=liferay.com
            [junit] dl.file.entry.processors.trigger.synchronously=true
            [junit] include-and-override=test-portal-impl-ext.properties
            [junit] junit.delay.factor=1
            [junit] portal.url=http://localhost:8080
            [junit] user.password=test
            [junit]
            [junit] -- updated properties --
            [junit] company.web.id=liferay.com
            [junit] dl.file.entry.processors.trigger.synchronously=true
            [junit] include-and-override=test-portal-impl-ext.properties
            [junit] junit.delay.factor=1
            [junit] portal.url=http://localhost:8080
            [junit] user.password=test
            [junit]
            [junit] 23:51:46,548 ERROR [Thread-27][TransactionalCallbackAwareExecutionTestListener:43] com.liferay.portal.kernel
        .search.SearchException: com.liferay.portal.NoSuchContactException: No Contact exists with the primary key 11231
            [junit] com.liferay.portal.kernel.search.SearchException: com.liferay.portal.NoSuchContactException: No Contact exis
        ts with the primary key 11231
            [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(Transacti
        onalCallbackAwareExecutionTestListener.java:40)
            [junit]     at com.liferay.portal.test.TransactionalExecutionTestListener.runAfterTest(TransactionalExecutionTestLis
        tener.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.jav
        a:39)
            [junit]     at com.liferay.portal.kernel.test.RunAfterTestClassesCallback.evaluate(RunAfterTestClassesCallback.java:
        42)
            [junit]     at com.liferay.portal.test.LiferayIntegrationJUnitTestRunner$1$1.run(LiferayIntegrationJUnitTestRunner.j
        ava:59)
            [junit] Caused by: com.liferay.portal.NoSuchContactException: No Contact exists with the primary key 11231
            [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:57)
            [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            [junit]     at java.lang.reflect.Method.invoke(Method.java:606)
            [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 com.sun.proxy.$Proxy124.findByPrimaryKey(Unknown Source)
            [junit]     at com.liferay.portal.service.base.ContactLocalServiceBaseImpl.getContact(ContactLocalServiceBaseImpl.ja
        va:301)
            [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            [junit]     at java.lang.reflect.Method.invoke(Method.java:606)
            [junit]     at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:11
        7)
            [junit]     at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.j
        ava:62)
            [junit]     at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
            [junit]     at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:11
        3)
            [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 com.sun.proxy.$Proxy122.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] 23:51:46,572 ERROR [Thread-27][TransactionalCallbackAwareExecutionTestListener:43] com.liferay.portal.NoSuch
        UserException: No User exists with the primary key 11230
            [junit] com.liferay.portal.NoSuchUserException: No User exists with the primary key 11230
            [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:57)
            [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            [junit]     at java.lang.reflect.Method.invoke(Method.java:606)
            [junit]     at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:11
        7)
            [junit]     at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.j
        ava:62)
            [junit]     at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
            [junit]     at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:11
        3)
            [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 com.sun.proxy.$Proxy256.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(WorkflowHandlerR
        egistryUtil.java:163)
            [junit]     at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.startWorkflowInstance(WorkflowHandlerR
        egistryUtil.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(Transacti
        onalCallbackAwareExecutionTestListener.java:40)
            [junit]     at com.liferay.portal.test.TransactionalExecutionTestListener.runAfterTest(TransactionalExecutionTestLis
        tener.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.jav
        a:39)
            [junit]     at com.liferay.portal.kernel.test.RunAfterTestClassesCallback.evaluate(RunAfterTestClassesCallback.java:
        42)
            [junit]     at com.liferay.portal.test.LiferayIntegrationJUnitTestRunner$1$1.run(LiferayIntegrationJUnitTestRunner.j
        ava:59)
            [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 13.179 sec
            [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 13.179 sec
            [junit]
        
        report-test-coverage:
        
        BUILD SUCCESSFUL
        Total time: 53 seconds
        
        D:\62x_CE\portal\portal-impl>
        

        Fixed on:
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 48799955226a05624340f8c56fceb2165308458d.

        D:\62x_CE\portal\portal-impl>ant test-class -Dclass=UserServiceTest
        Buildfile: D:\62x_CE\portal\portal-impl\build.xml
        
        compile:
        
        compile-dependencies:
             [copy] Copying 11 files to D:\62x_CE\portal\portal-impl\classes\com\liferay\portal\deploy\dependencies
        
        build-common-java.compile:
        
        print-current-time:
             [echo] 八月 30, 2013 at 07:56 上午
        
        compile-test:
        
        compile-test:
        
        compile-test-integration:
        
        compile-test-cmd:
        
        compile-test-unit:
        
        compile-test-cmd:
            [mkdir] Created dir: D:\62x_CE\portal\portal-service\test-classes\unit
            [mkdir] Created dir: D:\62x_CE\portal\portal-service\test-results\unit
             [copy] Copying 1 file to D:\62x_CE\portal\portal-service\test-classes\unit
            [javac] Compiling 124 source files to D:\62x_CE\portal\portal-service\test-classes\unit
        
        build-common.compile-test:
        
        compile-test-integration:
        
        compile-test-cmd:
            [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-classes\integration
            [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-results\integration
             [copy] Copying 441 files to D:\62x_CE\portal\portal-impl\test-classes\integration
            [javac] Compiling 522 source files to D:\62x_CE\portal\portal-impl\test-classes\integration
        
        compile-test-unit:
        
        compile-test-cmd:
            [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-classes\unit
            [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-results\unit
             [copy] Copying 105 files to D:\62x_CE\portal\portal-impl\test-classes\unit
            [javac] Compiling 121 source files to D:\62x_CE\portal\portal-impl\test-classes\unit
        
        test-class:
        
        test-cmd:
            [junit] Loading file:/D:/62x_CE/portal/portal-impl/classes/system.properties
            [junit] Loading file:/D:/62x_CE/portal/portal-impl/test-classes/unit/system-ext.properties
            [junit] Loading file:/D:/62x_CE/portal/portal-impl/classes/portal.properties
            [junit] Loading file:/D:/62x_CE/portal/portal-impl/test-classes/integration/portal-test.properties
            [junit] Running com.liferay.portal.service.UserServiceTest
            [junit] Testsuite: com.liferay.portal.service.UserServiceTest
            [junit] -- listing properties --
            [junit] company.web.id=liferay.com
            [junit] dl.file.entry.processors.trigger.synchronously=true
            [junit] include-and-override=test-portal-impl-ext.properties
            [junit] junit.delay.factor=1
            [junit] portal.url=http://localhost:8080
            [junit] user.password=test
            [junit]
            [junit] -- updated properties --
            [junit] company.web.id=liferay.com
            [junit] dl.file.entry.processors.trigger.synchronously=true
            [junit] include-and-override=test-portal-impl-ext.properties
            [junit] junit.delay.factor=1
            [junit] portal.url=http://localhost:8080
            [junit] user.password=test
            [junit]
            [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 5.426 sec
            [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 5.426 sec
            [junit]
        
        report-test-coverage:
        
        BUILD SUCCESSFUL
        Total time: 44 seconds
        
        D:\62x_CE\portal\portal-impl>
        
        Show
        Mark Jin added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: e53e01f63fb49557af7c1f5fc02f262afbf10230. D:\62x_CE\portal\portal-impl>ant test-class -Dclass=UserServiceTest Buildfile: D:\62x_CE\portal\portal-impl\build.xml compile: compile-dependencies: [copy] Copying 11 files to D:\62x_CE\portal\portal-impl\classes\com\liferay\portal\deploy\dependencies build-common-java.compile: print-current-time: [echo] 八月 30, 2013 at 07:51 上午 compile-test: compile-test: compile-test-integration: compile-test-cmd: compile-test-unit: compile-test-cmd: [mkdir] Created dir: D:\62x_CE\portal\portal-service\test-classes\unit [mkdir] Created dir: D:\62x_CE\portal\portal-service\test-results\unit [copy] Copying 1 file to D:\62x_CE\portal\portal-service\test-classes\unit [javac] Compiling 124 source files to D:\62x_CE\portal\portal-service\test-classes\unit build-common.compile-test: compile-test-integration: compile-test-cmd: [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-classes\integration [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-results\integration [copy] Copying 441 files to D:\62x_CE\portal\portal-impl\test-classes\integration [javac] Compiling 522 source files to D:\62x_CE\portal\portal-impl\test-classes\integration compile-test-unit: compile-test-cmd: [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-classes\unit [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-results\unit [copy] Copying 105 files to D:\62x_CE\portal\portal-impl\test-classes\unit [javac] Compiling 121 source files to D:\62x_CE\portal\portal-impl\test-classes\unit test-class: test-cmd: [junit] Loading file:/D:/62x_CE/portal/portal-impl/classes/system.properties [junit] Loading file:/D:/62x_CE/portal/portal-impl/test-classes/unit/system-ext.properties [junit] Loading file:/D:/62x_CE/portal/portal-impl/classes/portal.properties [junit] Loading file:/D:/62x_CE/portal/portal-impl/test-classes/integration/portal-test.properties [junit] Running com.liferay.portal.service.UserServiceTest [junit] Testsuite: com.liferay.portal.service.UserServiceTest [junit] -- listing properties -- [junit] company.web.id=liferay.com [junit] dl.file.entry.processors.trigger.synchronously= true [junit] include-and-override=test-portal-impl-ext.properties [junit] junit.delay.factor=1 [junit] portal.url=http: //localhost:8080 [junit] user.password=test [junit] [junit] -- updated properties -- [junit] company.web.id=liferay.com [junit] dl.file.entry.processors.trigger.synchronously= true [junit] include-and-override=test-portal-impl-ext.properties [junit] junit.delay.factor=1 [junit] portal.url=http: //localhost:8080 [junit] user.password=test [junit] [junit] 23:51:46,548 ERROR [ Thread -27][TransactionalCallbackAwareExecutionTestListener:43] com.liferay.portal.kernel .search.SearchException: com.liferay.portal.NoSuchContactException: No Contact exists with the primary key 11231 [junit] com.liferay.portal.kernel.search.SearchException: com.liferay.portal.NoSuchContactException: No Contact exis ts with the primary key 11231 [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(Transacti onalCallbackAwareExecutionTestListener.java:40) [junit] at com.liferay.portal.test.TransactionalExecutionTestListener.runAfterTest(TransactionalExecutionTestLis tener.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.jav a:39) [junit] at com.liferay.portal.kernel.test.RunAfterTestClassesCallback.evaluate(RunAfterTestClassesCallback.java: 42) [junit] at com.liferay.portal.test.LiferayIntegrationJUnitTestRunner$1$1.run(LiferayIntegrationJUnitTestRunner.j ava:59) [junit] Caused by: com.liferay.portal.NoSuchContactException: No Contact exists with the primary key 11231 [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:57) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [junit] at java.lang.reflect.Method.invoke(Method.java:606) [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 com.sun.proxy.$Proxy124.findByPrimaryKey(Unknown Source) [junit] at com.liferay.portal.service.base.ContactLocalServiceBaseImpl.getContact(ContactLocalServiceBaseImpl.ja va:301) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [junit] at java.lang.reflect.Method.invoke(Method.java:606) [junit] at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:11 7) [junit] at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.j ava:62) [junit] at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52) [junit] at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:11 3) [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 com.sun.proxy.$Proxy122.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] 23:51:46,572 ERROR [ Thread -27][TransactionalCallbackAwareExecutionTestListener:43] com.liferay.portal.NoSuch UserException: No User exists with the primary key 11230 [junit] com.liferay.portal.NoSuchUserException: No User exists with the primary key 11230 [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:57) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [junit] at java.lang.reflect.Method.invoke(Method.java:606) [junit] at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:11 7) [junit] at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.j ava:62) [junit] at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52) [junit] at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:11 3) [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 com.sun.proxy.$Proxy256.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(WorkflowHandlerR egistryUtil.java:163) [junit] at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.startWorkflowInstance(WorkflowHandlerR egistryUtil.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(Transacti onalCallbackAwareExecutionTestListener.java:40) [junit] at com.liferay.portal.test.TransactionalExecutionTestListener.runAfterTest(TransactionalExecutionTestLis tener.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.jav a:39) [junit] at com.liferay.portal.kernel.test.RunAfterTestClassesCallback.evaluate(RunAfterTestClassesCallback.java: 42) [junit] at com.liferay.portal.test.LiferayIntegrationJUnitTestRunner$1$1.run(LiferayIntegrationJUnitTestRunner.j ava:59) [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 13.179 sec [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 13.179 sec [junit] report-test-coverage: BUILD SUCCESSFUL Total time: 53 seconds D:\62x_CE\portal\portal-impl> Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 48799955226a05624340f8c56fceb2165308458d. D:\62x_CE\portal\portal-impl>ant test-class -Dclass=UserServiceTest Buildfile: D:\62x_CE\portal\portal-impl\build.xml compile: compile-dependencies: [copy] Copying 11 files to D:\62x_CE\portal\portal-impl\classes\com\liferay\portal\deploy\dependencies build-common-java.compile: print-current-time: [echo] 八月 30, 2013 at 07:56 上午 compile-test: compile-test: compile-test-integration: compile-test-cmd: compile-test-unit: compile-test-cmd: [mkdir] Created dir: D:\62x_CE\portal\portal-service\test-classes\unit [mkdir] Created dir: D:\62x_CE\portal\portal-service\test-results\unit [copy] Copying 1 file to D:\62x_CE\portal\portal-service\test-classes\unit [javac] Compiling 124 source files to D:\62x_CE\portal\portal-service\test-classes\unit build-common.compile-test: compile-test-integration: compile-test-cmd: [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-classes\integration [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-results\integration [copy] Copying 441 files to D:\62x_CE\portal\portal-impl\test-classes\integration [javac] Compiling 522 source files to D:\62x_CE\portal\portal-impl\test-classes\integration compile-test-unit: compile-test-cmd: [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-classes\unit [mkdir] Created dir: D:\62x_CE\portal\portal-impl\test-results\unit [copy] Copying 105 files to D:\62x_CE\portal\portal-impl\test-classes\unit [javac] Compiling 121 source files to D:\62x_CE\portal\portal-impl\test-classes\unit test-class: test-cmd: [junit] Loading file:/D:/62x_CE/portal/portal-impl/classes/system.properties [junit] Loading file:/D:/62x_CE/portal/portal-impl/test-classes/unit/system-ext.properties [junit] Loading file:/D:/62x_CE/portal/portal-impl/classes/portal.properties [junit] Loading file:/D:/62x_CE/portal/portal-impl/test-classes/integration/portal-test.properties [junit] Running com.liferay.portal.service.UserServiceTest [junit] Testsuite: com.liferay.portal.service.UserServiceTest [junit] -- listing properties -- [junit] company.web.id=liferay.com [junit] dl.file.entry.processors.trigger.synchronously= true [junit] include-and-override=test-portal-impl-ext.properties [junit] junit.delay.factor=1 [junit] portal.url=http: //localhost:8080 [junit] user.password=test [junit] [junit] -- updated properties -- [junit] company.web.id=liferay.com [junit] dl.file.entry.processors.trigger.synchronously= true [junit] include-and-override=test-portal-impl-ext.properties [junit] junit.delay.factor=1 [junit] portal.url=http: //localhost:8080 [junit] user.password=test [junit] [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 5.426 sec [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 5.426 sec [junit] report-test-coverage: BUILD SUCCESSFUL Total time: 44 seconds D:\62x_CE\portal\portal-impl>

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 30 weeks, 4 days ago

              Development

                Structure Helper Panel