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

NullPointerException when assess to portal if connect to database of 7.3.10 DXP GA1 directly

    Details

      Description

      Steps to Reproduce:

      1. Import the attached database dump of 7.3.10 DXP GA1.
      2. Get a clean 7.3.x DXP bundle.
      3. Configure portal to connect to the 7310 database (do NOT execute upgrade client to upgrade the database).
      4. Copy data folder (can be found in the attached zip file) into 7.3.x bundle.
      5. Start portal.
      6. Access to home page.
      7. Go to Web Contents and Documents and Media portlets.

      Expected Results:
      No error in console, Home page should display correctly, and portal should work properly.

      Actual Result:
      1. During the startup, Declarative Service Unsatisfied Component Checker check result and Spring Extender Unavailable Component Checker check result warning of many modules:

      2021-02-03 12:56:40.665 WARN  [main][SystemCheckOSGiCommands:137] Declarative Service Unsatisfied Component Checker check result: _Bundle {id: 265, name: com.liferay.portal.vulcan.impl, version: 4.0.38}_	Declarative Service {id: 760, name: com.liferay.portal.vulcan.internal.jaxrs.feature.VulcanFeature, unsatisfied references: _		{name: _depotEntryLocalService, target: null}_	}_
      ...
      021-02-03 12:56:40.992 WARN  [main][SystemCheckOSGiCommands:137] Spring Extender Unavailable Component Checker check result: _Bundle {id: 617, name: com.liferay.commerce.wish.list.service, version: 3.0.13}._	Component with ID 116 is unavailable due to missing required dependencies:_		service dependency [com.liferay.commerce.product.permission.CommerceProductViewPermission]_	
      ...	

      2. Hello World portlet doesn't display in Home page, and below NullPointerException thrown in console:

      2021-02-03 13:48:44.812 ERROR [http-nio-8080-exec-5][IncludeTag:128] Current URL /web/guest generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.liferay.style.book.service.StyleBookEntryLocalServiceUtil.fetchDefaultStyleBookEntry(StyleBookEntryLocalServiceUtil.java:278)
      	at com.liferay.style.book.util.DefaultStyleBookEntryUtil.getDefaultMasterStyleBookEntry(DefaultStyleBookEntryUtil.java:41)
      	at com.liferay.style.book.util.DefaultStyleBookEntryUtil.getDefaultStyleBookEntry(DefaultStyleBookEntryUtil.java:60)
      	at com.liferay.layout.taglib.internal.display.context.RenderLayoutStructureDisplayContext._getFrontendTokensJSONObject(RenderLayoutStructureDisplayContext.java:857)
      	at com.liferay.layout.taglib.internal.display.context.RenderLayoutStructureDisplayContext.getStyleFromStyleBookEntry(RenderLayoutStructureDisplayContext.java:709)
      	at com.liferay.layout.taglib.internal.display.context.RenderLayoutStructureDisplayContext.getStyle(RenderLayoutStructureDisplayContext.java:593)
      	at org.apache.jsp.render_005flayout_005fstructure.render_005flayout_005fstructure_jsp._jspService(render_005flayout_005fstructure_jsp:454)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380)
      	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      	at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
      	at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
      	at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
      	at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
      

      3. Web Content and DM portlets are unavailable, and error thrown:

      2021-02-03 13:54:03.575 ERROR [http-nio-8080-exec-6][PortletRequestDispatcherImpl:304] Unable to dispatch request: java.lang.NullPointerException
      2021-02-03 13:54:03.576 ERROR [http-nio-8080-exec-6][PortletServlet:119] javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.NullPointerException
      javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.NullPointerException
      

      Reproduce on:
      Tomcat 9.0.37 + MySQL 5.7. Portal 7.3.x DXP GIT ID: 358906800202d4f75589aba59aee85e9b3f91a18.

        Attachments

        1. data-archive-portal-mysql.zip
          784 kB
        2. home page.png
          home page.png
          57 kB
        3. liferay.2021-02-02.log
          80 kB
        4. web content unavailable.png
          web content unavailable.png
          69 kB

          Activity

            People

            Assignee:
            victor.ware Victor Ware
            Reporter:
            summer.zhang Summer Zhang
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              33 weeks ago

                Packages

                Version Package