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

Commerce NPEs after restarting a DXP release

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: AMD Module Loader
    • Labels:

      Description

      Steps to Reproduce:
      1. Start 7.3 DXP release bundle
      2. Add DXP license and Commerce license
      3. Assert Commerce activated (See control panel entries) or check Gogo Shell
      4. Go to Control Panel > Search > Index Actions
      5. Execute a full reindex
      6. Create a new site with the Minum theme
      4. Restart portal
      Expected Result: Commerce starts up without errors
      Actual Result: NPEs on startup

      2020-09-09 21:07:32.493 ERROR [Framework Event Dispatcher: Equinox Container: df93d154-e10c-42e0-8267-87dc36717ef9][Framework:93] FrameworkEvent ERROR 
      java.lang.NullPointerException: A null service reference is not allowed.
      

      5. Navigate to the Minium site
      Expected Result: Minium theme site loads
      Actual Result: Site fails to load with:

      
      2020-09-10 00:42:52.337 ERROR [http-nio-8080-exec-10][runtime:59] Error executing FreeMarker template
      FreeMarker template error:
      Error while invoking the "search-results" JSP custom tag; see cause exception
      
      ----
      FTL stack trace ("~" means nesting-related):
              - Failed at: @liferay_commerce_ui["search-results"]  [in template "minium-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl" at line 80, column 33]
      ----
      
      Caused by: javax.servlet.jsp.JspException: java.lang.NullPointerException
              at com.liferay.frontend.taglib.soy.servlet.taglib.TemplateRendererTag.doEndTag(TemplateRendererTag.java:64)
              at freemarker.ext.jsp.TagTransformModel$TagWriter.endEvaluation(TagTransformModel.java:402)
              at freemarker.ext.jsp.TagTransformModel$TagWriter.afterBody(TagTransformModel.java:390)
              ... 149 more
      Caused by: java.lang.NullPointerException
              at com.liferay.frontend.js.loader.modules.extender.internal.npm.NPMResolverImpl.resolveModuleName(NPMResolverImpl.java:82)
              at com.liferay.commerce.frontend.taglib.servlet.taglib.SearchResultsTag.getModule(SearchResultsTag.java:81)
              at com.liferay.frontend.taglib.soy.servlet.taglib.TemplateRendererTag.doEndTag(TemplateRendererTag.java:53)
              ... 151 more
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                11 weeks, 4 days ago

                  Packages

                  Version Package
                  Master