0 Replies Latest reply on Jul 24, 2012 10:02 PM by Alexis Superi

    javax.el.PropertyNotFoundException The class does not have the property

    Alexis Superi Newbie

      Hi!!!! I have a problem with a Property (PropertyNotFoundException).  Basically I try to invoke a method from my xhtml page and return PropertyNotFoundException.

      I'm implementing RichFaces (JDK 1.7, RichFaces 3.1, JSF 2.0, JBoss AS 6 )

       

      The error is...

       

      javax.el.PropertyNotFoundException: /CoreAction.xhtml @53,67 rendered="#{not empty coreActionList.canalesRelacionados}": The class 'org.hipotecario.BHServiceRegistry.action.CoreActionList_$$_javassist_seam_7' does not have the property 'canalesRelacionados'.
      at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
      at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:417)
      at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:113)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
      at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
      at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
      at org.richfaces.renderkit.html.SimpleToggleControlTemplate.doEncodeChildren(SimpleToggleControlTemplate.java:301)
      at org.richfaces.renderkit.html.SimpleToggleControlTemplate.doEncodeChildren(SimpleToggleControlTemplate.java:296)
      at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
      at org.richfaces.renderkit.html.SimpleTogglePanelRenderer.encodeChildren(SimpleTogglePanelRenderer.java:188)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:164)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      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:206)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
      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:60)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      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:274)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
      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:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
      at java.lang.Thread.run(Thread.java:722)

       

      And the code is...

       

      CoreAction.xhtml

      <h:form style="margin: 12px">

      <rich:simpleTogglePanel label="Canales Electronicos Relacionados al Servicio Core"

      switchType="client" style="margin: 12px">

      <h:panelGrid columns="1" columnClasses="tpanels" width="100%">

      <rich:dataTable value="#{coreActionList.canalesRelacionados}"

      var="_canalRel"

      rendered="#{not empty coreActionList.canalesRelacionados}"

      rowClasses="rvgRowOne,rvgRowTwo" id="relacionCanalServCore">

      <rich:column>

      <f:facet name="header">Canal</f:facet>

      <h:outputText value="#{_canalRel}" />

      </rich:column>

      </rich:dataTable>

      </h:panelGrid>

      <div class="actionButtons">

      <s:button value="Agregar" view="/RelacionCosEdit.xhtml">

      <f:param name="addCoreActionIdCoreAction"

      value="#{coreActionHome.instance.idCoreAction}" />

      <f:param name="relacionCosFrom" value="CoreAction" />

      </s:button>

      </div>

      </rich:simpleTogglePanel>

      </h:form>

       

      CoreActionList code ...

      public List<String> canalesRelacionados(){

                          setMaxResults(null);

                          String pref = "AltaVerificacionCliente";

                          ArrayList<String> result = new ArrayList<String>();

                          HashSet<String> hs = new HashSet<String>();

                          Iterator<Servicio> iteratorServicio = servicioList.getResultList().iterator();

        while (iteratorServicio.hasNext()) {

                                    String elem = ((String) iteratorServicio.next().getRelacionCases().iterator().next().getCanal().getCanal());

                                    if (elem != null && elem.equals(pref))

                                              result.add(elem);

                          }

                          hs.addAll(result);

                          result.clear();

                          result.addAll(hs);

                          return result;

                }


      Thanks!!!!!!!!!!!!!!!!!!!!!