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
    • Similar Issues:
      Show 3 results 

      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)

        Issue Links

          Activity

          Hide
          Alberto Chaparro added a comment - - edited

          We have used the war and hook of this ticket LPP-5179

          Show
          Alberto Chaparro added a comment - - edited We have used the war and hook of this ticket LPP-5179
          Hide
          Alberto Chaparro added a comment -

          working on it

          Show
          Alberto Chaparro added a comment - working on it
          Hide
          Tammy Fong added a comment -

          Committed on:
          Plugins 6.2.x GIT ID: 0d48bd0b621d284dd0c9dda1df4100292963561b.

          Show
          Tammy Fong added a comment - Committed on: Plugins 6.2.x GIT ID: 0d48bd0b621d284dd0c9dda1df4100292963561b.
          Hide
          Mark Jin added a comment - - edited

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.
          Plugins 6.1.20 EE GA2.

          Able to get the error message.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 93fdf237e4721544e644e8136d8546ea88067b1b.
          Plugins 6.1.x EE GIT ID: c309bc22d304cb1da0c75fda927acd6b9c87a64f.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 5b8ea42797253f6a5260ad97250238387c83c077.
          Plugins 6.2.x GIT ID: 8cb85d93aafa082ffecc0db5d86415a6014d4422.

          Unable to get the error message, restart or deploy new kaleo-web works fine.

          Show
          Mark Jin added a comment - - edited PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. Plugins 6.1.20 EE GA2. Able to get the error message. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 93fdf237e4721544e644e8136d8546ea88067b1b. Plugins 6.1.x EE GIT ID: c309bc22d304cb1da0c75fda927acd6b9c87a64f. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 5b8ea42797253f6a5260ad97250238387c83c077. Plugins 6.2.x GIT ID: 8cb85d93aafa082ffecc0db5d86415a6014d4422. Unable to get the error message, restart or deploy new kaleo-web works fine.
          Hide
          Michael Saechang added a comment -

          Thank you Mark for testing. Closing as 'Fixed'.

          Show
          Michael Saechang added a comment - Thank you Mark for testing. Closing as 'Fixed'.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 31 weeks ago

                Development

                  Structure Helper Panel