掲示板

Null pointer exception for JSF2-spring porlet demo with liferay 6.2

10年前 に Rajesha Indurthi によって更新されました。

Null pointer exception for JSF2-spring porlet demo with liferay 6.2

New Member 投稿: 7 参加年月日: 13/10/01 最新の投稿
Iam getting the below exception when Iam trying to run the JSF2-spring-portlet demo on liferay 6.2. I got the demo source code from the following github location . - https://github.com/liferay/liferay-faces

Below is the stack which came in with the jsf2-spring-portlet
Mojarra 2.1.21
Liferay Faces Alloy 3.1.3-ga4 (Galatia / Sep 5, 2013 AD)
Liferay Faces Bridge 3.1.3-ga4 (Galatia / Sep 5, 2013 AD)
Spring Framework 3.0.7.RELEASE

05:58:36,563 ERROR [PortletContainerLiferayImpl:170]
java.lang.NullPointerException
at com.liferay.faces.bridge.container.liferay.PortletContainerLiferayImp
l.getRequestURL(PortletContainerLiferayImpl.java:391)
at com.liferay.faces.bridge.container.liferay.PortletContainerLiferayImp
l.<init>(PortletContainerLiferayImpl.java:166)
at com.liferay.faces.bridge.container.PortletContainerFactoryImpl.getPor
tletContainer(PortletContainerFactoryImpl.java:43)
at com.liferay.faces.bridge.BridgePhaseBaseImpl.init(BridgePhaseBaseImpl
.java:172)
at com.liferay.faces.bridge.BridgePhaseCompatImpl.init(BridgePhaseCompat
Impl.java:65)
at com.liferay.faces.bridge.BridgePhaseResourceImpl.execute(BridgePhaseR
esourceImpl.java:56)
at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:12
8)
at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPor
tlet.java:178)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:122
)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortle
tFilter.java:82)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:116
)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletF
ilterUtil.java:71)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServl
et.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.
doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFil
ter(InvokerFilter.java:96)


Please advise as to what is that Iam doing wrong, is there something which Iam missing.

Regards
Raj
thumbnail
10年前 に Juan Gonzalez によって更新されました。

RE: Null pointer exception for JSF2-spring porlet demo with liferay 6.2

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Hi Rajesha,

as stated in Version Scheme you should use Liferay Faces 3.2.x.

Download the demo portlets from this branch instead:

https://github.com/liferay/liferay-faces/tree/3.2.x

and retry.

Thanks.
10年前 に Rajesha Indurthi によって更新されました。

RE: Null pointer exception for JSF2-spring porlet demo with liferay 6.2

New Member 投稿: 7 参加年月日: 13/10/01 最新の投稿
That worked , thanks for the response juan.