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

Kaleo upgrade hook or listener is executed more times than necessary

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed

      Description

      Steps to reproduce in 6.1GA1:
      1. Open clean 6.0.12 bundle and connect mysql database
      2. Install kaleo web plugin
      3. upgrade to 6.1GA1
      4- Deploy kaleo upgrade hook
      5- Deploy new kaleo web
      6- the upgrade is completed successfully
      7- Restart the server
      8- The upgrade hook is executed again and one exception is thrown.

      Steps to reproduce it in 6.1GA2 or 6.2.x:
      1- Open clean 6.1GA1 bundle and connect mysql database
      2- Deploy kaleo upgrade hook
      5- Deploy new kaleo web
      4- upgrade to 6.1GA2 or 6.2.x
      5- For 6.1GA2, deploy kaleo upgrade hook
      6- Deploy new kaleo web
      7- The same exception is thrown.

      To solve it we only have to exceute the kaleo upgrade hook or the listener in case of we are currently using kaleo web 6.0.12 or below (buildnumer 3 or below)

      Exception in both cases:
      23:21:54,260 ERROR [HotDeployUtil:114] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering plugins for kaleo-web
      com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering plugins for kaleo-web
      at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
      at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:58)
      at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:111)
      at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:188)
      at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:40)
      at com.liferay.portal.kernel.servlet.WebContextListener.doPortalInit(WebContextListener.java:53)
      at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
      at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:61)
      at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:53)
      at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
      at com.liferay.portal.kernel.servlet.WebContextListener.contextInitialized(WebContextListener.java:42)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:897)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:873)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095)
      at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: com.liferay.portal.kernel.exception.SystemException: org.postgresql.util.PSQLException: ERROR: column "kaleonodeid" does not exist
      Position: 23
      at com.liferay.portal.workflow.kaleo.upgrade.hook.service.impl.KaleoServiceComponentLocalServiceImpl.getKeyValueMap(KaleoServiceComponentLocalServiceImpl.java:139)
      at com.liferay.portal.workflow.kaleo.upgrade.hook.service.impl.KaleoServiceComponentLocalServiceImpl.initServiceComponent(KaleoServiceComponentLocalServiceImpl.java:67)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 37 weeks, 2 days ago