java.lang.NullPointerException

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.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at xx.controller.HomeController.setBatchId()
  2. xx.controller
    HomeController$Proxy$_$$_WeldClientProxy.getBatchId
    1. xx.controller.HomeController.setBatchId(HomeController.java:70)[classes:]
    2. xx.controller.HomeController.getBatchId(HomeController.java:65)[classes:]
    3. xx.controller.HomeController$Proxy$_$$_WeldClientProxy.getBatchId(HomeController$Proxy$_$$_WeldClientProxy.java)[classes:]
    3 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[rt.jar:1.6.0_30]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[rt.jar:1.6.0_30]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[rt.jar:1.6.0_30]
    4. java.lang.reflect.Method.invoke(Unknown Source)[rt.jar:1.6.0_30]
    4 frames
  4. EL
    BeanELResolver.getValue
    1. javax.el.BeanELResolver.getValue(BeanELResolver.java:302)[jboss-el-api_2.2_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
    1 frame
  5. JSF
    DemuxCompositeELResolver.getValue
    1. com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)[jsf-impl-2.2.10.jar:2.2.10]
    2. com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)[jsf-impl-2.2.10.jar:2.2.10]
    2 frames
  6. Pax Jsp
    ValueExpressionImpl.getValue
    1. org.apache.el.parser.AstValue.getValue(AstValue.java:169)[jbossweb-7.0.17.Final-redhat-1.jar:]
    2. org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)[jbossweb-7.0.17.Final-redhat-1.jar:]
    2 frames
  7. Weld Implementation
    WeldValueExpression.getValue
    1. org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)[weld-core-1.1.10.Final-redhat-1.jar:1.1.10.Final-redhat-1]
    1 frame
  8. JSF
    TagValueExpression.getValue
    1. com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)[jsf-impl-2.2.10.jar:2.2.10]
    1 frame
  9. JavaEE 7
    UIOutput.getValue
    1. javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)[jsf-api-2.2.10.jar:2.2]
    2. javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)[jsf-api-2.2.10.jar:2.2]
    3. javax.faces.component.UIOutput.getValue(UIOutput.java:174)[jsf-api-2.2.10.jar:2.2]
    3 frames
  10. JSF
    HtmlBasicRenderer.encodeEnd
    1. com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205)[jsf-impl-2.2.10.jar:2.2.10]
    2. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:355)[jsf-impl-2.2.10.jar:2.2.10]
    3. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:164)[jsf-impl-2.2.10.jar:2.2.10]
    3 frames
  11. JavaEE 7
    UIComponentBase.encodeEnd
    1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)[jsf-api-2.2.10.jar:2.2]
    1 frame
  12. primefaces
    FieldsetRenderer.encodeEnd
    1. org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:88)[primefaces-5.2.1.jar:5.2.1]
    2. org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:71)[primefaces-5.2.1.jar:5.2.1]
    3. org.primefaces.component.fieldset.FieldsetRenderer.encodeContent(FieldsetRenderer.java:94)[primefaces-5.2.1.jar:5.2.1]
    4. org.primefaces.component.fieldset.FieldsetRenderer.encodeMarkup(FieldsetRenderer.java:76)[primefaces-5.2.1.jar:5.2.1]
    5. org.primefaces.component.fieldset.FieldsetRenderer.encodeEnd(FieldsetRenderer.java:47)[primefaces-5.2.1.jar:5.2.1]
    5 frames
  13. JavaEE 7
    UIComponent.encodeAll
    1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)[jsf-api-2.2.10.jar:2.2]
    2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)[jsf-api-2.2.10.jar:2.2]
    3. javax.faces.render.Renderer.encodeChildren(Renderer.java:176)[jsf-api-2.2.10.jar:2.2]
    4. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)[jsf-api-2.2.10.jar:2.2]
    5. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)[jsf-api-2.2.10.jar:2.2]
    6. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)[jsf-api-2.2.10.jar:2.2]
    7. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)[jsf-api-2.2.10.jar:2.2]
    7 frames
  14. JSF
    MultiViewHandler.renderView
    1. com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:456)[jsf-impl-2.2.10.jar:2.2.10]
    2. com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)[jsf-impl-2.2.10.jar:2.2.10]
    2 frames
  15. JavaEE 7
    ViewHandlerWrapper.renderView
    1. javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)[jsf-api-2.2.10.jar:2.2]
    2. javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)[jsf-api-2.2.10.jar:2.2]
    2 frames
  16. JSF
    LifecycleImpl.render
    1. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)[jsf-impl-2.2.10.jar:2.2.10]
    2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)[jsf-impl-2.2.10.jar:2.2.10]
    3. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)[jsf-impl-2.2.10.jar:2.2.10]
    3 frames
  17. JavaEE 7
    FacesServlet.service
    1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)[jsf-api-2.2.10.jar:2.2]
    1 frame
  18. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)[jbossweb-7.0.17.Final-redhat-1.jar:]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.17.Final-redhat-1.jar:]
    2 frames
  19. primefaces
    FileUploadFilter.doFilter
    1. org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:100)[primefaces-5.2.1.jar:5.2.1]
    1 frame
  20. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.17.Final-redhat-1.jar:]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.17.Final-redhat-1.jar:]
    2 frames
  21. Weld Implementation
    ConversationPropagationFilter.doFilter
    1. org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)[weld-core-1.1.10.Final-redhat-1.jar:1.1.10.Final-redhat-1]
    1 frame
  22. Glassfish Core
    AuthenticatorBase.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.17.Final-redhat-1.jar:]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.17.Final-redhat-1.jar:]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)[jbossweb-7.0.17.Final-redhat-1.jar:]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)[jbossweb-7.0.17.Final-redhat-1.jar:]
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)[jbossweb-7.0.17.Final-redhat-1.jar:]
    5 frames
  23. JPA
    WebNonTxEmCloserValve.invoke
    1. org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)[jboss-as-jpa-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
    1 frame
  24. JBoss Web
    SecurityContextAssociationValve.invoke
    1. org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)[jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
    1 frame
  25. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)[jbossweb-7.0.17.Final-redhat-1.jar:]
    2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[jbossweb-7.0.17.Final-redhat-1.jar:]
    3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[jbossweb-7.0.17.Final-redhat-1.jar:]
    4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372)[jbossweb-7.0.17.Final-redhat-1.jar:]
    4 frames
  26. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)[jbossweb-7.0.17.Final-redhat-1.jar:]
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)[jbossweb-7.0.17.Final-redhat-1.jar:]
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)[jbossweb-7.0.17.Final-redhat-1.jar:]
    3 frames
  27. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)[rt.jar:1.6.0_30]
    1 frame