Thursday, 15 March 2012

NullPointerException for liferay-faces-bridge-api-4 -



NullPointerException for liferay-faces-bridge-api-4 -

the error got when trying utilize liferay bridge 4:

21:18:00,794 error [portletcontainerliferayimpl:171] null 2java.lang.nullpointerexception 3 @ com.liferay.faces.bridge.container.liferay.portletcontainerliferayimpl.getrequesturl(portletcontainerliferayimpl.java:392) 4 @ com.liferay.faces.bridge.container.liferay.portletcontainerliferayimpl.<init>(portletcontainerliferayimpl.java:168) 5 @ com.liferay.faces.bridge.container.portletcontainerfactoryimpl.getportletcontainer(portletcontainerfactoryimpl.java:43) 6 @ com.liferay.faces.bridge.bridgephasebaseimpl.init(bridgephasebaseimpl.java:172) 7 @ com.liferay.faces.bridge.bridgephaserenderimpl.execute(bridgephaserenderimpl.java:118) 8 @ com.liferay.faces.bridge.bridgephaserenderimpl.execute(bridgephaserenderimpl.java:84) 9 @ com.liferay.faces.bridge.bridgeimpl.dofacesrequest(bridgeimpl.java:117) 10 @ javax.portlet.faces.genericfacesportlet.doview(genericfacesportlet.java:255) 11 @ javax.portlet.genericportlet.dodispatch(genericportlet.java:328) 12 @ javax.portlet.faces.genericfacesportlet.dodispatch(genericfacesportlet.java:204)

i recommend start clean project next steps in generating liferay faces portlet using mvn archetype generate wiki article. note in pom.xml, need alter com.sun.faces 2.1.21 2.2.6 , com.liferay.faces 3.2.4-ga5 4.2.0-m2. need add together liferay previews repository:

<repository> <id>liferay-previews</id> <url> https://repository.liferay.com/nexus/content/repositories/liferay-previews </url> </repository>

for more information, see blog titled announcement: liferay faces 4.2.0-m2 released.

liferay liferay-6 portal

No comments:

Post a Comment