这个错误是什么意思?
javax.faces.el.EvaluationException:/WEB-INF/view/template.xhtml @ 18,58 rendered =“#{seguridadACG.esRol eq'Productor'}”:异常 获取类型的基础属性esRol的值: org.javassist.tmp.java.lang.Object _ $$ _ javassist_374 at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60) 在 javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075) 在 com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:231) 在 com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) 在 com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580) 在 org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) 在 org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233) 在 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) 在javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 在 org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 在org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 在 org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127) 在 org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 在 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 在 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 在 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 在 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) 在 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) 在 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) 在 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 在 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 在 org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) 在 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 在 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 在 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 在 org.apache.coyote.http11.Http11BaseProtocol $ Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 在 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 在 org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) 在java.lang.Thread.run(Thread.java:662)
我的课程是:
@Stateful
@Name("seguridadACG")
public class SeguridadControllerBean implements SeguridadController, Serializable {
private static final long serialVersionUID = 7838664976264342564L;
private String esRol;
public String getEsRol(){
this.esRol = "Productor";
return this.esRol;
}
}
在XHTML中,我把这段代码:
<h:outputText value=" Productores" rendered="#{seguridadACG.esRol == 'Productor'}" />
有人......拜托!救命! 感谢