Foren

Getting nullpointer error whle accessing the URL

Eldo Itteera, geändert vor 6 Jahren.

Getting nullpointer error whle accessing the URL

New Member Beiträge: 2 Beitrittsdatum: 26.09.17 Neueste Beiträge
Good Day !
Please can sombody assist on the below

Downloaded Liferay DXP 7.0 - SP5 - standalone War file
Applied to Jboss EAP 7.0 existing enviornment
Extracted and deployed dependencies
Extracted and deployed OSGI dependencies
It setup against one of our oracle DB instances
Deployed the Root.war
There was no deployment errors

But while hitting the URL http://localhost:8085/
Liferay gives the below NullpointerException

I used the below URL to setup the enviornment
https://customer.liferay.com/documentation/7.0/deploy/-/official_documentation/deployment/installing-liferay-on-wildfly-10

Error below:



10:08:32,460 ERROR [default task-1][error_jsp:644] User ID null
10:08:32,461 ERROR [default task-1][error_jsp:645] Current URL /
10:08:32,461 ERROR [default task-1][error_jsp:646] Referer null
10:08:32,462 ERROR [default task-1][error_jsp:647] Remote address 127.0.0.1
10:08:32,462 ERROR [default task-1][error_jsp:649] com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
at com.liferay.portal.events.ThemeServicePreAction.run(ThemeServicePreAction.java:46)
at com.liferay.portal.kernel.events.Action.processLifecycleEvent(Action.java:34)
at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:86)
at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:60)


Caused by: java.lang.NullPointerException
at com.liferay.portal.service.impl.ThemeLocalServiceImpl.getColorScheme(ThemeLocalServiceImpl.java:127)
at com.liferay.portal.kernel.service.ThemeLocalServiceUtil.getColorScheme(ThemeLocalServiceUtil.java:61)


I also see the below error in Liferay on URLConnection while deploying some war files at start up, not sure the null pointer error is caused by the below:

Caused by: java.lang.IllegalArgumentException: Unknown LPKG URL lpkg:/Liferay+Foundation-7.0.32/admin-theme.war?liferay-portal-profile-names=DXP
at com.liferay.portal.lpkg.deployer.internal.LPKGURLStreamHandlerService.openConnection(LPKGURLStreamHandlerService.java:41)
at org.eclipse.osgi.internal.url.URLStreamHandlerProxy.openConnection(URLStreamHandlerProxy.java:114)
at java.net.URL.openConnection(URL.java:979)
at java.net.URL.openStream(URL.java:1045)
at com.liferay.portal.osgi.web.wab.generator.internal.connection.WabURLConnection.transferToTempFile(WabURLConnection.java:128)

Caused by: java.lang.IllegalArgumentException: Unknown LPKG URL lpkg:/Liferay+Foundation-7.0.32/classic-theme.war?liferay-portal-profile-names=DXP
at com.liferay.portal.lpkg.deployer.internal.LPKGURLStreamHandlerService.openConnection(LPKGURLStreamHandlerService.java:41)
at org.eclipse.osgi.internal.url.URLStreamHandlerProxy.openConnection(URLStreamHandlerProxy.java:114)
at java.net.URL.openConnection(URL.java:979)
at java.net.URL.openStream(URL.java:1045)
thumbnail
Eloy Castro, geändert vor 6 Jahren.

RE: Getting nullpointer error whle accessing the URL

Junior Member Beiträge: 33 Beitrittsdatum: 30.10.17 Neueste Beiträge
Same issue here.

1 - Downloaded DXP Tomcat bundle.
2 - In eclipse, created new Liferay Wosrkspace project
3 - Created folder "bundles" and putted there the DXP bundle.
4 - portal-ext.properties pointing to Mysql Databse.
5 - Added mysql.jar file in tomcats lib/ext url
6 - Run the server

Result: All tables created in mysql, but :

Caused by: java.lang.IllegalArgumentException: Unknown LPKG URL lpkg:/Liferay+Sharepoint+Connector-3.0.3/sharepoint-hook.war?liferay-portal-profile-names=DXP
	at com.liferay.portal.lpkg.deployer.internal.LPKGURLStreamHandlerService.openConnection(LPKGURLStreamHandlerService.java:41)
	at org.eclipse.osgi.internal.url.URLStreamHandlerProxy.openConnection(URLStreamHandlerProxy.java:114)
	at java.net.URL.openConnection(URL.java:979)
	at java.net.URL.openStream(URL.java:1045)
	at com.liferay.portal.osgi.web.wab.generator.internal.connection.WabURLConnection.transferToTempFile(WabURLConnection.java:128)
	at com.liferay.portal.osgi.web.wab.generator.internal.connection.WabURLConnection.getInputStream(WabURLConnection.java:100)
	at com.liferay.portal.lpkg.deployer.internal.wrapper.bundle.URLStreamHandlerServiceServiceTrackerCustomizer.addingService(URLStreamHandlerServiceServiceTrackerCustomizer.java:83)
	... 138 more


Caused by: java.lang.NullPointerException
	at com.liferay.portal.service.impl.ThemeLocalServiceImpl.getColorScheme(ThemeLocalServiceImpl.java:127)
	at com.liferay.portal.kernel.service.ThemeLocalServiceUtil.getColorScheme(ThemeLocalServiceUtil.java:61)
	at com.liferay.portal.model.impl.LayoutSetImpl.getColorScheme(LayoutSetImpl.java:69)
	at com.liferay.portal.model.impl.LayoutImpl.getColorScheme(LayoutImpl.java:351)
	at com.liferay.portal.events.ThemeServicePreAction.servicePre(ThemeServicePreAction.java:72)
	at com.liferay.portal.events.ThemeServicePreAction.run(ThemeServicePreAction.java:43)
	... 135 more
09:10:23,164 ERROR [http-nio-8888-exec-1][error_jsp:671] User ID null
09:10:23,165 ERROR [http-nio-8888-exec-1][error_jsp:672] Current URL /
09:10:23,165 ERROR [http-nio-8888-exec-1][error_jsp:673] Referer null
09:10:23,165 ERROR [http-nio-8888-exec-1][error_jsp:674] Remote address 127.0.0.1
09:10:23,166 ERROR [http-nio-8888-exec-1][error_jsp:676] com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
thumbnail
Christoph Rabel, geändert vor 6 Jahren.

RE: Getting nullpointer error whle accessing the URL

Liferay Legend Beiträge: 1554 Beitrittsdatum: 24.09.09 Neueste Beiträge
Did you also use "Liferay DXP 7.0 - SP5"?
That version was pulled because it contains some serious errors (don't recall what the problem was)

In general I'd like to recommend the following approach for new setups:
- Download DXP (any version)
- Install the latest fixpack immediately
- Start it for the first time & let it initialize the db.
thumbnail
Jose Jimenez, geändert vor 6 Jahren.

RE: Getting nullpointer error whle accessing the URL

Regular Member Beiträge: 176 Beitrittsdatum: 23.08.12 Neueste Beiträge
Hey Eldo, if you are using DXP you can contact with the Support Service for manage this issue.

@Christoph Rabel, the main reason to remove the SP5 bundle was because the bundle/Patching Tool had a problem and it was imposible to apply a different patch to it, but issues fixed at the preinstalled fix-pack should work fine. This was the main reason to replace the SP5 by a new version (SP6) .

Best regards,
Jose
thumbnail
Suresh Yadagiri, geändert vor 5 Jahren.

RE: Getting nullpointer error whle accessing the URL

Junior Member Beiträge: 29 Beitrittsdatum: 24.03.14 Neueste Beiträge

seeing same issue for Liferay 7.1 GA 1 CE.  Downloaded and started integrating with mySQL.  when I access page getting Null pointer exception

 

Caused by: java.lang.NullPointerException
        at com.liferay.portal.service.impl.ThemeLocalServiceImpl.getColorScheme(ThemeLocalServiceImpl.java:127)