javax.faces.el.EvaluationException: null Expression: #{FileBean.name} FacesContext: null

ICEsoft JIRA Issue Tracker | Mark Collette | 10 years ago
  1. 0

    In autoBeansFacelets, I use the ice:inputFile component, but it shows up as a 500 error, because it's throwing an exception. In this case, trying to resolve #{FileBean.name} for the label attribute fails, because there is no FacesContext available to the Facelets EL class LegacyValueBinding. <ice:inputFile id="inputFileComponent" label="#{FileBean.name}" file="#{FileBean.file}" progressListener="#{ProgressBean.progress}"/> javax.faces.el.EvaluationException: null Expression: #{FileBean.name} FacesContext: null at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:61) at com.icesoft.faces.component.inputfile.InputFile.getLabel(InputFile.java:251) at com.icesoft.faces.component.inputfile.InputFile.getHtml(InputFile.java:852) at com.icesoft.faces.component.inputfile.FileUploadServlet.sendOutput(FileUploadServlet.java:214) at com.icesoft.faces.component.inputfile.FileUploadServlet.doGet(FileUploadServlet.java:81) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NullPointerException at com.sun.facelets.el.ELAdaptor.getELContext(ELAdaptor.java:47) at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:55) ... 24 more

    ICEsoft JIRA Issue Tracker | 10 years ago | Mark Collette
    javax.faces.el.EvaluationException: null Expression: #{FileBean.name} FacesContext: null
  2. 0

    In autoBeansFacelets, I use the ice:inputFile component, but it shows up as a 500 error, because it's throwing an exception. In this case, trying to resolve #{FileBean.name} for the label attribute fails, because there is no FacesContext available to the Facelets EL class LegacyValueBinding. <ice:inputFile id="inputFileComponent" label="#{FileBean.name}" file="#{FileBean.file}" progressListener="#{ProgressBean.progress}"/> javax.faces.el.EvaluationException: null Expression: #{FileBean.name} FacesContext: null at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:61) at com.icesoft.faces.component.inputfile.InputFile.getLabel(InputFile.java:251) at com.icesoft.faces.component.inputfile.InputFile.getHtml(InputFile.java:852) at com.icesoft.faces.component.inputfile.FileUploadServlet.sendOutput(FileUploadServlet.java:214) at com.icesoft.faces.component.inputfile.FileUploadServlet.doGet(FileUploadServlet.java:81) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NullPointerException at com.sun.facelets.el.ELAdaptor.getELContext(ELAdaptor.java:47) at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:55) ... 24 more

    ICEsoft JIRA Issue Tracker | 10 years ago | Mark Collette
    javax.faces.el.EvaluationException: null Expression: #{FileBean.name} FacesContext: null
  3. 0

    BPM Workspace CSS error 'rowCssStyle' from bean of type fuego.workspace

    Oracle Community | 6 years ago | 780819
    javax.faces.el.EvaluationException: /jsf/view/viewPanelTemplate.xhtml @84,83 cssStyle="#{instance.rowCssStyle}": Error getting property 'rowCssStyle' from bean of type fuego.workspace.model.view.ViewTableInstanceBean: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Menu Bar problem

    Icesoft | 7 years ago | yangzhit
    javax.faces.el.EvaluationException: /inc/tops-header.jspx @28,66 rendered="#{menuBar.rendered}": Error getting property 'rendered' from bean of type sg.gov.mda.soa.common.tops.MenuBarBean: java.lang.NullPointerException
  6. 0

    Problems with IceFaces and Seam

    Icesoft | 10 years ago | tony.herstell
    javax.faces.el.EvaluationException: /file:/C:/Program%20Files/jboss-4.0.5.GA/server/default/./deploy/risingstars.ear/risingstars.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/debug.xhtml @103,89 rendered="#{org.jboss.seam.debug.introspector.attributes!=null}": Exception getting value of property attributes of base of type : org.jboss.seam.debug.Introspector$$EnhancerByCGLIB$$d90f5c82

    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. javax.faces.el.EvaluationException

      null Expression: #{FileBean.name} FacesContext: null

      at com.sun.facelets.el.LegacyValueBinding.getValue()
    2. Facelets
      LegacyValueBinding.getValue
      1. com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:61)
      1 frame
    3. com.icesoft.faces
      InputFile.getHtml
      1. com.icesoft.faces.component.inputfile.InputFile.getLabel(InputFile.java:251)
      2. com.icesoft.faces.component.inputfile.InputFile.getHtml(InputFile.java:852)
      2 frames