java.lang.NullPointerException

Spring JIRA | Agim Emruli | 9 years ago
  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

    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.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