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

DXP upgrade fails with IndexOutOfBoundsException on Websphere

    Details

      Description

      Steps to reproduce:

      1. Deploy DXP with de-10 installed to WebSphere (see VM Info section)
      2. Have a MySQL 5.6 or similar DB with vanilla 6.2.10 database
      3. Configure the Upgrade Tool
      4. Start the Upgrade Tool

      Result:

      Loading jar:file:/lrhome/liferay_war.ear/liferay.war/WEB-INF/lib/portal-impl.jar!/system.properties
      Loading jar:file:/lrhome/liferay_war.ear/liferay.war/WEB-INF/lib/portal-impl.jar!/portal.properties
      Loading jar:file:/lrhome/portal-tools-db-upgrade-client/com.liferay.portal.tools.db.upgrade.client.jar!/portal-upgrade.properties
      Loading file:/lrhome/portal-tools-db-upgrade-client/portal-upgrade-ext.properties
      Loading file:/lrhome/portal-tools-db-upgrade-client/portal-upgrade-database.properties
      10:25:25,543 INFO  [main][DialectDetector:75] Determine dialect for MySQL 5.6
      10:25:25,632 INFO  [main][DialectDetector:148] Found dialect org.hibernate.dialect.MySQLDialect
      java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterHibernateSessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to get the default Bean Validation factory
      	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:257)
      	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:202)
      	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:97)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterHibernateSessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to get the default Bean Validation factory
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1572)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:736)
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
      	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      	at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
      	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:223)
      	... 2 more
      Caused by: org.hibernate.HibernateException: Unable to get the default Bean Validation factory
      	at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:127)
      	at org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configuration.java:1704)
      	at org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java:1654)
      	at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1445)
      	at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1375)
      	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:658)
      	at com.liferay.portal.spring.hibernate.PortalHibernateConfiguration.buildSessionFactory(PortalHibernateConfiguration.java:70)
      	at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:189)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1631)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)
      	... 15 more
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      	at java.lang.reflect.Method.invoke(Method.java:507)
      	at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:118)
      	... 24 more
      Caused by: org.hibernate.HibernateException: Unable to build the default ValidatorFactory
      	at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:383)
      	at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:109)
      	... 29 more
      Caused by: javax.validation.ValidationException: Could not create Configuration.
      	at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:175)
      	at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:50)
      	at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:380)
      	... 30 more
      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      	at java.util.ArrayList.rangeCheck(ArrayList.java:664)
      	at java.util.ArrayList.get(ArrayList.java:440)
      	at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:173)
      	... 32 more
      Checking to see if all upgrades have completed... done.

      Additional Information:

        Attachments

          Activity

            People

            • Assignee:
              summer.zhang Summer Zhang
              Reporter:
              norbert.kocsis Norbert Kocsis
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 50 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP23
                7.0.X EE
                7.0.4 CE GA5
                Master