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

upgrade.client IndexOutOfBoundsException: Index: 0, Size: 0

    Details

    • OS:
      Red Hat Enterprise 7
    • JDK:
      Oracle Sun JDK 8
    • Application Servers:
      Apache Tomcat 8.0.x
    • Databases:
      MariaDB 10.0

      Description

      I was upgrading from 7.0.0 CE GA2 to 7.0.0 CE GA3 by running
      java -jar com.liferay.portal.tools.db.upgrade.client.jar -j "-Dfile.encoding=UTF8 -Duser.country=FI -Duser.language=en -Duser.timezone=EET"
      when

      Log
      Loading file:/opt/liferay/liferay-ce-portal-7.0-ga3/tools/portal-tools-db-upgrade-client/portal-upgrade-database.properties
      java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:238)
      	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:183)
      	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:101)
      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
      	at java.util.ArrayList.get(ArrayList.java:429)
      	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.initFramework(ModuleFrameworkImpl.java:272)
      	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.initFramework(ModuleFrameworkUtilAdapter.java:63)
      	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:201)
      	... 2 more
      
      more 
      
      portal-upgrade-database.properties
      jdbc.default.url=jdbc:mariadb://localhost/lportal7?useUnicode=true&characterEnco
      ding=UTF-8&useFastDateParsing=false
      jdbc.default.driverClassName=org.mariadb.jdbc.Driver
      jdbc.default.username=...
      jdbc.default..password=...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              pj Pekka Järveläinen
              Participants of an Issue:
              Recent user:
              Raven Song
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 42 weeks, 3 days ago

                  Packages

                  Version Package
                  Master