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

7cogs - Error when deploying sevencogs hook - HotDeployException: Error registering hook for sevencogs-hook

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE M2
    • Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
    • Labels:
      None
    • Environment:
      Tomcat 7.0.23 + MySQL 5. 6.2.x GIT ID: c62ec5c96e4c4267874304ae7df7715ea2d3bcbb. 6.2.x Plugins GIT ID: 60d3edb9b9b24df4730a221c9a3f3361c7db5be3.
    • Flagged:
      Impediment
    • Fix Priority:
      4

      Description

      This only affects trunk. 6.1.x is not affected.

      This issue PASSED on:

      • Tomcat 7.0.23 + MySQL 5. 6.2.x Revision: 98210.

      This issue FAILED on:

      • Tomcat 7.0.23 + MySQL 5. 6.2.x Revision: 98211.

      Steps to reproduce:

      1. Deploy the sevencogs-hook, google-maps-portlet, mail-portlet, social-networking-portlet, web-form-portlet, sevencogs-theme, and kaleo-web plugins.
        • There will be a HotDeployException in the console.
      19:42:47,681 ERROR [HotDeployUtil:114] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for sevencogs-hook
      com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for sevencogs-hook
              at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:305)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:111)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:126)
              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:4765)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
              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:662)
      Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:213)
              at com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:93)
              at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:46)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.updateRelease(HookHotDeployListener.java:2152)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1794)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:586)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:302)
              ... 24 more
      Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:213)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:227)
              at com.liferay.sevencogs.hook.upgrade.UpgradeProcess_1_0_0.doUpgrade(UpgradeProcess_1_0_0.java:42)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:210)
              ... 30 more
      Caused by: java.lang.NullPointerException
              at com.liferay.portal.model.impl.LayoutTypePortletImpl.setLayoutTemplateId(LayoutTypePortletImpl.java:1179)
              at com.liferay.sevencogs.hook.upgrade.v1_0_0.UpgradeCompany.addLayout(UpgradeCompany.java:315)
              at com.liferay.sevencogs.hook.upgrade.v1_0_0.UpgradeCompany.setupOrganizations(UpgradeCompany.java:1216)
              at com.liferay.sevencogs.hook.upgrade.v1_0_0.UpgradeCompany.doUpgrade(UpgradeCompany.java:939)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:210)
              ... 33 more

        Attachments

          Activity

            People

            Assignee:
            brian.chiu Brian Chiu (Inactive)
            Reporter:
            brian.chiu Brian Chiu (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 35 weeks, 4 days ago

                Packages

                Version Package
                --Sprint 11/12
                6.2.0 CE M2