java.lang.NullPointerException

Icesoft | B1v1X | 4 years ago
  1. 0

    ace:tabSet and ice:tree

    Icesoft | 4 years ago | B1v1X
    java.lang.NullPointerException
  2. 0

    Weird behaviour Tree inside ui:repeat or ice:panelseries

    Stack Overflow | 6 years ago | Necronet
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    If a tree components backing tree model is not initialized on page load then a NullPointerException is thrown. This is even when the rendered attribute is set to false. This behavior is not seen in the ICEfaces 1.8.x releases. Exception Stack Trace: SEVERE: Error Rendering View[/welcomeICEfaces.xhtml] java.lang.NullPointerException at com.icesoft.faces.component.tree.Tree.visitRows(Tree.java:1446) at com.icesoft.faces.component.tree.Tree.visitTree(Tree.java:1401) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIForm.visitTree(UIForm.java:344) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at com.sun.faces.application.view.StateManagementStrategyImpl.saveView(StateManagementStrategyImpl.java:160) at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:133) at com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:225) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:418) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) 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.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:298) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555) at java.lang.Thread.run(Thread.java:619)

    ICEsoft JIRA Issue Tracker | 6 years ago | Arran Mccullough
    java.lang.NullPointerException
  5. 0

    If a tree components backing tree model is not initialized on page load then a NullPointerException is thrown. This is even when the rendered attribute is set to false. This behavior is not seen in the ICEfaces 1.8.x releases. Exception Stack Trace: SEVERE: Error Rendering View[/welcomeICEfaces.xhtml] java.lang.NullPointerException at com.icesoft.faces.component.tree.Tree.visitRows(Tree.java:1446) at com.icesoft.faces.component.tree.Tree.visitTree(Tree.java:1401) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIForm.visitTree(UIForm.java:344) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at com.sun.faces.application.view.StateManagementStrategyImpl.saveView(StateManagementStrategyImpl.java:160) at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:133) at com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:225) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:418) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) 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.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:298) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555) at java.lang.Thread.run(Thread.java:619)

    ICEsoft JIRA Issue Tracker | 6 years ago | Arran Mccullough
    java.lang.NullPointerException

    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 com.icesoft.faces.component.tree.Tree.getModel()
    2. com.icesoft.faces
      Tree.visitTree
      1. com.icesoft.faces.component.tree.Tree.getModel(Tree.java:277)[:]
      2. com.icesoft.faces.component.tree.Tree.visitRows(Tree.java:1459)[:]
      3. com.icesoft.faces.component.tree.Tree.visitTree(Tree.java:1414)[:]
      3 frames
    3. JavaEE 7
      UIComponent.visitTree
      1. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)[:2.1.17]
      2. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)[:2.1.17]
      3. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)[:2.1.17]
      4. javax.faces.component.UIForm.visitTree(UIForm.java:371)[:2.1.17]
      5. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)[:2.1.17]
      6. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)[:2.1.17]
      7. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)[:2.1.17]
      8. javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)[:2.1.17]
      8 frames
    4. org.icefaces.impl
      RestoreResourceDependencies.processEvent
      1. org.icefaces.impl.event.RestoreResourceDependencies.processEvent(RestoreResourceDependencies.java:24)[:]
      1 frame
    5. JavaEE 7
      SystemEvent.processListener
      1. javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)[:2.1.17]
      1 frame
    6. JSF
      ApplicationImpl.publishEvent
      1. com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2169)[:2.1.17]
      2. com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2145)[:2.1.17]
      3. com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)[:2.1.17]
      4. com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)[:2.1.17]
      4 frames
    7. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:812)[:2.1.17]
      2. javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:963)[:2.1.17]
      3. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777)[:2.1.17]
      3 frames
    8. JSF
      LifecycleImpl.render
      1. com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:437)[:2.1.17]
      2. com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)[:2.1.17]
      3. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)[:2.1.17]
      4. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)[:2.1.17]
      5. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)[:2.1.17]
      5 frames
    9. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)[:2.1.17]
      1 frame
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)[:6.1.0.Final]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)[:6.1.0.Final]
      2 frames
    11. it.pegaso2000.access
      AccessFilter.doFilter
      1. it.pegaso2000.access.web.filter.AccessFilter.doFilter(AccessFilter.java:77)[:]
      1 frame
    12. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)[:6.1.0.Final]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)[:6.1.0.Final]
      2 frames
    13. Spring Security
      FilterChainProxy.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[:3.1.3.RELEASE]
      2. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)[:3.1.3.RELEASE]
      3. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)[:3.1.3.RELEASE]
      4. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)[:3.1.3.RELEASE]
      5. org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)[:3.1.3.RELEASE]
      6. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)[:3.1.3.RELEASE]
      7. org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)[:3.1.3.RELEASE]
      8. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)[:3.1.3.RELEASE]
      9. org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:94)[:3.1.3.RELEASE]
      10. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)[:3.1.3.RELEASE]
      11. org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)[:3.1.3.RELEASE]
      12. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)[:3.1.3.RELEASE]
      13. org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)[:3.1.3.RELEASE]
      14. org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)[:3.1.3.RELEASE]
      14 frames
    14. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)[:3.1.3.RELEASE]
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)[:3.1.3.RELEASE]
      2 frames
    15. Glassfish Core
      StandardContextValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)[:6.1.0.Final]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)[:6.1.0.Final]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)[:6.1.0.Final]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)[:6.1.0.Final]
      4 frames
    16. JBoss Application Server Tomcat
      SecurityAssociationValve.invoke
      1. org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)[:6.1.0.Final]
      1 frame
    17. Glassfish Core
      AuthenticatorBase.invoke
      1. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:593)[:6.1.0.Final]
      1 frame
    18. org.jboss.modcluster
      CatalinaContext$RequestListenerValve.invoke
      1. org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)[:1.1.0.Final]
      2. org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)[:1.1.0.Final]
      2 frames
    19. JBoss Application Server Tomcat
      SecurityContextEstablishmentValve.invoke
      1. org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)[:6.1.0.Final]
      2. org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)[:6.1.0.Final]
      2 frames
    20. Glassfish Core
      ErrorReportValve.invoke
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)[:6.1.0.Final]
      2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[:6.1.0.Final]
      2 frames
    21. JBoss Application Server Tomcat
      CachedConnectionValve.invoke
      1. org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)[:6.1.0.Final]
      1 frame
    22. Glassfish Core
      StandardEngineValve.invoke
      1. org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:416)[:6.1.0.Final]
      2. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[:6.1.0.Final]
      2 frames
    23. JBoss Application Server Tomcat
      ActiveRequestResponseCacheValve.invoke
      1. org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)[:6.1.0.Final]
      1 frame
    24. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)[:6.1.0.Final]
      1 frame
    25. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)[:6.1.0.Final]
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)[:6.1.0.Final]
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)[:6.1.0.Final]
      3 frames
    26. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)[:1.7.0]
      1 frame