JSF problem while accessing

Help
2012-09-06
2013-04-25
  • Hi stephan,

    We are using yawebmail extensively. And currently we are using myfaces-1.2.9. 

    Recently suddenly a JSF file (mailsListing.jsp) became unavailable, due to which the application was unusable. On checking the logs, below lines are found. Any idea why this occurs ? Please provide a solution if possible.

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Sep 2, 2012 11:32:04 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NullPointerException
    at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:600)
    at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:612)
    at javax.faces.component.UIData.setRowIndex(UIData.java:551)
    at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:292)
    at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:143)
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:627)
    at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:528)
    at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:231)
    at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:102)
    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:649)
    at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
    at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
    at org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:92)
    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:649)
    at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
    at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:231)
    at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:102)
    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:649)
    at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
    at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:231)
    at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:102)
    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:649)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:261)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
    at org.apache.myfaces.application.jsp.JspViewHandlerImpl.actuallyRenderView(JspViewHandlerImpl.java:427)
    at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:383)
    at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:187)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
    at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:316)
    at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:81)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
    at java.lang.Thread.run(Thread.java:811)
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    regards
    -yogeen

     
  • Stephan Sann
    Stephan Sann
    2012-09-10

    Hi yogeen,

    what do you mean by "suddenly"!? Did you change anything on the system? Did you install a new Service-Container (version)?

    Normaly applications don't change behavior if you don not change their environment.

    Did you try to re-install the WAR-file?

    From the stacktrace I cannot see if the thrown exception has even to do with yawebmail…

    Best regards
    Stephan

     
  • Hi stephan,

    Thanks for your reply. We found out that it was a problem of myfaces. We were using myfaces-1.2.9 and advised by myfaces mailing list (Leonardo Uribe) we have upgraded to myfaces-1.2.12 which is the latest stable release.

    regards
    -yogeen