java.lang.NullPointerException

ICEsoft JIRA Issue Tracker | Liana Munroe | 1 year ago
  1. 0

    An NPE occurs when facelet= true in an ace:panelStack when using myfaces libs. QA test app located at: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/panelStack To reproduce: 1.) Build the test app with -Dmyfaces=true, navigate to the DataTable demo (/dataTable.jsf) 2.) Set the facelet to true 3.) Note that the bottom panelStack is removed from the table 4.) Use the drop down to select Employee Info 5.) NPE occurs Note** this is not a specific ace:panelStack inside ace:dataTable issue. This can also be reproduced by adding the facelet="true" attribute to the ace:stackPane in the basic Overview demo. Stack trace: java.lang.NullPointerException at org.apache.myfaces.view.facelets.impl.FaceletCompositionContextImpl.i ncrementUniqueId(FaceletCompositionContextImpl.java:1036) at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.generateU niqueId(DefaultFaceletContext.java:345) at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate. apply(ComponentTagHandlerDelegate.java:218) at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMe taTagHandler.java:50) at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(D elegatingMetaTagHandler.java:55) at org.icefaces.ace.component.stackpane.StackPaneHandler.access$001(Stac kPaneHandler.java:25) at org.icefaces.ace.component.stackpane.StackPaneHandler$2.run(StackPane Handler.java:50) at org.icefaces.ace.component.stackpane.StackPane.createChildren(StackPa ne.java:121) at org.icefaces.ace.component.stackpane.StackPaneRenderer.encodeChildren (StackPaneRenderer.java:77) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:643) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 541) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 550) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 550) at org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.render ColumnBody(HtmlTableRendererBase.java:680) at org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encode ColumnChild(HtmlTableRendererBase.java:639) at org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encode InnerHtml(HtmlTableRendererBase.java:493) at org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encode Children(HtmlTableRendererBase.java:208) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:643) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 541) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 550) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 550) at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPar tialViewContext.java:165) at javax.faces.context.PartialViewContextWrapper.processPartial(PartialV iewContextWrapper.java:85) 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.rende rView(FaceletViewDeclarationLanguage.java:1891) at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandler Impl.java:313) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrap per.java:58) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderRes ponseExecutor.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(Appl icationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp 11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin t.java:310) 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)

    ICEsoft JIRA Issue Tracker | 1 year ago | Liana Munroe
    java.lang.NullPointerException
  2. 0

    An NPE occurs when facelet= true in an ace:panelStack when using myfaces libs. QA test app located at: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/panelStack To reproduce: 1.) Build the test app with -Dmyfaces=true, navigate to the DataTable demo (/dataTable.jsf) 2.) Set the facelet to true 3.) Note that the bottom panelStack is removed from the table 4.) Use the drop down to select Employee Info 5.) NPE occurs Note** this is not a specific ace:panelStack inside ace:dataTable issue. This can also be reproduced by adding the facelet="true" attribute to the ace:stackPane in the basic Overview demo. Stack trace: java.lang.NullPointerException at org.apache.myfaces.view.facelets.impl.FaceletCompositionContextImpl.i ncrementUniqueId(FaceletCompositionContextImpl.java:1036) at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.generateU niqueId(DefaultFaceletContext.java:345) at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate. apply(ComponentTagHandlerDelegate.java:218) at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMe taTagHandler.java:50) at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(D elegatingMetaTagHandler.java:55) at org.icefaces.ace.component.stackpane.StackPaneHandler.access$001(Stac kPaneHandler.java:25) at org.icefaces.ace.component.stackpane.StackPaneHandler$2.run(StackPane Handler.java:50) at org.icefaces.ace.component.stackpane.StackPane.createChildren(StackPa ne.java:121) at org.icefaces.ace.component.stackpane.StackPaneRenderer.encodeChildren (StackPaneRenderer.java:77) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:643) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 541) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 550) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 550) at org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.render ColumnBody(HtmlTableRendererBase.java:680) at org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encode ColumnChild(HtmlTableRendererBase.java:639) at org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encode InnerHtml(HtmlTableRendererBase.java:493) at org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encode Children(HtmlTableRendererBase.java:208) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase. java:643) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 541) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 550) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java: 550) at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPar tialViewContext.java:165) at javax.faces.context.PartialViewContextWrapper.processPartial(PartialV iewContextWrapper.java:85) 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.rende rView(FaceletViewDeclarationLanguage.java:1891) at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandler Impl.java:313) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrap per.java:58) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderRes ponseExecutor.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(Appl icationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp 11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin t.java:310) 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)

    ICEsoft JIRA Issue Tracker | 1 year ago | Liana Munroe
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.myfaces.view.facelets.impl.FaceletCompositionContextImpl.incrementUniqueId()
    2. org.apache.myfaces
      ComponentTagHandlerDelegate.apply
      1. org.apache.myfaces.view.facelets.impl.FaceletCompositionContextImpl.incrementUniqueId(FaceletCompositionContextImpl.java:1036)
      2. org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.generateUniqueId(DefaultFaceletContext.java:345)
      3. org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:218)
      3 frames
    3. JavaEE 7
      DelegatingMetaTagHandler.applyNextHandler
      1. javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
      2. javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:55)
      2 frames
    4. org.icefaces.ace
      StackPaneRenderer.encodeChildren
      1. org.icefaces.ace.component.stackpane.StackPaneHandler.access$001(StackPaneHandler.java:25)
      2. org.icefaces.ace.component.stackpane.StackPaneHandler$2.run(StackPaneHandler.java:50)
      3. org.icefaces.ace.component.stackpane.StackPane.createChildren(StackPane.java:121)
      4. org.icefaces.ace.component.stackpane.StackPaneRenderer.encodeChildren(StackPaneRenderer.java:77)
      4 frames
    5. JavaEE 7
      UIComponentBase.encodeAll
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
      2. javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
      3. javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
      4. javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
      4 frames
    6. Apache MyFaces Shared For JSF 2.0 - Core Mirror
      HtmlTableRendererBase.encodeChildren
      1. org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.renderColumnBody(HtmlTableRendererBase.java:680)
      2. org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encodeColumnChild(HtmlTableRendererBase.java:639)
      3. org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:493)
      4. org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:208)
      4 frames
    7. JavaEE 7
      UIComponentBase.encodeAll
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
      2. javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
      3. javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
      4. javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
      4 frames
    8. org.icefaces.impl
      DOMPartialViewContext.processPartial
      1. org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:165)
      1 frame
    9. JavaEE 7
      UIComponentBase.encodeAll
      1. javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:85)
      2. javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:516)
      3. javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
      3 frames
    10. org.apache.myfaces
      FaceletViewDeclarationLanguage.renderView
      1. org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891)
      1 frame
    11. Impl
      ViewHandlerImpl.renderView
      1. org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313)
      1 frame
    12. JavaEE 7
      ViewHandlerWrapper.renderView
      1. javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:58)
      1 frame
    13. Impl
      LifecycleImpl.render
      1. org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
      2. org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267)
      2 frames
    14. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
      1 frame
    15. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      10 frames
    16. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      3 frames
    17. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames