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

Creating a new portal instance will sometimes only create a portion.

    Details

      Description

      After creating a new portal instance in a multi-hosting configuration, the Company that is created sometimes does not contain the accountId of the Account that was created.

      This causes a stack trace
      com.liferay.portal.NoSuchAccountException: No Account exists with the primary key 0
      at com.liferay.portal.service.persistence.AccountPersistenceImpl.findByPrimaryKey(AccountPersistenceImpl.java:318)
      at com.liferay.portal.service.impl.AccountLocalServiceImpl.getAccount(AccountLocalServiceImpl.java:36)
      .
      .
      .
      .
      at com.liferay.portal.service.AccountLocalServiceUtil.getAccount(AccountLocalServiceUtil.java:229)
      at com.liferay.portal.model.impl.CompanyImpl.getAccount(CompanyImpl.java:65)
      at com.liferay.portal.model.impl.CompanyImpl.getName(CompanyImpl.java:119)
      at org.apache.jsp.html.portlet.admin.edit_005finstance_jsp._jspService(edit_005finstance_jsp.java from :901)

      This has been reproduced in 6.0.5 as well as 6.1.0B4 (I was hoping this was fixed, so I tried upgrading).

      I don't know the cause, yet,

      We have also seen that there are now Contacts that have an accountId of 0 as well. These appear to be for the "default" user for the given Company.

      We have confirmed that setting the accountId on the Company table and the accountId on the Contact table to the appropriate Account gets the instance working again.

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            doredson@ifmc.org Dana Oredson (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 11 weeks, 1 day ago

                Packages

                Version Package
                6.2.0 CE M4