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

Insufficient logging during upgrade to Liferay 7

    Details

    • Fix Priority:
      3
    • Databases:
      SQL Server 2008 R2
    • Sprint:
      Sprint 10: Feb, 01 - Feb, 19

      Description

      The below code is an error I received while upgrading. It doesn't tell me what article broke, so I have to try to go through the database to maybe find something that matches "left 0%" somewhere. During an exception in an upgrade process, we need ALL possible data to be output. Ideally the entire row should be dumped to the screen so we can rapidly find and fix the issue.

      03:26:31,426 INFO  [main][UpgradeProcess:65] Completed upgrade process com.liferay.portal.upgrade.UpgradeProcess_6_2_0 in 6833118ms
      com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.IllegalArgumentException: Invalid URL encoding left 0%
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:59)
      	at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:184)
      	at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:152)
      	at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:134)
      	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:145)
      	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:67)
      Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.IllegalArgumentException: Invalid URL encoding left 0%
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:59)
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:83)
      	at com.liferay.portal.upgrade.UpgradeProcess_6_2_0.doUpgrade(UpgradeProcess_6_2_0.java:76)
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:56)
      	... 7 more
      Caused by: java.lang.IllegalArgumentException: Invalid URL encoding left 0%
      	at com.liferay.portal.kernel.util.URLCodec._getEncodedByteBuffer(URLCodec.java:280)
      	at com.liferay.portal.kernel.util.URLCodec.decodeURL(URLCodec.java:60)
      	at com.liferay.portal.util.HttpImpl.decodeURL(HttpImpl.java:285)
      	at com.liferay.portal.util.HttpImpl.decodeURL(HttpImpl.java:272)
      	at com.liferay.portal.kernel.util.HttpUtil.decodeURL(HttpUtil.java:67)
      	at com.liferay.journal.util.impl.JournalConverterImpl.updateJournalXSDDynamicElement(JournalConverterImpl.java:943)
      	at com.liferay.journal.util.impl.JournalConverterImpl.updateJournalXSDDynamicElement(JournalConverterImpl.java:1046)
      	at com.liferay.journal.util.impl.JournalConverterImpl.updateJournalXSDDynamicElement(JournalConverterImpl.java:1046)
      	at com.liferay.journal.util.impl.JournalConverterImpl.updateJournalXSDDynamicElement(JournalConverterImpl.java:1046)
      	at com.liferay.journal.util.impl.JournalConverterImpl.getDDMXSD(JournalConverterImpl.java:219)
      	at com.liferay.journal.internal.JournalConverterManagerImpl.getDDMXSD(JournalConverterManagerImpl.java:35)
      	at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at com.liferay.portal.kernel.util.ProxyFactory$ServiceTrackedInvocationHandler.invoke(ProxyFactory.java:116)
      	at com.sun.proxy.$Proxy319.getDDMXSD(Unknown Source)
      	at com.liferay.journal.kernel.util.JournalConverterManagerUtil.getDDMXSD(JournalConverterManagerUtil.java:31)
      	at com.liferay.portal.upgrade.v6_2_0.UpgradeJournal.addDDMStructure(UpgradeJournal.java:94)
      	at com.liferay.portal.upgrade.v6_2_0.UpgradeJournal.addDDMStructure(UpgradeJournal.java:132)
      	at com.liferay.portal.upgrade.v6_2_0.UpgradeJournal.updateStructure(UpgradeJournal.java:465)
      	at com.liferay.portal.upgrade.v6_2_0.UpgradeJournal.updateStructures(UpgradeJournal.java:527)
      	at com.liferay.portal.upgrade.v6_2_0.UpgradeJournal.doUpgrade(UpgradeJournal.java:221)
      	at 
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lino.alves Lino Alves
              Reporter:
              brett.swaim Brett Swaim
              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:
                4 years, 41 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 Beta 8