java.lang.NullPointerException

Spring JIRA | Agim Emruli | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    If there is a custom converter registered globally by type, the sf:clientTextValidator tag doesn't find it and throws a nullpointer exception. The converter will be registered like this <converter> <converter-for-class>mypackage.MyCustomClass</converter-for-class> <converter-class>mypackage.MyCustomerConverterClass</converter-class> </converter> The markup which throws a NullPointerException <sf:clientTextValidator required="true" invalidMessage="someMessage"> <h:inputText id="someId" value="#{b.someBinding}" required="true"/> </sf:clientTextValidator> If I use the nested f:converter tag inside the inputText i will not run into the exception. Below the Stacktrace java.lang.NullPointerException at org.springframework.faces.ui.DojoDecorationRenderer.getNodeAttributesAsString(DojoDecorationRenderer.java:110) at org.springframework.faces.ui.DojoDecorationRenderer.encodeEnd(DojoDecorationRenderer.java:81) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:856) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:242) at com.sun.faces.renderkit.html_basic.TableRenderer.renderRow(TableRenderer.java:312) at com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:133) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:832) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936) at javax.faces.render.Renderer.encodeChildren(Renderer.java:148) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:832) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592) at org.springframework.faces.webflow.JsfView.render(JsfView.java:92) at org.springframework.webflow.engine.ViewState.render(ViewState.java:240) at org.springframework.webflow.engine.ViewState.resume(ViewState.java:199) at org.springframework.webflow.engine.Flow.resume(Flow.java:525) at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:290) at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:153) at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:156) at org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:157) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) Agim

    Spring JIRA | 9 years ago | Agim Emruli
    java.lang.NullPointerException
  2. 0

    If there is a custom converter registered globally by type, the sf:clientTextValidator tag doesn't find it and throws a nullpointer exception. The converter will be registered like this <converter> <converter-for-class>mypackage.MyCustomClass</converter-for-class> <converter-class>mypackage.MyCustomerConverterClass</converter-class> </converter> The markup which throws a NullPointerException <sf:clientTextValidator required="true" invalidMessage="someMessage"> <h:inputText id="someId" value="#{b.someBinding}" required="true"/> </sf:clientTextValidator> If I use the nested f:converter tag inside the inputText i will not run into the exception. Below the Stacktrace java.lang.NullPointerException at org.springframework.faces.ui.DojoDecorationRenderer.getNodeAttributesAsString(DojoDecorationRenderer.java:110) at org.springframework.faces.ui.DojoDecorationRenderer.encodeEnd(DojoDecorationRenderer.java:81) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:856) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:242) at com.sun.faces.renderkit.html_basic.TableRenderer.renderRow(TableRenderer.java:312) at com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:133) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:832) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936) at javax.faces.render.Renderer.encodeChildren(Renderer.java:148) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:832) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592) at org.springframework.faces.webflow.JsfView.render(JsfView.java:92) at org.springframework.webflow.engine.ViewState.render(ViewState.java:240) at org.springframework.webflow.engine.ViewState.resume(ViewState.java:199) at org.springframework.webflow.engine.Flow.resume(Flow.java:525) at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:290) at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:153) at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:156) at org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:157) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) Agim

    Spring JIRA | 9 years ago | Agim Emruli
    java.lang.NullPointerException
  3. 0

    perl Regular Expression to find Java StackTrace by keyword

    Stack Overflow | 5 years ago | Gofrolist
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    openmeetings-user - [openmeetings-user] Install problems on centos 5.2 - msg#00087 - Recent Discussion OSDir.com

    osdir.com | 2 years ago
    java.lang.NullPointerException: null at org.openmeetings.app.hibernate.utils.HibernateUtil.createSession(HibernateUtil.java: 35) [openmeetings.jar:na] at org.openmeetings.app.data.basic.Configurationmanagement.getConfKey(Configurationmanagement.java: 50) [openmeetings.jar:na] at org.openmeetings.servlet.outputhandler.DefaultIndex.handleRequest(DefaultIndex.java: 38) [openmeetings.jar:na] at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(VelocityViewServlet.java: 541) [velocity-tools-view-1.3.jar:1.3] at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityViewServlet.java: 507) [velocity-tools-view-1.3.jar:1.3]

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.springframework.faces.ui.DojoDecorationRenderer.getNodeAttributesAsString()
    2. org.springframework.faces
      DojoDecorationRenderer.encodeEnd
      1. org.springframework.faces.ui.DojoDecorationRenderer.getNodeAttributesAsString(DojoDecorationRenderer.java:110)
      2. org.springframework.faces.ui.DojoDecorationRenderer.encodeEnd(DojoDecorationRenderer.java:81)
      2 frames
    3. JavaEE 7
      UIComponentBase.encodeEnd
      1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:856)
      1 frame
    4. JSF
      TableRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:242)
      2. com.sun.faces.renderkit.html_basic.TableRenderer.renderRow(TableRenderer.java:312)
      3. com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:133)
      3 frames
    5. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:832)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
      3. javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
      4. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:832)
      5. javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
      6. javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
      7. javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
      7 frames
    6. Facelets
      FaceletViewHandler.renderView
      1. com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
      1 frame
    7. org.springframework.faces
      JsfView.render
      1. org.springframework.faces.webflow.JsfView.render(JsfView.java:92)
      1 frame
    8. Spring Web Flow
      FlowController.handleRequest
      1. org.springframework.webflow.engine.ViewState.render(ViewState.java:240)
      2. org.springframework.webflow.engine.ViewState.resume(ViewState.java:199)
      3. org.springframework.webflow.engine.Flow.resume(Flow.java:525)
      4. org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:290)
      5. org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:153)
      6. org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:156)
      7. org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:157)
      7 frames
    9. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      2. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
      3. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
      4. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
      5. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
      5 frames
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      1 frame