java.lang.NullPointerException: javax.faces.FacesException: #{especialidadeBean.insert}: java.lang.NullPointerException

com.br | 4 months ago
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.
  1. 0

    Integrando Spring 3.0 e JPA 2.0

    com.br | 4 months ago
    java.lang.NullPointerException: javax.faces.FacesException: #{especialidadeBean.insert}: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at br.com.controller.EspecialidadeController.insert()
    2. br.com.controller
      EspecialidadeController.insert
      1. br.com.controller.EspecialidadeController.insert(EspecialidadeController.java:28)[classes:]
      1 frame
    3. br.com.formbean
      EspecialidadeBean.insert
      1. br.com.formbean.EspecialidadeBean.insert(EspecialidadeBean.java:30)[classes:]
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[rt.jar:1.7.0_09]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[rt.jar:1.7.0_09]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[rt.jar:1.7.0_09]
      4. java.lang.reflect.Method.invoke(Unknown Source)[rt.jar:1.7.0_09]
      4 frames
    5. Pax Jsp
      MethodExpressionImpl.invoke
      1. org.apache.el.parser.AstValue.invoke(AstValue.java:262)[jbossweb-7.0.13.Final.jar:]
      2. org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)[jbossweb-7.0.13.Final.jar:]
      2 frames
    6. JSF
      TagMethodExpression.invoke
      1. com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)[jsf-impl-2.1.7-jbossorg-2.jar:]
      1 frame
    7. JavaEE 7
      MethodBindingMethodExpressionAdapter.invoke
      1. javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)[jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
      1 frame
    8. JSF
      ActionListenerImpl.processAction
      1. com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)[jsf-impl-2.1.7-jbossorg-2.jar:]
      1 frame
    9. JavaEE 7
      UIViewRoot.processApplication
      1. javax.faces.component.UICommand.broadcast(UICommand.java:315)[jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
      2. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)[jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
      3. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)[jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
      3 frames
    10. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)[jsf-impl-2.1.7-jbossorg-2.jar:]
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)[jsf-impl-2.1.7-jbossorg-2.jar:]
      3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)[jsf-impl-2.1.7-jbossorg-2.jar:]
      3 frames
    11. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)[jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
      1 frame
    12. Glassfish Core
      StandardContextValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)[jbossweb-7.0.13.Final.jar:]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.13.Final.jar:]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)[jbossweb-7.0.13.Final.jar:]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)[jbossweb-7.0.13.Final.jar:]
      4 frames
    13. JPA
      WebNonTxEmCloserValve.invoke
      1. org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)[jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
      1 frame
    14. JBoss Web
      SecurityContextAssociationValve.invoke
      1. org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
      1 frame
    15. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)[jbossweb-7.0.13.Final.jar:]
      2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[jbossweb-7.0.13.Final.jar:]
      3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[jbossweb-7.0.13.Final.jar:]
      4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)[jbossweb-7.0.13.Final.jar:]
      4 frames
    16. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)[jbossweb-7.0.13.Final.jar:]
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)[jbossweb-7.0.13.Final.jar:]
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)[jbossweb-7.0.13.Final.jar:]
      3 frames
    17. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)[rt.jar:1.7.0_09]
      1 frame