我正在开发一个JSF页面,并且需要对Employee的数据设置一些流程。数据之一是员工辞职。
但是,由于员工可能有一些与他相关但与辞职无关的流程,所以我正在尝试使用“选择清单/双重清单”模型(Primefaces 3.5)。
它是这样的:
在源选择列表中,有链接到Employee的流程。在目标选择列表中,有与他辞职相关的过程。当我选择一个或某些进程并按选择列表按钮进行跨接时,一切正常。当我尝试保留数据时会发生麻烦。
我有一个已编码的转换器,但是我无法对其进行调试:该程序未达到我设置的断点。
已到达DAO,并且在调用merge方法之后,将出现错误。
getter和setter的编码也带有适当的上限。
我正在Eclipse,Windows 7,本地JBoss实例(6.1)上运行它。
我已经尝试了在互联网上找到的有关此主题的所有内容:更改了转换器属性,使用了两个或三个不同的FacesConverter配置(带有value,forClass等)。 我也更改了转换器代码,尝试了其他商品标签,依此类推...
<p:pickList id="pickProcTrab" value="# {desligamentoManagedBean.dualProcTrab}"
var="processoTrab" itemLabel="#{processoTrab.nrProcJud}"
itemValue="#{processoTrab}" converter="#{plProcTrabConverter}">
</p:pickList>
private DualListModel<ProcessoTrab> dualProcTrab;
private List<ProcessoTrab> procTrabNaoVinculados;
private List<ProcessoTrab> procTrabVinculados;
//Method to persist the data (calls a DAO with only a merge()).
public void salvarFechar() {
//TODO: implementar
if (acao.equals("Novo")) {
if
(this.svc.retornaDesligamentoIgual(this.desligamento) == false) {
this.desligamento.setProcessosTrab(dualProcTrab.getTarget());
this.svc.salvar(this.desligamento);
} else {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR," Ja ha desligamento cadastrado para este mesmo cargo e data de admissao",""));
}
} else { //Edicao
if (this.svc.retornaDesligamentoIgual(this.desligamento) == false) {
this.desligamento.setProcessosTrab(dualProcTrab.getTarget());
this.svc.salvar(this.desligamento);
} else {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR," Ja ha desligamento cadastrado para este mesmo cargo e data de admissao",""));
}
}
}
ProcessoTrab (Processes linked to the Employee and could be linked to his resignation).
@Entity
@Table(name="FUNCIONARIO_PROCESSO_TRAB")
public class ProcessoTrab {
@ManyToMany(mappedBy="processosTrab")
private List<Desligamento> desligamentos;
public String getNrProcJud() {
return nrProcJud;
}
public void setNrProcJud(String nrProcJud) {
this.nrProcJud = nrProcJud;
}
Resignation class (Called Desligamento)
@ManyToMany(fetch=FetchType.EAGER)
@JoinTable(name="DESLIGAMENTO_PROCESSO_TRAB",
joinColumns = @JoinColumn(name="ID_DESLIGAMENTO"),
inverseJoinColumns= @JoinColumn(name="CD_FUNCIONARIO_PROCESSO_TRAB"))
private List<ProcessoTrab> processosTrab;
public List<ProcessoTrab> getProcessosTrab() {
return processosTrab;
}
public void setProcessosTrab(List<ProcessoTrab> procTrab) {
this.processosTrab = procTrab;
}
And, finally, the Converter
@FacesConverter(value="plProcTrabConverter")
public class ProcessoTrabConverter implements Converter {
public ProcessoTrabConverter() {
}
@Override
public Object getAsObject(FacesContext fc, UIComponent comp, String value) {
DualListModel <ProcessoTrab> model = (DualListModel<ProcessoTrab>) ((PickList) comp).getValue();
for (Object pt : model.getSource()) {
if (pt.equals(value)) {
return pt;
}
}
for (Object pt : model.getTarget()) {
if (pt.equals(value)) {
return pt;
}
}
return null;
}
@Override
public String getAsString(FacesContext context, UIComponent comp, Object pProcessoTrab) {
String retorno = "";
DualListModel <ProcessoTrab> model = (DualListModel<ProcessoTrab>) ((PickList) comp).getValue();
for (ProcessoTrab pt : model.getSource()) {
if (pt.equals(pProcessoTrab)) {
retorno = pt.getCdProcessoTrab().toString();
}
}
for (ProcessoTrab pt : model.getTarget()) {
if (pt.equals(pProcessoTrab)) {
retorno = pt.getCdProcessoTrab().toString();
}
}
return retorno;
}
}
SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (http-localhost/127.0.0.1:8080-6) Error Rendering View[/Desligamento.xhtml]: javax.el.PropertyNotFoundException: /Desligamento.xhtml @223,88 itemLabel="#{processoTrab.nrProcJud}": The class 'java.lang.String' does not have the property 'nrProcJud'.
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:111) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.primefaces.component.picklist.PickList.getItemLabel(PickList.java:133) [primefaces-3.5.jar:]
at org.primefaces.component.picklist.PickListRenderer.encodeOptions(PickListRenderer.java:229) [primefaces-3.5.jar:]
at org.primefaces.component.picklist.PickListRenderer.encodeList(PickListRenderer.java:195) [primefaces-3.5.jar:]
at org.primefaces.component.picklist.PickListRenderer.encodeMarkup(PickListRenderer.java:97) [primefaces-3.5.jar:]
at org.primefaces.component.picklist.PickListRenderer.encodeEnd(PickListRenderer.java:59) [primefaces-3.5.jar:]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.primefaces.component.panelgrid.PanelGridRenderer.encodeRow(PanelGridRenderer.java:143) [primefaces-3.5.jar:]
at org.primefaces.component.panelgrid.PanelGridRenderer.encodeStaticBody(PanelGridRenderer.java:107) [primefaces-3.5.jar:]
at org.primefaces.component.panelgrid.PanelGridRenderer.encodeBody(PanelGridRenderer.java:63) [primefaces-3.5.jar:]
at org.primefaces.component.panelgrid.PanelGridRenderer.encodeEnd(PanelGridRenderer.java:49) [primefaces-3.5.jar:]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:63) [primefaces-3.5.jar:]
at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:47) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:202) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:119) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:56) [primefaces-3.5.jar:]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:63) [primefaces-3.5.jar:]
at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:47) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:202) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:119) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:56) [primefaces-3.5.jar:]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:447) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79) [primefaces-3.5.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.keycloak.adapters.tomcat.AuthenticatedActionsValve.invoke(AuthenticatedActionsValve.java:51) [keycloak-tomcat-core-adapter-1.4.0.Final.jar:1.4.0.Final]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:420) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:175) [keycloak-tomcat-core-adapter-1.4.0.Final.jar:1.4.0.Final]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_201]
16:56:37,240 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/srh].[Faces Servlet]] (http-localhost/127.0.0.1:8080-6) JBWEB000236: Servlet.service() for servlet Faces Servlet threw exception: javax.el.PropertyNotFoundException: /Desligamento.xhtml @223,88 itemLabel="#{processoTrab.nrProcJud}": The class 'java.lang.String' does not have the property 'nrProcJud'.
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:111) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.primefaces.component.picklist.PickList.getItemLabel(PickList.java:133) [primefaces-3.5.jar:]
at org.primefaces.component.picklist.PickListRenderer.encodeOptions(PickListRenderer.java:229) [primefaces-3.5.jar:]
at org.primefaces.component.picklist.PickListRenderer.encodeList(PickListRenderer.java:195) [primefaces-3.5.jar:]
at org.primefaces.component.picklist.PickListRenderer.encodeMarkup(PickListRenderer.java:97) [primefaces-3.5.jar:]
at org.primefaces.component.picklist.PickListRenderer.encodeEnd(PickListRenderer.java:59) [primefaces-3.5.jar:]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.primefaces.component.panelgrid.PanelGridRenderer.encodeRow(PanelGridRenderer.java:143) [primefaces-3.5.jar:]
at org.primefaces.component.panelgrid.PanelGridRenderer.encodeStaticBody(PanelGridRenderer.java:107) [primefaces-3.5.jar:]
at org.primefaces.component.panelgrid.PanelGridRenderer.encodeBody(PanelGridRenderer.java:63) [primefaces-3.5.jar:]
at org.primefaces.component.panelgrid.PanelGridRenderer.encodeEnd(PanelGridRenderer.java:49) [primefaces-3.5.jar:]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:63) [primefaces-3.5.jar:]
at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:47) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:202) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:119) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:56) [primefaces-3.5.jar:]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:63) [primefaces-3.5.jar:]
at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:47) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:202) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:119) [primefaces-3.5.jar:]
at org.primefaces.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:56) [primefaces-3.5.jar:]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:447) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.28.redhat-3.jar:2.1.28.redhat-3]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar:2.1.28.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79) [primefaces-3.5.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.keycloak.adapters.tomcat.AuthenticatedActionsValve.invoke(AuthenticatedActionsValve.java:51) [keycloak-tomcat-core-adapter-1.4.0.Final.jar:1.4.0.Final]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:420) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:175) [keycloak-tomcat-core-adapter-1.4.0.Final.jar:1.4.0.Final]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_201]
//Code at the Managed Bean
procTrabNaoVinculados = this.svc.buscaProcessosTrabalhistasPorFuncionario(funcionario, desligamento);
procTrabVinculados = desligamento.getProcessosTrab();
dualProcTrab = new DualListModel<ProcessoTrab> (procTrabNaoVinculados, procTrabVinculados);
/* Code called to populate procTrabNaoVinculados list. This is a svc object method. */
public List<Desligamento> buscaDesligamentosPorFuncionario(Funcionario pFuncionario) {
String consulta = "SELECT D FROM Desligamento D where D.funcionario = :pSQLFunc";
TypedQuery<Desligamento> query = entityManager.createQuery(consulta, Desligamento.class);
query.setParameter("pSQLFunc", pFuncionario);
List<Desligamento> desligamentosFunc = (List<Desligamento>) query.getResultList();
return desligamentosFunc; }
</CODE>