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

Upgrade process from 6.2 to master fails due to "Invalid prefix or suffix" error message

    Details

      Description

      Upgrading a database from a 6.2 version to mater is failing.

      Steps to reproduce

      1. Start up Liferay 6.2 over a clean database.
        • I used both ee-6.2.x branch and 6.2 EE SP8. Both fail to update.
        • One can use the attached MySQL dump, lportal.sql.
      2. Once it is up, stop Liferay.
      3. Start Liferay @ master pointing to the same database.

      Expected results

      • The database would be updated (or at least upgrade errors would happen when importing some specific tables later.)

      Actual results

      • Liferay fails starting with such a message log:
        13:15:35,063 ERROR [localhost-startStop-1][MainServlet:238] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.IllegalArgumentException: Invalid prefix or suffix
        com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.IllegalArgumentException: Invalid prefix or suffix
        	at com.liferay.portal.events.StartupAction.run(StartupAction.java:85)
        	at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1317)
        	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:235)
        	at javax.servlet.GenericServlet.init(GenericServlet.java:158)
        	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
        	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
        	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
        	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5266)
        	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5554)
        	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:652)
        	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
        	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912)
        	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        	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:724)
        Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.IllegalArgumentException: Invalid prefix or suffix
        	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:171)
        	at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:179)
        	at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:151)
        	at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:133)
        	at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:164)
        	at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:81)
        	at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:142)
        	at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:176)
        	at com.liferay.portal.events.StartupAction.run(StartupAction.java:79)
        	... 20 more
        Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.IllegalArgumentException: Invalid prefix or suffix
        	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:171)
        	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:193)
        	at com.liferay.portal.upgrade.UpgradeProcess_7_0_0.doUpgrade(UpgradeProcess_7_0_0.java:67)
        	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:168)
        	... 28 more
        Caused by: java.lang.IllegalArgumentException: Invalid prefix or suffix
        	at java.nio.file.TempFileHelper.generatePath(TempFileHelper.java:63)
        	at java.nio.file.TempFileHelper.create(TempFileHelper.java:127)
        	at java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:161)
        	at java.nio.file.Files.createTempFile(Files.java:803)
        	at com.liferay.portal.upgrade.util.Table.generateTempFile(Table.java:153)
        	at com.liferay.portal.upgrade.util.Table.generateTempFile(Table.java:140)
        	at com.liferay.portal.upgrade.util.BaseUpgradeTableImpl.updateTable(BaseUpgradeTableImpl.java:80)
        	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgradeTable(UpgradeProcess.java:253)
        	at com.liferay.portal.upgrade.v7_0_0.UpgradeContact.doUpgrade(UpgradeContact.java:33)
        	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:168)
        	... 31 more
        

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  7.0.0 Alpha 2