Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay 7.1 JSF Icefaces portlet error after 15 minutes
Liferay 7.1.2 GA3 CE tomcat bundle. Liferay Deverloper Studio 3.1.2 ga
Using Developer Studio i create a new Icefaces project with Gradle build type. I build and deploy it with no changes. Drop it on a page and refresh page to get the view shown in attached file. If i leave the page up and check back after 15 minutes or so, there is an error displayed that the portlet is unavailable. Below is the exception i get in the Liferay console. I am currently upgrading a portal from Liferay 6.2 to 7.1 and icefaces 3.1. Is there documentation on how to deploy the icefaces jar. i am providing the default gradle file too, in case there is something else needed.
2019-03-06 13:30:58.716 ERROR [http-nio-8080-exec-1][render_portlet_jsp:131] null
java.lang.NullPointerException
at org.icefaces.impl.application.WindowScopeManager$TimeBasedHeuristicWindowScopeSharing.lookup(WindowScopeManager.java:579)
at org.icefaces.impl.application.WindowScopeManager.determineWindowID(WindowScopeManager.java:190)
at org.icefaces.impl.application.WindowScopeManager$DetermineOrDisposeScope.beforePhase(WindowScopeManager.java:680)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:123)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at com.liferay.faces.bridge.internal.BridgePhaseHeaderRenderCommon.executeRender(BridgePhaseHeaderRenderCommon.java:180)
at com.liferay.faces.bridge.internal.BridgePhaseRenderCompatImpl.execute(BridgePhaseRenderCompatImpl.java:57)
at com.liferay.faces.bridge.internal.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:57)
at com.liferay.faces.bridge.internal.BridgeImpl.doFacesRequest(BridgeImpl.java:161)
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:753)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:397)
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:669)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:291)
at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:127)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:58)
at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:124)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108)
repositories {
mavenCentral()
}
dependencies {
compile('org.icefaces:icefaces:4.2.0') {
exclude group: 'org.glassfish', module: 'javax.faces'
exclude group: 'javax.mail', module: 'mail'
exclude group: 'javax.activation', module: 'javax.activation'
}
compile group: 'org.icefaces', name: 'icefaces-ace', version: '4.2.0'
compile group: 'com.liferay.faces', name: 'com.liferay.faces.bridge.ext', version: '5.0.3'
compile group: 'com.liferay.faces', name: 'com.liferay.faces.bridge.impl', version: '4.1.2'
compile group: 'log4j', name: 'log4j', version: '1.2.14'
runtime group: 'org.glassfish', name: 'javax.faces', version: '2.2.18'
providedCompile group: 'javax.faces', name: 'javax.faces-api', version: '2.2'
}
Thanks for help.
Chuck
Using Developer Studio i create a new Icefaces project with Gradle build type. I build and deploy it with no changes. Drop it on a page and refresh page to get the view shown in attached file. If i leave the page up and check back after 15 minutes or so, there is an error displayed that the portlet is unavailable. Below is the exception i get in the Liferay console. I am currently upgrading a portal from Liferay 6.2 to 7.1 and icefaces 3.1. Is there documentation on how to deploy the icefaces jar. i am providing the default gradle file too, in case there is something else needed.
2019-03-06 13:30:58.716 ERROR [http-nio-8080-exec-1][render_portlet_jsp:131] null
java.lang.NullPointerException
at org.icefaces.impl.application.WindowScopeManager$TimeBasedHeuristicWindowScopeSharing.lookup(WindowScopeManager.java:579)
at org.icefaces.impl.application.WindowScopeManager.determineWindowID(WindowScopeManager.java:190)
at org.icefaces.impl.application.WindowScopeManager$DetermineOrDisposeScope.beforePhase(WindowScopeManager.java:680)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:123)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at com.liferay.faces.bridge.internal.BridgePhaseHeaderRenderCommon.executeRender(BridgePhaseHeaderRenderCommon.java:180)
at com.liferay.faces.bridge.internal.BridgePhaseRenderCompatImpl.execute(BridgePhaseRenderCompatImpl.java:57)
at com.liferay.faces.bridge.internal.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:57)
at com.liferay.faces.bridge.internal.BridgeImpl.doFacesRequest(BridgeImpl.java:161)
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:753)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:397)
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:669)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:291)
at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:127)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:58)
at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:124)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108)
repositories {
mavenCentral()
}
dependencies {
compile('org.icefaces:icefaces:4.2.0') {
exclude group: 'org.glassfish', module: 'javax.faces'
exclude group: 'javax.mail', module: 'mail'
exclude group: 'javax.activation', module: 'javax.activation'
}
compile group: 'org.icefaces', name: 'icefaces-ace', version: '4.2.0'
compile group: 'com.liferay.faces', name: 'com.liferay.faces.bridge.ext', version: '5.0.3'
compile group: 'com.liferay.faces', name: 'com.liferay.faces.bridge.impl', version: '4.1.2'
compile group: 'log4j', name: 'log4j', version: '1.2.14'
runtime group: 'org.glassfish', name: 'javax.faces', version: '2.2.18'
providedCompile group: 'javax.faces', name: 'javax.faces-api', version: '2.2'
}
Thanks for help.
Chuck
Attachments:
Kyle Joseph Stiemann, modified 7 Years ago.
Liferay Master
Posts: 760
Join Date: 1/14/13
Recent Posts
Hi Charles,
Thanks for reporting this! It turned out to be a regression bug in Liferay Portal 7.1+: LPS-91672. You can click Start watching this issue to be alerted when the status of the ticket changes and/or the bug is fixed. I've included a potential workaround on the ticket. Please give that workaround a try and let use know if it works for you as a temporary fix.
- Kyle
Thanks for reporting this! It turned out to be a regression bug in Liferay Portal 7.1+: LPS-91672. You can click Start watching this issue to be alerted when the status of the ticket changes and/or the bug is fixed. I've included a potential workaround on the ticket. Please give that workaround a try and let use know if it works for you as a temporary fix.
- Kyle
thanks for the workaround. i was able to test and it does work. will follow this ticket and will update if i find anything else.
chuck
chuck