java.lang.NullPointerException

Oracle Community | 712422 | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    EJB injection in managed bean

    Oracle Community | 8 years ago | 712422
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at mypackage.Calculator.add5()
    2. mypackage
      Calculator.add5
      1. mypackage.Calculator.add5(Calculator.java:35)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. EL
      MethodExpressionImpl.invoke
      1. com.sun.el.parser.AstValue.invoke(AstValue.java:157)
      2. com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
      2 frames
    5. JavaEE 7
      MethodBindingMethodExpressionAdapter.invoke
      1. javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
      1 frame
    6. JSF
      ActionListenerImpl.processAction
      1. com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:95)
      1 frame
    7. JavaEE 7
      UIViewRoot.processApplication
      1. javax.faces.component.UICommand.broadcast(UICommand.java:387)
      2. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
      3. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
      3 frames
    8. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
      2. com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
      3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:119)
      3 frames
    9. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
      1 frame
    10. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
      4. weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
      5. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
      6. weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      7. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
      8. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
      8 frames
    11. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    12. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(Unknown Source)
      1 frame
    13. Atmosphere weblogic
      ServletRequestImpl.run
      1. weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
      2. weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
      3. weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
      3 frames
    14. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
      2 frames