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

Upgrade errors if you used staging in 6.2

    Details

      Description

      Steps to Reproduce

      1. Start up an instance of 6.2.x
      2. Create a new blank site
      3. Enable remote staging, with the live site being the Guest site (use localhost as the host name to keep things simple)
      4. Publish one or more times
      5. Shutdown the server
      6. Run the upgrade tool

      Expected behavior is the upgrade doesn't raise any errors.

      Actual behavior is you receive multiple IllegalStateExceptions during the upgrade.

      java.lang.IllegalStateException: Unable to deserialize object
      	at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:188)
      	at com.liferay.portal.dao.orm.hibernate.MapType.nullSafeGet(MapType.java:99)
      	at org.hibernate.type.CompositeCustomType.nullSafeGet(CompositeCustomType.java:213)
      	at org.hibernate.type.AbstractType.hydrate(AbstractType.java:104)
      	at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2283)
      	at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1527)
      	at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1455)
      	at org.hibernate.loader.Loader.getRow(Loader.java:1355)
      	at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:611)
      	at org.hibernate.loader.Loader.doQuery(Loader.java:829)
      	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
      	at org.hibernate.loader.Loader.doList(Loader.java:2542)
      	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
      	at org.hibernate.loader.Loader.list(Loader.java:2271)
      	at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:940)
      	at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
      	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
      	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
      	at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:120)
      	at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:111)
      	at com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:59)
      	at com.liferay.portal.background.task.service.persistence.impl.BackgroundTaskPersistenceImpl.findByCompleted(BackgroundTaskPersistenceImpl.java:1272)
      	at com.liferay.portal.background.task.service.persistence.impl.BackgroundTaskPersistenceImpl.findByCompleted(BackgroundTaskPersistenceImpl.java:1181)
      	at com.liferay.portal.background.task.service.persistence.impl.BackgroundTaskPersistenceImpl.findByCompleted(BackgroundTaskPersistenceImpl.java:1143)
      	at com.liferay.portal.background.task.service.impl.BackgroundTaskLocalServiceImpl.cleanUpBackgroundTasks(BackgroundTaskLocalServiceImpl.java:246)
      

      The error occurs because we renamed a class from com.liferay.portal.security.auth.HttpPrincipal to com.liferay.portal.kernel.security.auth.HttpPrincipal between 6.2 and 7.0.

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                7.1.X
                Master