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

NPE starting release bundles with liferay-online properties

    Details

      Description

      Steps to Reproduce:

      1. Build portal as a release bundle
      2. Add the following properties to portal-ext
        include-and-override=portal-liferay-online.properties
        include-and-override=portal-liferay-online-limit.properties
        
      1. Start portal

      Expected Result:
      Portal starts and blacklists Commerce modules without error.

      Actual Result:
      Errors when activating and blacklisting commerce modules for liferay-online settings:

      25-Mar-2021 23:23:47.183 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [83758] milliseconds
      2021-03-25 23:23:47.404 INFO  [fileinstall-directory-watcher][LicenseManager:-1] Portal Development license validation passed
      2021-03-25 23:23:47.404 INFO  [fileinstall-directory-watcher][LicenseManager:-1] License registered for Portal Development
      2021-03-25 23:23:47.410 INFO  [fileinstall-directory-watcher][BundleStartStopLogger:49] STOPPED Liferay Commerce - Liferay Commerce - API_1.0.0 [799]
      2021-03-25 23:23:47.412 INFO  [fileinstall-directory-watcher][BundleStartStopLogger:49] STOPPED Liferay Commerce - Liferay Commerce - Impl_1.0.0 [970]
      2021-03-25 23:23:47.423 INFO  [fileinstall-directory-watcher][BundleBlacklist:189] Stopping blacklisted bundle com.liferay.commerce.account.api_11.0.0 [1481]
      2021-03-25 23:23:47.428 INFO  [fileinstall-directory-watcher][BundleBlacklist:189] Stopping blacklisted bundle com.liferay.commerce.account.item.selector.api_4.0.0 [1482]
      2021-03-25 23:23:47.428 ERROR [Framework Event Dispatcher: Equinox Container: af009c15-7089-4998-a730-dbb1d8e5b658][Framework:93] FrameworkEvent ERROR
      java.lang.NullPointerException: null
              at com.liferay.portal.fragment.bundle.watcher.internal.PortalFragmentBundleWatcher._isFragment(PortalFragmentBundleWatcher.java:171) ~[?:?]
              at com.liferay.portal.fragment.bundle.watcher.internal.PortalFragmentBundleWatcher.lambda$activate$1(PortalFragmentBundleWatcher.java:73) ~[?:?]
              at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi.jar:?]
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi.jar:?]
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [org.eclipse.osgi.jar:?]
      2021-03-25 23:23:47.441 INFO  [fileinstall-directory-watcher][BundleBlacklist:189] Stopping blacklisted bundle com.liferay.commerce.api_23.0.0 [1483]
      2021-03-25 23:23:47.441 ERROR [Framework Event Dispatcher: Equinox Container: af009c15-7089-4998-a730-dbb1d8e5b658][Framework:93] FrameworkEvent ERROR
      java.lang.NullPointerException: null
              at com.liferay.portal.fragment.bundle.watcher.internal.PortalFragmentBundleWatcher._isFragment(PortalFragmentBundleWatcher.java:171) ~[?:?]
              at com.liferay.portal.fragment.bundle.watcher.internal.PortalFragmentBundleWatcher.lambda$activate$1(PortalFragmentBundleWatcher.java:73) ~[?:?]
              at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi.jar:?]
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi.jar:?]
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [org.eclipse.osgi.jar:?]
      2021-03-25 23:23:47.444 ERROR [Framework Event Dispatcher: Equinox Container: af009c15-7089-4998-a730-dbb1d8e5b658][Framework:93] FrameworkEvent ERROR
      java.lang.NullPointerException: null
              at com.liferay.portal.fragment.bundle.watcher.internal.PortalFragmentBundleWatcher._isFragment(PortalFragmentBundleWatcher.java:171) ~[?:?]
              at com.liferay.portal.fragment.bundle.watcher.internal.PortalFragmentBundleWatcher.lambda$activate$1(PortalFragmentBundleWatcher.java:73) ~[?:?]
              at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi.jar:?]
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi.jar:?]
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [org.eclipse.osgi.jar:?]
      2021-03-25 23:23:47.447 INFO  [fileinstall-directory-watcher][BundleBlacklist:189] Stopping blacklisted bundle com.liferay.commerce.application.api_5.0.0 [1484]
      2021-03-25 23:23:47.451 INFO  [fileinstall-directory-watcher][BundleBlacklist:189] Stopping blacklisted bundle com.liferay.commerce.application.item.selector.api_5.0.0 [1485]
      2021-03-25 23:23:47.449 ERROR [Framework Event Dispatcher: Equinox Container: af009c15-7089-4998-a730-dbb1d8e5b658][Framework:93] FrameworkEvent ERROR
      java.lang.NullPointerException: null
              at com.liferay.portal.fragment.bundle.watcher.internal.PortalFragmentBundleWatcher._isFragment(PortalFragmentBundleWatcher.java:171) ~[?:?]
              at com.liferay.portal.fragment.bundle.watcher.internal.PortalFragmentBundleWatcher.lambda$activate$1(PortalFragmentBundleWatcher.java:73) ~[?:?]
              at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi.jar:?]
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi.jar:?]
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [org.eclipse.osgi.jar:?]
      

      Last known SHA where this was working:
      Master: 10f25ba0f5d880bf97a9f275cc801c332003ffce

      Reproduced on:
      Master: 30ff3bcba38a977489c887adc0be319829779311

      Not reproducible when using an normal "ant all" bundle without release licensing and packaging.

      Known change in the regression range was bumping the version of portal.license.enterprise.app.module https://github.com/liferay/liferay-portal/commit/f00cc3599aed1850ec8d02a29ce6214b877954b0

        Attachments

          Activity

            People

            Assignee:
            victor.ware Victor Ware
            Reporter:
            victor.ware Victor Ware
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Engineering Assignee:
            Dante Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 weeks, 2 days ago

                Packages

                Version Package
                7.3.X
                7.4.0 CE GA1
                Master