Oi, essa eh a exceção e a select c ta tentando executar. Ja percebi, que quando funciona, aparece 1 select a mais…
Hibernate: select representa0_.CD_TPREPRESENTANTE as CD1_23_, representa0_.ID_REPRESENTANTE as ID2_23_, representa0_1_.BO_IMPRIMEDADOSNF as BO3_23_, representa0_1_.CD_HYDRONORTH as CD4_23_, representa0_1_.CNPF_CNPJ as CNPF5_23_, representa0_1_.DT_CADASTRO as DT6_23_, representa0_1_.DT_DESATIV as DT7_23_, representa0_1_.DT_NASC as DT8_23_, representa0_1_.DT_ULT_ALTER as DT9_23_, representa0_1_.EMAIL as EMAIL23_, representa0_1_.EMAIL2 as EMAIL11_23_, representa0_1_.EMAIL3 as EMAIL12_23_, representa0_1_.ID_ATIVIDADE as ID22_23_, representa0_1_.ID_CONTACONTABIL as ID13_23_, representa0_1_.ID_ENTIDADE_TEMP as ID14_23_, representa0_1_.ID_FILIAL as ID23_23_, representa0_1_.ID_GRUPOCONTENTIDADE as ID15_23_, representa0_1_.ID_GRUPOFISCALENTIDADE as ID24_23_, representa0_1_.INSCR_EST as INSCR16_23_, representa0_1_.NOME as NOME23_, representa0_1_.NOME_FANTASIA as NOME18_23_, representa0_1_.PAIS as PAIS23_, representa0_1_.RZ_SOCIAL as RZ20_23_, representa0_1_.TP_PESSOA as TP21_23_, representa0_.BO_ALT_CONTR_SOCIAL as BO1_46_, representa0_.BO_BONIFICADO as BO2_46_, representa0_.BO_CALC_BONUS as BO3_46_, representa0_.BO_CARTA_PREPOSTO as BO4_46_, representa0_.BO_CD as BO5_46_, representa0_.BO_CNPJ as BO6_46_, representa0_.BO_COMPROV_END as BO7_46_, representa0_.BO_CONTA_CORRENTE as BO8_46_, representa0_.BO_CONTR_SOCIAL as BO9_46_, representa0_.BO_GERA_IR as BO10_46_, representa0_.BO_GERENTE_POSSUI_COM as BO11_46_, representa0_.BO_INSCR_CORE as BO12_46_, representa0_.BO_INSCR_EST as BO13_46_, representa0_.BO_INSCR_MUN as BO14_46_, representa0_.BO_OUTROS_IMP as BO15_46_, representa0_.BO_POCKET as BO16_46_, representa0_.BO_POSSUI_COM as BO17_46_, representa0_.BO_REALIZADEB as BO18_46_, representa0_.BO_REL_BOCACAIXA as BO19_46_, representa0_.BO_REL_DEBITOCREDITO as BO20_46_, representa0_.BO_REL_DEMONSTRATIVO as BO21_46_, representa0_.BO_REL_ESPELHONFBONUS as BO22_46_, representa0_.BO_REL_ESPELHONFCOMISSAO as BO23_46_, representa0_.BO_RG_CPF as BO24_46_, representa0_.CD_GERENTEHYD as CD25_46_, representa0_.CEL_CONECT as CEL26_46_, representa0_.CIDADE_CORE as CIDADE27_46_, representa0_.CNPF as CNPF46_, representa0_.DT_AQUISICAO as DT29_46_, representa0_.DT_COMODATO_FINAL as DT30_46_, representa0_.DT_COMODATO_INICIO as DT31_46_, representa0_.DT_PROPOSTA_ENVIO as DT32_46_, representa0_.DT_PROPOSTA_RECEB as DT33_46_, representa0_.DT_TREINAMENTO as DT34_46_, representa0_.DT_TREINAMENTO_FINAL as DT35_46_, representa0_.CD_TPGERENTE as CD58_46_, representa0_.ID_GERENTE as ID59_46_, representa0_.ID_REPRESENTANTE_AFV as ID36_46_, representa0_.ID_TABELACOMISSAO as ID37_46_, representa0_.INSCR_MUNIC as INSCR38_46_, representa0_.MOTIVO_RESC as MOTIVO39_46_, representa0_.NF_AQUISICAO as NF40_46_, representa0_.NF_COMODATO as NF41_46_, representa0_.NPOSABN as NPOSABN46_, representa0_.NR_CORE as NR43_46_, representa0_.NTAMOBS as NTAMOBS46_, representa0_.OBS_DESATIVACAO as OBS45_46_, representa0_.OBS_POCKET as OBS46_46_, representa0_.OBS_RESC as OBS47_46_, representa0_.OBS_TPPEDIDO as OBS48_46_, representa0_.PORCENTAGEM as PORCENT49_46_, representa0_.RG as RG46_, representa0_.STATUS as STATUS46_, representa0_.TP_PGCOMISSAO as TP52_46_, representa0_.TP_REGIAO as TP53_46_, representa0_.ID_FILIAL as ID60_46_, representa0_.ID_TPPEDIDO as ID61_46_, representa0_.USUARIO as USUARIO46_, representa0_.VALOR_RESC as VALOR55_46_ from REPRESENTANTE representa0_, ENTIDADE representa0_1_ where representa0_.CD_TPREPRESENTANTE=representa0_1_.CD_TPENTIDADE and representa0_.ID_REPRESENTANTE=representa0_1_.ID_ENTIDADE and representa0_.STATUS='A' and representa0_.CD_TPREPRESENTANTE=representa0_.CD_TPGERENTE and representa0_.ID_REPRESENTANTE=representa0_.ID_GERENTE order by representa0_1_.RZ_SOCIAL
Hibernate: select representa0_.CD_TPREPRESENTANTE as CD1_23_, representa0_.ID_REPRESENTANTE as ID2_23_, representa0_1_.BO_IMPRIMEDADOSNF as BO3_23_, representa0_1_.CD_HYDRONORTH as CD4_23_, representa0_1_.CNPF_CNPJ as CNPF5_23_, representa0_1_.DT_CADASTRO as DT6_23_, representa0_1_.DT_DESATIV as DT7_23_, representa0_1_.DT_NASC as DT8_23_, representa0_1_.DT_ULT_ALTER as DT9_23_, representa0_1_.EMAIL as EMAIL23_, representa0_1_.EMAIL2 as EMAIL11_23_, representa0_1_.EMAIL3 as EMAIL12_23_, representa0_1_.ID_ATIVIDADE as ID22_23_, representa0_1_.ID_CONTACONTABIL as ID13_23_, representa0_1_.ID_ENTIDADE_TEMP as ID14_23_, representa0_1_.ID_FILIAL as ID23_23_, representa0_1_.ID_GRUPOCONTENTIDADE as ID15_23_, representa0_1_.ID_GRUPOFISCALENTIDADE as ID24_23_, representa0_1_.INSCR_EST as INSCR16_23_, representa0_1_.NOME as NOME23_, representa0_1_.NOME_FANTASIA as NOME18_23_, representa0_1_.PAIS as PAIS23_, representa0_1_.RZ_SOCIAL as RZ20_23_, representa0_1_.TP_PESSOA as TP21_23_, representa0_.BO_ALT_CONTR_SOCIAL as BO1_46_, representa0_.BO_BONIFICADO as BO2_46_, representa0_.BO_CALC_BONUS as BO3_46_, representa0_.BO_CARTA_PREPOSTO as BO4_46_, representa0_.BO_CD as BO5_46_, representa0_.BO_CNPJ as BO6_46_, representa0_.BO_COMPROV_END as BO7_46_, representa0_.BO_CONTA_CORRENTE as BO8_46_, representa0_.BO_CONTR_SOCIAL as BO9_46_, representa0_.BO_GERA_IR as BO10_46_, representa0_.BO_GERENTE_POSSUI_COM as BO11_46_, representa0_.BO_INSCR_CORE as BO12_46_, representa0_.BO_INSCR_EST as BO13_46_, representa0_.BO_INSCR_MUN as BO14_46_, representa0_.BO_OUTROS_IMP as BO15_46_, representa0_.BO_POCKET as BO16_46_, representa0_.BO_POSSUI_COM as BO17_46_, representa0_.BO_REALIZADEB as BO18_46_, representa0_.BO_REL_BOCACAIXA as BO19_46_, representa0_.BO_REL_DEBITOCREDITO as BO20_46_, representa0_.BO_REL_DEMONSTRATIVO as BO21_46_, representa0_.BO_REL_ESPELHONFBONUS as BO22_46_, representa0_.BO_REL_ESPELHONFCOMISSAO as BO23_46_, representa0_.BO_RG_CPF as BO24_46_, representa0_.CD_GERENTEHYD as CD25_46_, representa0_.CEL_CONECT as CEL26_46_, representa0_.CIDADE_CORE as CIDADE27_46_, representa0_.CNPF as CNPF46_, representa0_.DT_AQUISICAO as DT29_46_, representa0_.DT_COMODATO_FINAL as DT30_46_, representa0_.DT_COMODATO_INICIO as DT31_46_, representa0_.DT_PROPOSTA_ENVIO as DT32_46_, representa0_.DT_PROPOSTA_RECEB as DT33_46_, representa0_.DT_TREINAMENTO as DT34_46_, representa0_.DT_TREINAMENTO_FINAL as DT35_46_, representa0_.CD_TPGERENTE as CD58_46_, representa0_.ID_GERENTE as ID59_46_, representa0_.ID_REPRESENTANTE_AFV as ID36_46_, representa0_.ID_TABELACOMISSAO as ID37_46_, representa0_.INSCR_MUNIC as INSCR38_46_, representa0_.MOTIVO_RESC as MOTIVO39_46_, representa0_.NF_AQUISICAO as NF40_46_, representa0_.NF_COMODATO as NF41_46_, representa0_.NPOSABN as NPOSABN46_, representa0_.NR_CORE as NR43_46_, representa0_.NTAMOBS as NTAMOBS46_, representa0_.OBS_DESATIVACAO as OBS45_46_, representa0_.OBS_POCKET as OBS46_46_, representa0_.OBS_RESC as OBS47_46_, representa0_.OBS_TPPEDIDO as OBS48_46_, representa0_.PORCENTAGEM as PORCENT49_46_, representa0_.RG as RG46_, representa0_.STATUS as STATUS46_, representa0_.TP_PGCOMISSAO as TP52_46_, representa0_.TP_REGIAO as TP53_46_, representa0_.ID_FILIAL as ID60_46_, representa0_.ID_TPPEDIDO as ID61_46_, representa0_.USUARIO as USUARIO46_, representa0_.VALOR_RESC as VALOR55_46_ from REPRESENTANTE representa0_, ENTIDADE representa0_1_ where representa0_.CD_TPREPRESENTANTE=representa0_1_.CD_TPENTIDADE and representa0_.ID_REPRESENTANTE=representa0_1_.ID_ENTIDADE and representa0_.STATUS='A' order by representa0_1_.RZ_SOCIAL
17:25:56,328 ERROR _ErrorPageWriter:350 - An exception occurred
com.sun.rave.web.ui.appbase.ApplicationException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.apache.shale.view.faces.ShaleViewRoot,ViewId: /tiles/relatorios/ConsRelPedidoVendas.jsp][Class: javax.faces.component.UINamingContainer,Id: pedidovendaj_id_1][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1294923942_1j_id_1][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_jsp_1294923942_2j_id_1]}
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:594)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:325)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:243)
at org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176)
at org.apache.shale.validator.faces.ValidatorViewHandler.renderView(ValidatorViewHandler.java:130)
at org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:147)
at org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:243)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:190)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
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:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
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:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.apache.shale.view.faces.ShaleViewRoot,ViewId: /tiles/relatorios/ConsRelPedidoVendas.jsp][Class: javax.faces.component.UINamingContainer,Id: pedidovendaj_id_1][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1294923942_1j_id_1][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_jsp_1294923942_2j_id_1]}
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:559)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:250)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:246)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:246)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:246)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.actuallyRenderView(JspViewHandlerImpl.java:423)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:380)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:320)
... 43 more
Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.apache.shale.view.faces.ShaleViewRoot,ViewId: /tiles/relatorios/ConsRelPedidoVendas.jsp][Class: javax.faces.component.UINamingContainer,Id: pedidovendaj_id_1][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1294923942_1j_id_1][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_jsp_1294923942_2j_id_1][Class: org.richfaces.component.html.HtmlPanel,Id: j_id_jsp_1294923942_3j_id_1][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_jsp_1294923942_7j_id_1]}
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:559)
at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:199)
at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:194)
at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:543)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:509)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:221)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:102)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:556)
... 50 more
Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.apache.shale.view.faces.ShaleViewRoot,ViewId: /tiles/relatorios/ConsRelPedidoVendas.jsp][Class: javax.faces.component.UINamingContainer,Id: pedidovendaj_id_1][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1294923942_1j_id_1][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_jsp_1294923942_2j_id_1][Class: org.richfaces.component.html.HtmlPanel,Id: j_id_jsp_1294923942_3j_id_1][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_jsp_1294923942_7j_id_1][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: representantej_id_1]}
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:559)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:515)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:221)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:102)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:556)
... 60 more
Caused by: org.apache.jasper.el.JspELException: /relatorios/formConPedidoVendas.jsp(45,24) '#{representanteController.listaCombo}' Error reading 'listaCombo' on type br.com.hydronorth.webnorth.visao.web.controle.RepresentanteController
at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:107)
at javax.faces.component.UISelectItems.getValue(UISelectItems.java:62)
at org.apache.myfaces.shared_impl.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:106)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:550)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:526)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:314)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:288)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:57)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:556)
... 64 more
Caused by: java.lang.NullPointerException
at br.com.hydronorth.webnorth.visao.web.controle.RepresentanteController.getListaCombo(RepresentanteController.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.access$301(FacesCompositeELResolver.java:46)
at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver$4.invoke(FacesCompositeELResolver.java:108)
at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.invoke(FacesCompositeELResolver.java:148)
at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:104)
at org.apache.el.parser.AstValue.getValue(AstValue.java:114)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
... 72 more