Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4678

Getting NPE FaceletStateValueExpression.getWrapped(jakarta.el.ELContext)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.2, 5.0.0, 4.1.0-RC2
    • 5.0.0, 4.0.3, 4.1.0-RC3
    • None
    • None
    • Tomcat 10.1, MyFaces 4.0.2, Weld 5.1.2, Primefaces 14.0.4

    Description

      Getting a weird NPE when switching dialogs but only if I am in jakarta.faces.PROJECT_STAGE=Production. In Development everything works. I'll try to create a reproducer, for now I'll just attach the stacktrace. Maybe someone can already give some insights why this might be happening.

      SEVERE: Cannot invoke "jakarta.el.ValueExpression.getValue(jakarta.el.ELContext)" because the return value of "org.apache.myfaces.view.facelets.el.FaceletStateValueExpression.getWrapped(jakarta.el.ELContext)" is null
      java.lang.NullPointerException: Cannot invoke "jakarta.el.ValueExpression.getValue(jakarta.el.ELContext)" because the return value of "org.apache.myfaces.view.facelets.el.FaceletStateValueExpression.getWrapped(jakarta.el.ELContext)" is null
      	at org.apache.myfaces.view.facelets.el.FaceletStateValueExpression.getValue(FaceletStateValueExpression.java:114)
      	at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:74)
      	at org.apache.el.parser.AstEqual.getValue(AstEqual.java:37)
      	at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:170)
      	at org.jboss.weld.module.web.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
      	at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getValue(ContextAwareTagValueExpression.java:100)
      	at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:74)
      	at org.apache.el.parser.AstOr.getValue(AstOr.java:37)
      	at org.apache.el.parser.AstOr.getValue(AstOr.java:37)
      	at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:170)
      	at org.jboss.weld.module.web.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
      	at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getValue(ContextAwareTagValueExpression.java:100)
      	at org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:462)
      	at org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:138)
      	at org.apache.myfaces.view.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:111)
      	at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:57)
      	at org.apache.myfaces.view.facelets.tag.faces.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:362)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:52)
      	at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:57)
      	at org.apache.myfaces.view.facelets.tag.faces.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:362)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:52)
      	at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:57)
      	at org.apache.myfaces.view.facelets.tag.faces.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:362)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:52)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:57)
      	at org.apache.myfaces.view.facelets.tag.faces.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:362)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:52)
      	at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      	at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:147)
      	at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:67)
      	at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:49)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:523)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:579)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:556)
      	at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:216)
      	at org.apache.myfaces.view.facelets.tag.ui.DecorateHandler.apply(DecorateHandler.java:199)
      	at org.apache.myfaces.view.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:83)
      	at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:160)
      	at org.apache.myfaces.view.facelets.impl.TemplateContextImpl$TemplateManagerImpl.apply(TemplateContextImpl.java:192)
      	at org.apache.myfaces.view.facelets.impl.TemplateContextImpl.includeDefinition(TemplateContextImpl.java:137)
      	at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:423)
      	at org.apache.myfaces.view.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:94)
      	at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      	at org.apache.myfaces.view.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:83)
      	at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:160)
      	at org.apache.myfaces.view.facelets.impl.TemplateContextImpl$TemplateManagerImpl.apply(TemplateContextImpl.java:192)
      	at org.apache.myfaces.view.facelets.impl.TemplateContextImpl.includeDefinition(TemplateContextImpl.java:137)
      	at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:423)
      	at org.apache.myfaces.view.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:94)
      	at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      	at org.apache.myfaces.view.facelets.tag.faces.core.ViewHandler.apply(ViewHandler.java:195)
      	at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:57)
      	at org.apache.myfaces.view.facelets.tag.faces.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:362)
      	at jakarta.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:52)
      	at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      	at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:67)
      	at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      	at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:49)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:523)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:579)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:556)
      	at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:216)
      	at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:138)
      	at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:67)
      	at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:49)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:523)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:579)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:556)
      	at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:216)
      	at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:138)
      	at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:67)
      	at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:49)
      	at org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:195)
      	at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.buildView(FaceletViewDeclarationLanguage.java:423)
      	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:83)
      	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
      	at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.render(DeltaSpikeLifecycleWrapper.java:118)
      	at jakarta.faces.webapp.FacesServlet.service(FacesServlet.java:225)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:663)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389)
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
      	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
      	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
      	at java.base/java.lang.Thread.run(Thread.java:1583)
      

      Attachments

        1. myfaces-4678.zip
          8 kB
          Melloware
        2. myfaces-bug.zip
          6 kB
          Guenter Windsperger

        Activity

          People

            melloware Melloware
            jansohn Robin Jansohn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: