javax.el.ELException: /index.xhtml @12,45 value="#{req.numb}": java.lang.NullPointerException

Stack Overflow | Typ | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Why can I not access Managed Bean data from jsf page?

    Stack Overflow | 5 months ago | Typ
    javax.el.ELException: /index.xhtml @12,45 value="#{req.numb}": java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at temp.req.getNumb()
    2. temp
      req.getNumb
      1. temp.req.getNumb(req.java:24)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    4. EL
      BeanELResolver.getValue
      1. javax.el.BeanELResolver.getValue(BeanELResolver.java:363)
      1 frame
    5. JSF
      DemuxCompositeELResolver.getValue
      1. com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
      2. com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
      2 frames
    6. EL
      ValueExpressionImpl.getValue
      1. com.sun.el.parser.AstValue.getValue(AstValue.java:140)
      2. com.sun.el.parser.AstValue.getValue(AstValue.java:204)
      3. com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:226)
      3 frames
    7. Weld Implementation
      WeldValueExpression.getValue
      1. org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
      1 frame
    8. JSF
      TagValueExpression.getValue
      1. com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
      1 frame
    9. JavaEE 7
      UIOutput.getValue
      1. javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
      2. javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
      3. javax.faces.component.UIOutput.getValue(UIOutput.java:174)
      3 frames
    10. JSF
      HtmlBasicRenderer.encodeEnd
      1. com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205)
      2. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:355)
      3. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:164)
      3 frames
    11. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:920)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)
      3. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
      4. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
      4 frames
    12. JSF
      MultiViewHandler.renderView
      1. com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:458)
      2. com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:134)
      2 frames
    13. JavaEE 7
      ViewHandlerWrapper.renderView
      1. javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
      1 frame
    14. JSF
      LifecycleImpl.render
      1. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      3. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
      3 frames
    15. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
      1 frame
    16. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
      2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
      3. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
      4. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
      5 frames
    17. Glassfish
      WebPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
      1 frame
    18. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
      2. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416)
      3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283)
      3 frames
    19. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
      2 frames
    20. Grizzly Server
      HttpServerFilter.handleRead
      1. org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
      2. org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
      3. org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
      3 frames
    21. Grizzly
      AbstractThreadPool$Worker.run
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
      5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
      6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      7. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
      8. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
      9. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
      10. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
      11. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
      12. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
      13. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
      13 frames
    22. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame