Forums de discussion

Getting nullpointer error whle accessing the URL

Eldo Itteera, modifié il y a 6 années.

Getting nullpointer error whle accessing the URL

New Member Publications: 2 Date d'inscription: 26/09/17 Publications récentes
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, modifié il y a 6 années.

RE: Getting nullpointer error whle accessing the URL

Junior Member Publications: 33 Date d'inscription: 30/10/17 Publications récentes
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, modifié il y a 6 années.

RE: Getting nullpointer error whle accessing the URL

Liferay Legend Publications: 1554 Date d'inscription: 24/09/09 Publications récentes
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, modifié il y a 6 années.

RE: Getting nullpointer error whle accessing the URL

Regular Member Publications: 176 Date d'inscription: 23/08/12 Publications récentes
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, modifié il y a 5 années.

RE: Getting nullpointer error whle accessing the URL

Junior Member Publications: 29 Date d'inscription: 24/03/14 Publications récentes

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)