Foren
java.lang.NullPointerException error when changing theme
Brian Cohen, geändert vor 11 Jahren.
java.lang.NullPointerException error when changing theme
Junior Member Beiträge: 25 Beitrittsdatum: 04.05.12 Neueste Beiträge
I am logged in as a system Adminstrator, and have site Administrator and Owner roles as well. I downloaded and deployed some custom themes, and when I try to select them and save, I get this in catalina.out:
THis is on CentOS 6.2 64-bit with Java version:
Any ideas?
01:23:32,503 ERROR [render_portlet_jsp:154] java.lang.NullPointerException
at com.liferay.portlet.layoutsadmin.action.EditLayoutSetAction.updateLogo(EditLayoutSetAction.java:209)
at com.liferay.portlet.layoutsadmin.action.EditLayoutSetAction.updateLayoutSet(EditLayoutSetAction.java:170)
at com.liferay.portlet.layoutsadmin.action.EditLayoutSetAction.processAction(EditLayoutSetAction.java:80)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:175)
at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:190)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:651)
at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:686)
at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:361)
at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:845)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:633)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:244)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)
THis is on CentOS 6.2 64-bit with Java version:
java -version
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)
Any ideas?
Hitoshi Ozawa, geändert vor 11 Jahren.
RE: java.lang.NullPointerException error when changing theme
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Does the version of the theme you're trying to deploy supported by the version of liferay you're using? Theme isn't liferay version independent.
Brian Cohen, geändert vor 11 Jahren.
RE: java.lang.NullPointerException error when changing theme
Junior Member Beiträge: 25 Beitrittsdatum: 04.05.12 Neueste Beiträge
It's the Cleap Community theme, and it says Liferay 6.0.4+
But even if I just use the Classic theme, and switch from Blue to Green, I get the same NullPointerException, and I see the follwing error in the browser (which I also saw beforehand when trying to switch themes entirely:
Site Pages is temporarily unavailable
But even if I just use the Classic theme, and switch from Blue to Green, I get the same NullPointerException, and I see the follwing error in the browser (which I also saw beforehand when trying to switch themes entirely:
Site Pages is temporarily unavailable
Hitoshi Ozawa, geändert vor 11 Jahren.
RE: java.lang.NullPointerException error when changing theme
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
So which liferay version and bundle are you using?
David H Nebinger, geändert vor 11 Jahren.
RE: java.lang.NullPointerException error when changing theme
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste BeiträgeBrian Cohen:
I am logged in as a system Adminstrator, and have site Administrator and Owner roles as well. I downloaded and deployed some custom themes, and when I try to select them and save, I get this in catalina.out:01:23:32,503 ERROR [render_portlet_jsp:154] java.lang.NullPointerException at com.liferay.portlet.layoutsadmin.action.EditLayoutSetAction.updateLogo(EditLayoutSetAction.java:209)
I'm guessing that there is a logo assigned in your settings (or org or community, whatever) that you do not have locally. Upload a replacement logo file and try again.
Hitoshi Ozawa, geändert vor 11 Jahren.
RE: java.lang.NullPointerException error when changing theme
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
I just installed in on my Liferay 6.1.0 without any problem. The theme is replacing the logo with the portal name.
Try "Control Panel" -> "Portal Settings" -> "Display Settings" . Make sure "Allow site administrators to use their own logo" is checked.
Try "Control Panel" -> "Portal Settings" -> "Display Settings" . Make sure "Allow site administrators to use their own logo" is checked.
Romain Gaume, geändert vor 11 Jahren.
RE: java.lang.NullPointerException error when changing theme
New Member Beiträge: 7 Beitrittsdatum: 22.02.12 Neueste Beiträge
Thanks, it's working for me.
Phill Ashworth, geändert vor 11 Jahren.
RE: java.lang.NullPointerException error when changing theme
New Member Beiträge: 4 Beitrittsdatum: 06.06.12 Neueste BeiträgeHitoshi Ozawa:
I just installed in on my Liferay 6.1.0 without any problem. The theme is replacing the logo with the portal name.
Try "Control Panel" -> "Portal Settings" -> "Display Settings" . Make sure "Allow site administrators to use their own logo" is checked.
I have this option ticked but I am also getting the NPE on 6.1.0 when changing classic theme colour.
Any other suggestions?
Phill Ashworth, geändert vor 11 Jahren.
RE: java.lang.NullPointerException error when changing theme
New Member Beiträge: 4 Beitrittsdatum: 06.06.12 Neueste Beiträge
I fixed this by patching Glassfish as per http://issues.liferay.com/browse/LPS-25521