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

Disabling then re-enabling an app throws an exception

    Details

      Description

      Reproduction Steps:

      1. Upload .lpkg theme to /deploy folder
      2. Startup Portal
      3. Go to Control Panel -> Apps -> App Manager
      4. Deactivate and Reactivate the Inspirina Theme

      Exception: 

      020-03-30 18:11:36.255 INFO  [http-nio-7070-exec-5][BundleStartStopLogger:49] STOPPED inspinia-theme_1.0.0.0 [1068]020-03-30 18:11:36.255 INFO  [http-nio-7070-exec-5][BundleStartStopLogger:49] STOPPED inspinia-theme_1.0.0.0 [1068]2020-03-30 18:12:14.781 INFO  [http-nio-7070-exec-8][ThemeHotDeployListener:108] 1 theme for inspinia-theme is available for use2020-03-30 18:12:14.826 INFO  [http-nio-7070-exec-8][BundleStartStopLogger:46] STARTED inspinia-theme_1.0.0.0 [1068]2020-03-30 18:12:17.570 ERROR [liferay/hot_deploy-1][SerialDestination:67] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={defaultLocale=en_US, companyId=20101, groupId=0, principalName=20130, [email protected]36e7be13, siteDefaultLocale=en_US, command=deploy, servletContextName=inspinia-theme, themeDisplayLocale=en_US}}com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.kernel.exception.LayoutFriendlyURLsException: com.liferay.portal.kernel.exception.LayoutFriendlyURLException at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) at com.liferay.portal.messaging.internal.SerialDestination$1.run(SerialDestination.java:62) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664) at java.lang.Thread.run(Thread.java:748)Caused by: com.liferay.portal.kernel.exception.LayoutFriendlyURLsException: com.liferay.portal.kernel.exception.LayoutFriendlyURLException at com.liferay.portal.service.impl.LayoutLocalServiceHelper.validateFriendlyURLs(LayoutLocalServiceHelper.java:504) at com.liferay.portal.service.impl.LayoutLocalServiceHelper.validate(LayoutLocalServiceHelper.java:305) at com.liferay.portal.service.impl.LayoutLocalServiceImpl.addLayout(LayoutLocalServiceImpl.java:233) at com.liferay.portal.service.impl.LayoutLocalServiceImpl.addLayout(LayoutLocalServiceImpl.java:446) at com.liferay.portal.service.impl.LayoutLocalServiceImpl.addLayout(LayoutLocalServiceImpl.java:509) at sun.reflect.GeneratedMethodAccessor249.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice$LayoutLocalServiceStagingInvocationHandler._invoke(LayoutLocalServiceStagingAdvice.java:799) at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice$LayoutLocalServiceStagingInvocationHandler.invoke(LayoutLocalServiceStagingAdvice.java:681) at com.sun.proxy.$Proxy261.addLayout(Unknown Source) at sun.reflect.GeneratedMethodAccessor249.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.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60) 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.$Proxy135.addLayout(Unknown Source) at com.liferay.exportimport.resources.importer.internal.util.FileSystemImporter.addLayout(FileSystemImporter.java:1122) at com.liferay.exportimport.resources.importer.internal.util.FileSystemImporter.addLayouts(FileSystemImporter.java:1414) at com.liferay.exportimport.resources.importer.internal.util.FileSystemImporter.setUpSitemap(FileSystemImporter.java:1960) at com.liferay.exportimport.resources.importer.internal.util.FileSystemImporter.doImportResources(FileSystemImporter.java:1464) at com.liferay.exportimport.resources.importer.internal.util.ResourceImporter.importResources(ResourceImporter.java:110) at com.liferay.exportimport.resources.importer.internal.messaging.ResourcesImporterHotDeployMessageListener._importResources(ResourcesImporterHotDeployMessageListener.java:232) at com.liferay.exportimport.resources.importer.internal.messaging.ResourcesImporterHotDeployMessageListener.initialize(ResourcesImporterHotDeployMessageListener.java:157) at com.liferay.exportimport.resources.importer.internal.messaging.ResourcesImporterHotDeployMessageListener.onDeploy(ResourcesImporterHotDeployMessageListener.java:170) at com.liferay.portal.kernel.messaging.HotDeployMessageListener.doReceive(HotDeployMessageListener.java:55) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26) ... 5 moreCaused by: com.liferay.portal.kernel.exception.LayoutFriendlyURLException at com.liferay.portal.model.impl.LayoutImpl.validateFriendlyURLKeyword(LayoutImpl.java:186) at com.liferay.portal.service.impl.LayoutLocalServiceHelper.validateFriendlyURL(LayoutLocalServiceHelper.java:374) at com.liferay.portal.service.impl.LayoutLocalServiceHelper.validateFriendlyURLs(LayoutLocalServiceHelper.java:497) ... 37 more
      
      

      Reproducible on
      Tomcat 9.0.33 + MySQL 5.9
      Portal 7.2 Git ID 426dd5b3f5ab9f871f653e6331c70783198e261a

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            jacob.cerda Jacob Cerda (Inactive)
            Participants of an Issue:
            Recent user:
            Jacob Cerda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              1 year, 43 weeks, 2 days ago

                Packages

                Version Package