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

NoSuchFileEntryTypeException in WorkflowTaskManagerImplTest

    Details

    • Fix Priority:
      3
    • Sprint:
      Upgrade|3.17-3.31|Gazpacho

      Description

      WorkflowTaskManagerImplTest.testApproveDLFileEntryInDLFolderWithWorkflow and WorkflowTaskManagerImplTest.testMovetoTrashAndRestoreFromTrashPendingDLFileEntryInDLFolderWithWorkflow are failing in 7.3.x with:

      com.liferay.portal.kernel.exception.SystemException: com.liferay.document.library.kernel.exception.NoSuchFileEntryTypeException: No DLFileEntryType exists with the primary key -1
      	at com.liferay.portal.kernel.internal.service.persistence.TableMapperImpl.getBaseModels(TableMapperImpl.java:420)
      	at com.liferay.portal.kernel.internal.service.persistence.TableMapperImpl.getRightBaseModels(TableMapperImpl.java:297)
      	at com.liferay.portal.kernel.internal.service.persistence.change.tracking.CTTableMapper.getRightBaseModels(CTTableMapper.java:285)
      	at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFolderPersistenceImpl.getDLFileEntryTypes(DLFolderPersistenceImpl.java:13267)
      	at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFolderPersistenceImpl.getDLFileEntryTypes(DLFolderPersistenceImpl.java:13243)
      	at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFolderPersistenceImpl.getDLFileEntryTypes(DLFolderPersistenceImpl.java:13224)
      	at com.liferay.portlet.documentlibrary.service.base.DLFileEntryTypeLocalServiceBaseImpl.getDLFolderDLFileEntryTypes(DLFileEntryTypeLocalServiceBaseImpl.java:620)
      	at sun.reflect.GeneratedMethodAccessor802.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
      	at com.sun.proxy.$Proxy572.getDLFolderDLFileEntryTypes(Unknown Source)
      	at com.liferay.document.library.kernel.service.DLFileEntryTypeLocalServiceWrapper.getDLFolderDLFileEntryTypes(DLFileEntryTypeLocalServiceWrapper.java:551)
      	at sun.reflect.GeneratedMethodAccessor802.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
      	at com.sun.proxy.$Proxy573.getDLFolderDLFileEntryTypes(Unknown Source)
      	at com.liferay.document.library.kernel.service.DLFileEntryTypeLocalServiceWrapper.getDLFolderDLFileEntryTypes(DLFileEntryTypeLocalServiceWrapper.java:551)
      	at sun.reflect.GeneratedMethodAccessor802.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
      	at com.sun.proxy.$Proxy573.getDLFolderDLFileEntryTypes(Unknown Source)
      	at sun.reflect.GeneratedMethodAccessor802.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      	at com.sun.proxy.$Proxy32.getDLFolderDLFileEntryTypes(Unknown Source)
      	at com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl.deleteFolderDependencies(DLFolderLocalServiceImpl.java:1200)
      	at com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl.deleteAllByRepository(DLFolderLocalServiceImpl.java:203)
      	at sun.reflect.GeneratedMethodAccessor422.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      	at com.sun.proxy.$Proxy115.deleteAllByRepository(Unknown Source)
      	at com.liferay.portal.repository.liferayrepository.LiferayLocalRepository.deleteAll(LiferayLocalRepository.java:215)
      	at com.liferay.portal.repository.util.LocalRepositoryWrapper.deleteAll(LocalRepositoryWrapper.java:121)
      	at com.liferay.portal.repository.util.LocalRepositoryWrapper.deleteAll(LocalRepositoryWrapper.java:121)
      	at com.liferay.portal.repository.util.LocalRepositoryWrapper.deleteAll(LocalRepositoryWrapper.java:121)
      	at com.liferay.portal.repository.util.LocalRepositoryWrapper.deleteAll(LocalRepositoryWrapper.java:121)
      	at com.liferay.portal.repository.util.LocalRepositoryWrapper.deleteAll(LocalRepositoryWrapper.java:121)
      	at com.liferay.portal.repository.capabilities.CapabilityLocalRepository.deleteAll(CapabilityLocalRepository.java:183)
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.deleteRepository(DLAppLocalServiceImpl.java:1315)
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.deleteAllRepositories(DLAppLocalServiceImpl.java:372)
      	at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
      	at com.sun.proxy.$Proxy659.deleteAllRepositories(Unknown Source)
      	at com.liferay.document.library.kernel.service.DLAppLocalServiceWrapper.deleteAllRepositories(DLAppLocalServiceWrapper.java:251)
      	at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
      	at com.sun.proxy.$Proxy660.deleteAllRepositories(Unknown Source)
      	at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      	at com.sun.proxy.$Proxy118.deleteAllRepositories(Unknown Source)
      	at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:920)
      	at sun.reflect.GeneratedMethodAccessor738.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      	at com.sun.proxy.$Proxy39.deleteGroup(Unknown Source)
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl$DeleteGroupActionableDynamicQuery.deleteGroup(CompanyLocalServiceImpl.java:1689)
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl$DeleteGroupActionableDynamicQuery.lambda$new$1(CompanyLocalServiceImpl.java:1672)
      	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:394)
      	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:306)
      	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:268)
      	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:326)
      	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl$DeleteGroupActionableDynamicQuery.performActions(CompanyLocalServiceImpl.java:1695)
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl.doDeleteCompany(CompanyLocalServiceImpl.java:1248)
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl.deleteCompany(CompanyLocalServiceImpl.java:364)
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl.deleteCompany(CompanyLocalServiceImpl.java:348)
      	at sun.reflect.GeneratedMethodAccessor1307.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:80)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      	at com.sun.proxy.$Proxy30.deleteCompany(Unknown Source)
      	at com.liferay.portal.service.base.CompanyLocalServiceBaseImpl.deletePersistedModel(CompanyLocalServiceBaseImpl.java:331)
      	at sun.reflect.GeneratedMethodAccessor1306.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:80)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      	at com.sun.proxy.$Proxy30.deletePersistedModel(Unknown Source)
      	at com.liferay.portal.kernel.test.rule.DeleteAfterTestRunMethodTestRule.removeField(DeleteAfterTestRunMethodTestRule.java:264)
      	at com.liferay.portal.kernel.test.rule.DeleteAfterTestRunMethodTestRule.afterMethod(DeleteAfterTestRunMethodTestRule.java:165)
      	at com.liferay.portal.kernel.test.rule.DeleteAfterTestRunMethodTestRule.afterMethod(DeleteAfterTestRunMethodTestRule.java:51)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:106)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: com.liferay.document.library.kernel.exception.NoSuchFileEntryTypeException: No DLFileEntryType exists with the primary key -1
      	at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryTypePersistenceImpl.findByPrimaryKey(DLFileEntryTypePersistenceImpl.java:3775)
      	at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryTypePersistenceImpl.findByPrimaryKey(DLFileEntryTypePersistenceImpl.java:88)
      	at com.liferay.portal.kernel.internal.service.persistence.TableMapperImpl.getBaseModels(TableMapperImpl.java:416)
      	... 141 more

      Full console log

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alberto.chaparro Alberto Chaparro
              Reporter:
              brooke.dalton Brooke Dalton
              Participants of an Issue:
              Recent user:
              Rodrigo Cunha
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                7 weeks, 2 days ago

                  Packages

                  Version Package