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

Portal startup fails due to NullPointerException being thrown by Configuration Persistence Manager

Details

    • 4
    • Regression Bug

    Description

      Description

      In Liferay DXP 7.0 FP55, LPS-82771 was included. This fix introduces a "Verify" process that get's run during startup. The NullPointerException occurs when the Verify process cannot properly parse the database entry for a Configuration.

      This also prevents Liferay from starting up.

      Steps to Reproduce

      1. Setup Liferay DXP 7.0 with fixpack de-28
      2. Create an OSGI Config file: [LIFERAY_HOME]/osgi/configs/com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.config
        #foobar=["foo","bar"]
        
      3. Startup Liferay and wait for it to successfully startup
      4. Shutdown Liferay
      5. Apply patch for fixpack de-55
      6. Clear osgi/state folder
      7. Startup Liferay
      8. Observe Logs

      Expected Results
      Liferay starts up without any errors

      Actual Results
      NullPointerException is thrown and Liferay fails to startup

      Note: We expect this to also occur if we upgrade to Liferay 7.1 instead of starting up fixpack de-55 on Step 5.

      --------

      Steps to Reproduce (in master)
      1. Startup Master
      2. Follow steps 2-4
      3. In MySQLWorkbench, find the entry for `com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration`
      4. Modify the dictionary value by changing the line: `felix.fileinstall.filename`

      Before: `felix.fileinstall.filename="com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.config"`
      After: `felix.fileinstall.filename="file:com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.config"`

      5. Startup Liferay

      Attachments

        Issue Links

          Activity

            People

              sharry.shi Sharry Shi
              eric.yan Eric Yan
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

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

                Packages

                  Version Package
                  7.0.X
                  7.1.X
                  7.2.X
                  Master