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

Upgrade process fails with DDL templates from 6.1.x to 6.2.10

    Details

    • Fix Priority:
      5

      Description

      After upgrading a 6.1.10, 6.1.20 or 6.1.30 bundle with a DDL record created from DDL templates, the console fails when upgrading the Dynamic Data Mapping tables.

      Steps to reproduce:

      1. Start 6.1.10 bundle
      2. Add Data Definition
      3. Add DDL detail (form) template
      4. Upgrade to ee-6.2.10
      5. Assert console exceptions
      Using CATALINA_BASE:   "L:\Private\ee-6.2.10-bundles\tomcat-7.0.42"
      Using CATALINA_HOME:   "L:\Private\ee-6.2.10-bundles\tomcat-7.0.42"
      Using CATALINA_TMPDIR: "L:\Private\ee-6.2.10-bundles\tomcat-7.0.42\temp"
      Using JRE_HOME:        "C:\Program Files\Java\jdk1.7.0_60"
      Using CLASSPATH:       "L:\Private\ee-6.2.10-bundles\tomcat-7.0.42\bin\bootstrap.jar;L:\Private\ee-6.2.10-bundles\tomcat-7.0.42\bin\tomcat-juli.jar"
      Jul 17, 2014 7:14:30 PM org.apache.catalina.core.AprLifecycleListener init
      INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_60\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.
      Jul 17, 2014 7:14:30 PM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["http-bio-8080"]
      Jul 17, 2014 7:14:30 PM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
      Jul 17, 2014 7:14:30 PM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 502 ms
      Jul 17, 2014 7:14:30 PM org.apache.catalina.core.StandardService startInternal
      INFO: Starting service Catalina
      Jul 17, 2014 7:14:30 PM org.apache.catalina.core.StandardEngine startInternal
      INFO: Starting Servlet Engine: Apache Tomcat/7.0.42
      Jul 17, 2014 7:14:30 PM org.apache.catalina.startup.HostConfig deployDescriptor
      INFO: Deploying configuration descriptor L:\Private\ee-6.2.10-bundles\tomcat-7.0.42\conf\Catalina\localhost\ROOT.xml
      Loading jar:file:/L:/Private/ee-6.2.10-bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
      Loading jar:file:/L:/Private/ee-6.2.10-bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
      Loading jar:file:/L:/Private/ee-6.2.10-bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
      Loading file:/L:/Private/ee-6.2.10-bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/classes/portal-ext.properties
      Jul 17, 2014 7:14:40 PM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring root WebApplicationContext
      19:14:44,463 INFO  [localhost-startStop-1][DialectDetector:71] Determine dialect for MySQL 5
      19:14:44,503 INFO  [localhost-startStop-1][DialectDetector:136] Found dialect org.hibernate.dialect.MySQLDialect
      Starting Liferay Portal Enterprise Edition 6.2.10 EE GA1 (Newton / Build 6210 / November 1, 2013)
      19:15:04,364 INFO  [localhost-startStop-1][BaseDB:484] Database does not support case sensitive queries
      19:15:04,573 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.UpgradeProcess_6_2_0
      19:15:04,575 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeSchema
      19:15:10,826 WARN  [localhost-startStop-1][BaseDB:457] Can't DROP 'IX_8DB864A9'; check that column/key exists: drop index IX_8DB864A9 on ResourcePermission;_ [Sanitized]
      19:15:11,906 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeAnnouncements
      19:15:11,931 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeAssetPublisher
      19:15:12,051 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeBlogs
      19:15:12,085 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeBlogsAggregator
      19:15:12,089 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeCalendar
      19:15:12,150 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeCompany
      19:15:12,229 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeCustomizablePortlets
      19:15:12,232 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeDocumentLibrary
      19:15:12,282 INFO  [localhost-startStop-1][Table:155] Starting backup of DLFileEntryType to L:\Private\ee-6.2.10-bundles\tomcat-7.0.42\temp/temp-db-DLFileEntryType-1405624512282
      19:15:12,288 INFO  [localhost-startStop-1][Table:189] Finished backup of DLFileEntryType to L:\Private\ee-6.2.10-bundles\tomcat-7.0.42\temp/temp-db-DLFileEntryType-1405624512282 in 6 ms
      19:15:12,674 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeDynamicDataListDisplay
      19:15:12,678 INFO  [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeDynamicDataMapping
      19:15:12,978 ERROR [localhost-startStop-1][MainServlet:209] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
      com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
              at com.liferay.portal.events.StartupAction.run(StartupAction.java:74)
              at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1238)
              at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:206)
              at javax.servlet.GenericServlet.init(GenericServlet.java:160)
              at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      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:181)
              at com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:114)
              at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:66)
              at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:46)
              at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:138)
              at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:61)
              at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:143)
              at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:160)
              at com.liferay.portal.events.StartupAction.run(StartupAction.java:68)
              ... 19 more
      Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:181)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:195)
              at com.liferay.portal.upgrade.UpgradeProcess_6_2_0.doUpgrade(UpgradeProcess_6_2_0.java:72)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:178)
              ... 27 more
      Caused by: java.lang.NullPointerException
              at com.liferay.portal.upgrade.v6_2_0.UpgradeDynamicDataMapping.updateTemplates(UpgradeDynamicDataMapping.java:203)
              at com.liferay.portal.upgrade.v6_2_0.UpgradeDynamicDataMapping.doUpgrade(UpgradeDynamicDataMapping.java:73)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:178)
              ... 30 more
      Stopping the server due to unexpected startup errors
      

      Expected Result:
      Upgrade successfully

      Actual Result:
      Nullpointer exception thrown in console

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              john.co John Co
              Reporter:
              john.co John Co
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 19 weeks ago

                  Packages

                  Version Package
                  6.2.X EE