org.apache.myfaces.view.facelets.el.ContextAwareELException: javax.el.ELException: java.lang.NullPointerException: bean parameter can not be null

Apache's JIRA Issue Tracker | Matthias We├čendorf | 5 years ago
  1. 0

    check out the following demo project: https://github.com/matzew/modern-ee-app20 it works fine with codi 1.0.1, BUT I get an NPE when I use 1.0.2 (on the create dialog): http://localhost:9090/faces/new_person.xhtml --> click the <h:commandButton /> button in the page and (with 1.0.2 only...) you hit this stack trace: {code} org.apache.myfaces.view.facelets.el.ContextAwareELException: javax.el.ELException: java.lang.NullPointerException: bean parameter can not be null at org.apache.myfaces.view.facelets.el.ContextAwareTagMethodExpression.invoke(ContextAwareTagMethodExpression.java:108) at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72) at org.apache.myfaces.extensions.cdi.jsf.impl.security.SecurityViolationAwareActionListener.processAction(SecurityViolationAwareActionListener.java:56) at org.apache.myfaces.extensions.cdi.jsf.impl.config.view.ViewControllerActionListener.processAction(ViewControllerActionListener.java:68) at org.apache.myfaces.extensions.cdi.jsf.impl.listener.action.CodiActionListener.processAction(CodiActionListener.java:58) at javax.faces.component.UICommand.broadcast(UICommand.java:120) at javax.faces.component.UIViewRoot._broadcastAll(UIViewRoot.java:1013) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:284) at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1302) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:745) at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:38) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:170) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.execute(CodiLifecycleWrapper.java:95) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:546) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1283) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1254) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:481) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114) at org.eclipse.jetty.server.Server.handle(Server.java:353) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1076) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450) at java.lang.Thread.run(Thread.java:680) Caused by: javax.el.ELException: java.lang.NullPointerException: bean parameter can not be null at com.sun.el.parser.AstValue.invoke(AstValue.java:238) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297) at org.apache.myfaces.view.facelets.el.ContextAwareTagMethodExpression.invoke(ContextAwareTagMethodExpression.java:96) ... 41 more Caused by: java.lang.NullPointerException: bean parameter can not be null at org.apache.webbeans.util.Asserts.assertNotNull(Asserts.java:51) at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:890) at org.apache.webbeans.container.InjectableBeanManager.getReference(InjectableBeanManager.java:133) at org.apache.myfaces.extensions.cdi.jpa.impl.transaction.TransactionalInterceptorStrategy.resolveEntityManagerForQualifier(TransactionalInterceptorStrategy.java:252) at org.apache.myfaces.extensions.cdi.jpa.impl.transaction.TransactionalInterceptorStrategy.execute(TransactionalInterceptorStrategy.java:101) at org.apache.myfaces.extensions.cdi.jpa.impl.transaction.TransactionalInterceptor.executeInTransaction(TransactionalInterceptor.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.webbeans.intercept.InvocationContextImpl.proceedAroundInvokes(InvocationContextImpl.java:239) at org.apache.webbeans.intercept.InvocationContextImpl.proceed(InvocationContextImpl.java:178) at org.apache.webbeans.intercept.DependentScopedBeanInterceptorHandler.callAroundInvokes(DependentScopedBeanInterceptorHandler.java:85) at org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:305) at org.apache.webbeans.intercept.DependentScopedBeanInterceptorHandler.invoke(DependentScopedBeanInterceptorHandler.java:74) at net.wessendorf.enterprise.jpa.dao.PersonDao_$$_javassist_29.persist(PersonDao_$$_javassist_29.java) at net.wessendorf.enterprise.service.PersonServerImpl.savePerson(PersonServerImpl.java:38) at net.wessendorf.enterprise.faces.CreatePersonController.createPerson(CreatePersonController.java:34) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:329) at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:122) at net.wessendorf.enterprise.faces.CreatePersonController_$$_javassist_28.createPerson(CreatePersonController_$$_javassist_28.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:234) ... 43 more {code}

    Apache's JIRA Issue Tracker | 5 years ago | Matthias We├čendorf
    org.apache.myfaces.view.facelets.el.ContextAwareELException: javax.el.ELException: java.lang.NullPointerException: bean parameter can not be null
  2. 0

    MyFaces 2.0.20 with JBoss AS 7 or 6 EAP

    Stack Overflow | 3 years ago | Ruben Trancoso
    java.lang.NullPointerException: path can not be null.
  3. 0

    Uploading a File via SCP with Maven fails

    Stack Overflow | 6 years ago | Jens Schauder
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:upload-single (default-cli) on project de.volkswagen.dps.ear: Unable to create a Wagon instance for null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    6.0 - ERROR - Failed to execute task - NullPointerException: path can not be null

    Google Groups | 4 months ago | Unknown author
    java.lang.NullPointerException: path can not be null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      bean parameter can not be null

      at org.apache.webbeans.util.Asserts.assertNotNull()
    2. OpenWebBeans Core
      InjectableBeanManager.getReference
      1. org.apache.webbeans.util.Asserts.assertNotNull(Asserts.java:51)
      2. org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:890)
      3. org.apache.webbeans.container.InjectableBeanManager.getReference(InjectableBeanManager.java:133)
      3 frames
    3. MyFaces CDI JSF
      TransactionalInterceptor.executeInTransaction
      1. org.apache.myfaces.extensions.cdi.jpa.impl.transaction.TransactionalInterceptorStrategy.resolveEntityManagerForQualifier(TransactionalInterceptorStrategy.java:252)
      2. org.apache.myfaces.extensions.cdi.jpa.impl.transaction.TransactionalInterceptorStrategy.execute(TransactionalInterceptorStrategy.java:101)
      3. org.apache.myfaces.extensions.cdi.jpa.impl.transaction.TransactionalInterceptor.executeInTransaction(TransactionalInterceptor.java:54)
      3 frames
    4. 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
    5. OpenWebBeans Core
      DependentScopedBeanInterceptorHandler.invoke
      1. org.apache.webbeans.intercept.InvocationContextImpl.proceedAroundInvokes(InvocationContextImpl.java:239)
      2. org.apache.webbeans.intercept.InvocationContextImpl.proceed(InvocationContextImpl.java:178)
      3. org.apache.webbeans.intercept.DependentScopedBeanInterceptorHandler.callAroundInvokes(DependentScopedBeanInterceptorHandler.java:85)
      4. org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:305)
      5. org.apache.webbeans.intercept.DependentScopedBeanInterceptorHandler.invoke(DependentScopedBeanInterceptorHandler.java:74)
      5 frames
    6. net.wessendorf.enterprise
      CreatePersonController.createPerson
      1. net.wessendorf.enterprise.jpa.dao.PersonDao_$$_javassist_29.persist(PersonDao_$$_javassist_29.java)
      2. net.wessendorf.enterprise.service.PersonServerImpl.savePerson(PersonServerImpl.java:38)
      3. net.wessendorf.enterprise.faces.CreatePersonController.createPerson(CreatePersonController.java:34)
      3 frames
    7. 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
    8. OpenWebBeans Core
      NormalScopedBeanInterceptorHandler.invoke
      1. org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:329)
      2. org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:122)
      2 frames
    9. net.wessendorf.enterprise
      CreatePersonController_$$_javassist_28.createPerson
      1. net.wessendorf.enterprise.faces.CreatePersonController_$$_javassist_28.createPerson(CreatePersonController_$$_javassist_28.java)
      1 frame
    10. 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
    11. EL
      MethodExpressionImpl.invoke
      1. com.sun.el.parser.AstValue.invoke(AstValue.java:234)
      2. com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
      2 frames
    12. org.apache.myfaces
      ContextAwareTagMethodExpression.invoke
      1. org.apache.myfaces.view.facelets.el.ContextAwareTagMethodExpression.invoke(ContextAwareTagMethodExpression.java:96)
      1 frame
    13. Impl
      ActionListenerImpl.processAction
      1. org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
      1 frame
    14. MyFaces CDI JSF
      CodiActionListener.processAction
      1. org.apache.myfaces.extensions.cdi.jsf.impl.security.SecurityViolationAwareActionListener.processAction(SecurityViolationAwareActionListener.java:56)
      2. org.apache.myfaces.extensions.cdi.jsf.impl.config.view.ViewControllerActionListener.processAction(ViewControllerActionListener.java:68)
      3. org.apache.myfaces.extensions.cdi.jsf.impl.listener.action.CodiActionListener.processAction(CodiActionListener.java:58)
      3 frames
    15. JavaEE 7
      UIViewRoot.processApplication
      1. javax.faces.component.UICommand.broadcast(UICommand.java:120)
      2. javax.faces.component.UIViewRoot._broadcastAll(UIViewRoot.java:1013)
      3. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:284)
      4. javax.faces.component.UIViewRoot._process(UIViewRoot.java:1302)
      5. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:745)
      5 frames
    16. Impl
      LifecycleImpl.execute
      1. org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:38)
      2. org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:170)
      3. org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      3 frames
    17. MyFaces CDI JSF
      CodiLifecycleWrapper.execute
      1. org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.execute(CodiLifecycleWrapper.java:95)
      1 frame
    18. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
      1 frame
    19. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:546)
      2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1283)
      2 frames
    20. PrettyFaces for JSF 2.0.x
      PrettyFilter.doFilter
      1. com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
      1 frame
    21. Jetty
      HttpConnection.handle
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1254)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:481)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
      12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
      13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
      14. org.eclipse.jetty.server.Server.handle(Server.java:353)
      15. org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
      16. org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1076)
      17. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
      18. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
      19. org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
      19 frames
    22. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
      3. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
      3 frames
    23. Jetty
      QueuedThreadPool$2.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
      1 frame
    24. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame