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

IndexOutOfBoundsException when starting DXP with developer properties

    Details

    • Fix Priority:
      3

      Description

      Upgrade property included in portal-developer.properties causes error on first startup

      Steps to Reproduce:

      1. Build portal (with DXP profile)
      2. Create blank MySQL database
      3. Add the following portal-ext property:
        upgrade.database.auto.run=true
        

        or

        include-and-override=portal-developer.properties
        
      4. Start portal

      Expected Result:
      No error on startup

      Actual Result:

      ERROR [SCR Component Actor][DefaultGuestGroupLogoSwapper:93] bundle com.liferay.portal.properties.swapper:4.0.6 (139)[com.liferay.portal.properties.swapper.internal.DefaultGuestGroupLogoSwapper(7006)] : The activate method has thrown an exception
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
              at java.util.ArrayList.rangeCheck(ArrayList.java:653)
              at java.util.ArrayList.get(ArrayList.java:429)
              at java.util.Collections$UnmodifiableList.get(Collections.java:1309)
              at com.liferay.portal.properties.swapper.internal.DefaultGuestGroupLogoSwapper.activate(DefaultGuestGroupLogoSwapper.java:66)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
              at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
              at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664)
              at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510)
              at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317)
              at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:341)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:114)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:983)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:956)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:765)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:666)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager$1.run(AbstractComponentManager.java:456)
              at org.apache.felix.scr.impl.ComponentActorThread.run(ComponentActorThread.java:113)
              at java.lang.Thread.run(Thread.java:745)
      

      Caught by Poshi Test
      Testray
      Jenkins
      Application Log

      The error showing on testray

      java.lang.Exception:  ## ## 1 Liferay Exception was thrown ##  LIFERAY_ERROR: bundle com.liferay.portal.properties.swapper:4.0.6 (103)[com.liferay.portal.properties.swapper.internal.DefaultGuestGroupLogoSwapper(7006)] : The activate method has thrown an exception   
      

      Reproduced on:
      Master DXP profile: 5377990fd22f5213298724ae2867455b2c653371

      Automation shows this does not occur with CE profile

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              michael.eguina Michael Eguina (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 46 weeks, 3 days ago

                  Packages

                  Version Package
                  7.3.4 CE GA5
                  7.3.10 DXP GA1
                  Master