Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.NullPointerException: 	at xx.controller.HomeController.setBatchId(HomeController.java:70)	at xx.controller.HomeController.getBatchId(HomeController.java:65)	at xx.controller.HomeController$Proxy$_$$_WeldClientProxy.getBatchId(HomeController$Proxy$_$$_WeldClientProxy.java)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at javax.el.BeanELResolver.getValue(BeanELResolver.java:302)	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)	at org.apache.el.parser.AstValue.getValue(AstValue.java:169)	at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)	at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)	at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)	at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)	at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)	at javax.faces.component.UIOutput.getValue(UIOutput.java:174)	at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205)	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:355)	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:164)	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)	at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:88)	at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:71)	at org.primefaces.component.fieldset.FieldsetRenderer.encodeContent(FieldsetRenderer.java:94)	at org.primefaces.component.fieldset.FieldsetRenderer.encodeMarkup(FieldsetRenderer.java:76)	at org.primefaces.component.fieldset.FieldsetRenderer.encodeEnd(FieldsetRenderer.java:47)	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)	at javax.faces.render.Renderer.encodeChildren(Renderer.java:176)	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:456)	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)	at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:100)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)	at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)	at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)	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:372)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)	at java.lang.Thread.run(Unknown Source)