RE: RE: Liferay DXP Community Edition, First run NullPointerException

James Vasser, modified 4 Years ago. New Member Posts: 2 Join Date: 2/5/21 Recent Posts

I have been trying to get this set up for a few weeks.  I have started the deploy from scratch several times.  

The environment is Redhat Enterprise Linux 7.9, 4 GB RAM, 1 TB of drive space.  MariaDB version 5.5.68, Open JDK 1.8.0_282.

I followed the install directions here https://learn.liferay.com/dxp/7.x/en/installation_and_upgrades.html

At times, I get to the final configuration page, but it does not render correctly.  Other times I get nothing.  The logs always indicate a NullPointerException.  This most recent one indicates no errors or issues until near the very end, there is a warning on "Dependency manager sync timeout after waiting 60s", then 
[http-nio-8080-exec-1][IncludeTag:128] Current URL / generates exception: java.lang.NullPointerException
 

Here's the last section of the logs

2021-02-14 05:49:56.037 INFO  [main][LoggingTimer:83] Starting com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences#updatePortletPreferences
2021-02-14 05:49:56.043 INFO  [main][LoggingTimer:44] Completed com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences#updatePortletPreferences in 6 ms
2021-02-14 05:49:56.045 INFO  [main][UpgradeProcess:115] Completed upgrade process com.liferay.knowledge.base.web.internal.upgrade.v1_2_0.UpgradePortletPreferences in 10 ms
2021-02-14 05:50:11.653 INFO  [main][SystemCheckOSGiCommands:59] System check is enabled. You can run a system check with the command "system:check" in Gogo shell.
2021-02-14 05:51:31.683 WARN  [http-nio-8080-exec-1][DependencyManagerSyncImpl:100] Dependency manager sync timeout after waiting 60s
2021-02-14 05:51:34.316 INFO  [com.liferay.portal.osgi.web.wab.extender.internal.WabFactory-BundleTrackerOpener][ThemeHotDeployListener:108] 1 theme for speedwell-theme is available for use
2021-02-14 05:51:36.161 INFO  [com.liferay.portal.osgi.web.wab.extender.internal.WabFactory-BundleTrackerOpener][ThemeHotDeployListener:108] 1 theme for minium-theme is available for use
2021-02-14 05:51:37.265 INFO  [com.liferay.portal.osgi.web.wab.extender.internal.WabFactory-BundleTrackerOpener][ThemeHotDeployListener:108] 1 theme for classic-theme is available for use
2021-02-14 05:51:38.170 INFO  [com.liferay.portal.osgi.web.wab.extender.internal.WabFactory-BundleTrackerOpener][ThemeHotDeployListener:108] 1 theme for admin-theme is available for use
2021-02-14 05:52:22.618 ERROR [http-nio-8080-exec-1][IncludeTag:128] Current URL / generates exception: java.lang.NullPointerException
java.lang.NullPointerException
	at org.apache.jsp.html.common.themes.top_005fhead_jsp._jspService(top_005fhead_jsp.java:1282)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:124)
	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:104)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:580)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:516)
	at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
	at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190)
	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)

 

thumbnail
Sergio Sanchez, modified 4 Years ago. Regular Member Posts: 149 Join Date: 7/6/11 Recent Posts

Hello James, try to find the compiles JSP file so you can see where the NullPointer might be.

It should be in a path similar to this one: <TOMCAT-HOME>/work/Catalina/localhost/ROOT/org/apache/jsp/html/common/themes/top_005fhead_jsp.java

 

James Vasser, modified 4 Years ago. New Member Posts: 2 Join Date: 2/5/21 Recent Posts

Thank you.  Before I had a chance to try your suggestion, a hard drive died on the virtual machine host.  

Looks like I'll be starting from scratch  again!