Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0
-
Fix Version/s: 4.0, EE-3.3.0.GA_P06
-
Component/s: Sample Apps
-
Labels:None
-
Environment:ICEfaces 4 trunk r43075. Tomcat 7, all browsers, Myfaces 2.2.5.
-
Assignee Priority:P1
Description
There are 3 issue that affect the icecore showcase demos when using Myfaces 2.2.5 libs. (All browsers)
1.) icecore demos general issue
popup error seen while clicking on links to launch demos, and when using DefaultAction demo:
May take a few times clicking to produce the resulting error.
java.lang.IllegalAccessException: Class javax.faces.component.UIComponentBase can not access a member of class org.icefaces.impl.component.DefaultAction$KeyMap with modifiers "private"
java.lang.RuntimeException
2.) icecore:refresh > Overview
Clock ticks once after loading the page or changing Interval or Duration selections. Afterward it stops ticking entirely.
3.) icecore:loadBundle
NPE when navigating to demo:
Oct 21, 2014 11:38:14 AM org.icepush.servlet.EnvironmentAdaptingServlet service
INFO: Falling back to Thread Blocking environment
java.lang.NullPointerException
at org.apache.myfaces.util.AbstractAttributeMap.remove(AbstractAttributeMap.java:137)
at org.icefaces.impl.component.LoadBundle.updateBundle(LoadBundle.java:73)
at org.icefaces.impl.component.LoadBundle.encodeBegin(LoadBundle.java:57)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:526)
at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:141)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:87)
at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:71)
at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:238)
at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135)
at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:141)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:141)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:141)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:164)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:516)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891)
at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:58)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
1.) icecore demos general issue
popup error seen while clicking on links to launch demos, and when using DefaultAction demo:
May take a few times clicking to produce the resulting error.
java.lang.IllegalAccessException: Class javax.faces.component.UIComponentBase can not access a member of class org.icefaces.impl.component.DefaultAction$KeyMap with modifiers "private"
java.lang.RuntimeException
2.) icecore:refresh > Overview
Clock ticks once after loading the page or changing Interval or Duration selections. Afterward it stops ticking entirely.
3.) icecore:loadBundle
NPE when navigating to demo:
Oct 21, 2014 11:38:14 AM org.icepush.servlet.EnvironmentAdaptingServlet service
INFO: Falling back to Thread Blocking environment
java.lang.NullPointerException
at org.apache.myfaces.util.AbstractAttributeMap.remove(AbstractAttributeMap.java:137)
at org.icefaces.impl.component.LoadBundle.updateBundle(LoadBundle.java:73)
at org.icefaces.impl.component.LoadBundle.encodeBegin(LoadBundle.java:57)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:526)
at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:141)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:87)
at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:71)
at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:238)
at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135)
at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:141)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:141)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:688)
at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:141)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:164)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:516)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891)
at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:58)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
1) Made DefaultAction.KeyMap inner class public and serializable to allow its restoring by JSF.
2) Always dynamically add RefreshOutputSetup component to the tree when running with Myfaces (seems that FacesContext instances are re-used between lifecycles) .
3) Changed LoadBundle to remove entries in request map only when the key is different than null.