5 Replies Latest reply on Mar 12, 2008 6:39 PM by Keith Naas

    javax.el.PropertyNotFoundException

    Brent Day Newbie

      I am not sure if my approach is correct and need some advice from the experts.


      I am getting a javax.el.PropertyNotFoundException exception when attempting to access a foreign key relationship that appears to not get loaded when the primary table record is loaded.


      My entity class for the station table:


      @Entity
      @Name("station")
      @Table(name = "STATION")
      @SequenceGenerator(name = "STATION_SEQ", sequenceName = "STATION_ID_SEQ")
      @NamedQueries({@NamedQuery(name = "Station.findById", query = "SELECT s FROM Station s WHERE s.id = :id"),
      @NamedQuery(name = "Station.findByStationName", query = "SELECT s FROM Station s WHERE s.stationName = :stationName")
      })
      
      public class Station implements Serializable {
      
          private static final long serialVersionUID = 1L;
          @Id
          @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "STATION_SEQ")
          @Column(name = "ID", nullable = false)
          private int id;
      
          @JoinColumn(name = "MARKET_ID", referencedColumnName = "ID")
          @ManyToOne
          private Market market;
      
          public Station() {
          }
      
      
          public int getId() {
              return id;
          }
      
          public void setId(int id) {
              this.id = id;
          }
      
          public Market getMarket() {
              return market;
          }
      
          public void setMarket(Market market) {
              this.market = market;
          }
      
          @Override
          public String toString() {
              return "com.vpiol.media.model.Station[id=" + id + "]";
          }
      }



      The entity class for the market table


      @Entity
      @Name("market")
      @Table(name = "MARKET")
      @NamedQueries({@NamedQuery(name = "Market.findById", query = "SELECT m FROM Market m WHERE m.id = :id")})
      
      public class Market implements Serializable {
      
          private static final long serialVersionUID = 1L;
          @Id
          @Column(name = "ID", nullable = false)
          private BigDecimal id;
      
          @Column(name = "MARKET_NAME")
          private String marketName;
      
          @OneToMany(mappedBy = "market")
          private Collection<Station> stationCollection;
      
          public Market() {
          }
      
          public Market(BigDecimal id) {
              this.id = id;
          }
      
          public BigDecimal getId() {
              return id;
          }
      
          public void setId(BigDecimal id) {
              this.id = id;
          }
      
          public String getMarketName() {
              return marketName;
          }
      
          public void setMarketName(String marketName) {
              this.marketName = marketName;
          }
      
          @Override
          public String toString() {
              return "com.vpiol.media.model.Market[id=" + id + "]";
          }
      
      }



      Finally my session bean


      @Stateful
      @Name("stationManager")
      @Restrict("#{identity.loggedIn}")
      public class StationBean implements StationLocal {
      
          @PersistenceContext
          EntityManager em;
          
          @In(required=false) @Out(required=false)
          private String lookupString;
      
          @In(required=false) @Out(required=false)
          Station station;
      
          @Begin(join=true)
          public String find() {
      
              if (getLookupString() != null ) {
      
                  try {
      
                      Query q = em.createNamedQuery("Station.findByStationName");
                      q.setParameter("stationName", getLookupString());
                      station = (Station) q.getSingleResult();
                    
                  } catch (Exception e) {
                      station = new Station();
                  }
      
              } else {
                  station = new Station();
              }
              
              // when the record is new/undefined set the station name accordingly.
              if (station.getId() == 0)
                    station.setStationName(getLookupString());
              
              return "/station.xhtml";
          }
      
          @End
          public String save() {
              
              // if this is a new record then we will call the persist
              // method to create a new station record, otherwise all the
              // merge method to update the record.
              if (station.getId() == 0)
                  em.persist(station);
              else
                  em.merge(station);
              
              station = null;
              setLookupString("");
              return "/station.xhtml";
          }
          
          @End
          public String cancel() {
          
              station = null;
              return "/home.xhtml";
          }
       
          public void setLookupString(String lookupString) {
              this.lookupString = lookupString;
          }
      
          public String getLookupString() {
              return lookupString;
          }
      
      
          @Remove
          public void destroy() {
          }
      }
      



      Finally I have my xhtml file where I use the following:



       <h:inputText value="#{station.market.marketName}" />



      This is where I get the exception.


      I get the error even if I have a market record for a station. What am I missing?


      Thanks again for your assistance.


      Brent


        • 1. Re: javax.el.PropertyNotFoundException
          Pete Muir Master

          Full exception and stack trace please.

          • 2. Re: javax.el.PropertyNotFoundException
            Brent Day Newbie
            08:01:07,932 WARN  [lifecycle] /station.xhtml @38,95 value="#{station.market.marketName}": Target Unreachable, \'market\' returned null on 'com.vpiol.media.model.Station'
            javax.el.PropertyNotFoundException: /station.xhtml @38,95 value="#{station.market.marketName}": Target Unreachable, 'market' returned null on 'com.vpiol.media.model.Station'
                    at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
                    at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
                    at javax.faces.component.UIInput.validate(UIInput.java:860)
                    at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
                    at javax.faces.component.UIInput.processValidators(UIInput.java:666)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
                    at org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:57)
                    at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:319)
                    at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
                    at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:170)
                    at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:333)
                    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
                    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                    at java.lang.Thread.run(Thread.java:613)
            08:01:07,934 WARN  [lifecycle] executePhase(PROCESS_VALIDATIONS 3,com.sun.faces.context.FacesContextImpl@c48600) threw exception
            javax.faces.FacesException: /station.xhtml @38,95 value="#{station.market.marketName}": Target Unreachable, 'market' returned null on 'com.vpiol.media.model.Station'
                    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:108)
                    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                    at java.lang.Thread.run(Thread.java:613)
            Caused by: javax.el.PropertyNotFoundException: /station.xhtml @38,95 value="#{station.market.marketName}": Target Unreachable, 'market' returned null on 'com.vpiol.media.model.Station'
                    at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
                    at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
                    at javax.faces.component.UIInput.validate(UIInput.java:860)
                    at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
                    at javax.faces.component.UIInput.processValidators(UIInput.java:666)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
                    at org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:57)
                    at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:319)
                    at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
                    at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:170)
                    at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:333)
                    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
                    ... 38 more
            08:01:07,947 ERROR [ExceptionFilter] handling uncaught exception
            javax.servlet.ServletException: /station.xhtml @38,95 value="#{station.market.marketName}": Target Unreachable, 'market' returned null on 'com.vpiol.media.model.Station'
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                    at java.lang.Thread.run(Thread.java:613)
            Caused by: javax.el.PropertyNotFoundException: /station.xhtml @38,95 value="#{station.market.marketName}": Target Unreachable, 'market' returned null on 'com.vpiol.media.model.Station'
                    at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
                    at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
                    at javax.faces.component.UIInput.validate(UIInput.java:860)
                    at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
                    at javax.faces.component.UIInput.processValidators(UIInput.java:666)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
                    at org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:57)
                    at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:319)
                    at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
                    at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:170)
                    at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:333)
                    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
                    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                    ... 35 more
            08:01:07,948 ERROR [ExceptionFilter] exception root cause
            javax.el.PropertyNotFoundException: /station.xhtml @38,95 value="#{station.market.marketName}": Target Unreachable, 'market' returned null on 'com.vpiol.media.model.Station'
                    at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
                    at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
                    at javax.faces.component.UIInput.validate(UIInput.java:860)
                    at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
                    at javax.faces.component.UIInput.processValidators(UIInput.java:666)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                    at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
                    at org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:57)
                    at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:319)
                    at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
                    at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:170)
                    at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:333)
                    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
                    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                    at java.lang.Thread.run(Thread.java:613)
            

            • 3. Re: javax.el.PropertyNotFoundException
              Todd Nash Newbie

              Without seeing the code above the


              <h:inputText value="#{station.market.marketName}" />


              line in your xhtml page, I would say that you have not created an instance of station, yet.


              Are you calling your stationManager.find() method somewhere first, to instance your Station entity?

              • 4. Re: javax.el.PropertyNotFoundException
                Brent Day Newbie

                yes, it is actually after I click my find button that I get the error. Here is a snippet


                   <s:decorate id="valueDecoration" template="layout/edit.xhtml">
                                    <ui:define name="label">Station Name</ui:define>
                                    <h:inputText  value="#{stationManager.lookupString}"/>
                                    
                                    <a:commandButton id="findStation" value="Lookup Station" action="#{stationManager.find}"/>
                

                • 5. Re: javax.el.PropertyNotFoundException
                  Keith Naas Novice

                  If it is a valid use case for their to be a null market, then you must code around it in the view so that isn't evaluated in the case of a null.


                  Doing <h:inputText value="#{station.market.marketName}" /> is no different than doing station.getMarket().getMarketName() without having called station.setMarket(new Market()).


                  Either instantiate a new market and attach it to the station, or don't render the inputTest if #{empty station.market}.


                  Good luck.