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

NoSuchUserException for user with primary key 0 when enabling staging with public page versioning

Details

    Description

      Steps to Reproduce

      1. Setup the 2 clean Liferay instances of Liferay 6.2 SP10.
      2. Enable remote staging from one server to the other and select "Enabled On Public Pages" for Page Versioning
      3. Log out

      Expected Result: You should be able to log out without errors

      Actual Result: "No User exists with the primary key 0"

      Errors/Logs
      Caused by: com.liferay.portal.NoSuchUserException: No User exists with the primary key 0
      at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7199)
      at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7217)
      at com.liferay.portal.service.impl.UserLocalServiceImpl.getUserById(UserLocalServiceImpl.java:2677)
      at sun.reflect.GeneratedMethodAccessor343.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)

      reproduced on master - 8c165b1

      Attachments

        Issue Links

          Activity

            People

              felix.zhang Felix Zhang
              bryan.engler Bryan Engler
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8 years, 5 weeks, 2 days ago

                Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5