Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ____ ____ ____ __ __ _
- / ___| / ___| _ \ \ \ / /__ _ __| | _____ _ __
- \___ \| | _| |_) | _____ \ \ /\ / / _ \| '__| |/ / _ \ '__|
- ___) | |_| | _ < |_____| \ V V / (_) | | | < __/ |
- |____/ \____|_| \_\ \_/\_/ \___/|_| |_|\_\___|_|
- by Tribo Inovação
- 2019-01-23 15:15:58.352 INFO 16404 --- [ main] br.com.conductor.sgr.Worker : Starting Worker v4.7.0 on NJP004388 with PID 16404 (C:\Users\diomar.neto\.m2\repository\br\com\conductor\sgr-core\4.7.0\sgr-core-4.7.0.jar started by diomar.neto in C:\Ambiente\workspace-sgr\sgr-plugin-pagseguro-securitizacao)
- 2019-01-23 15:15:58.360 INFO 16404 --- [ main] br.com.conductor.sgr.Worker : The following profiles are active: worker,sgr-core
- 2019-01-23 15:16:03.120 INFO 16404 --- [ main] ro.fortsoft.pf4j.DefaultPluginManager : PF4J version 1.1.0 in 'deployment' mode
- 2019-01-23 15:16:03.147 INFO 16404 --- [ main] r.f.pf4j.DefaultPluginStatusProvider : Enabled plugins: []
- 2019-01-23 15:16:03.149 INFO 16404 --- [ main] r.f.pf4j.DefaultPluginStatusProvider : Disabled plugins: []
- 2019-01-23 15:16:21.311 WARN 16404 --- [ main] com.zaxxer.hikari.HikariConfig : idleTimeout is less than 10000ms, setting to default 600000ms.
- 2019-01-23 15:16:21.317 INFO 16404 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-0 - is starting.
- 2019-01-23 15:16:21.942 INFO 16404 --- [ main] b.c.c.sgr.config.ds.DataSourceSGRConfig : Releasing Liquibase Locks
- 2019-01-23 15:16:23.078 INFO 16404 --- [ main] b.c.c.sgr.config.ds.DataSourceSGRConfig : Clear Liquibase ChecksSums
- 2019-01-23 15:16:23.221 INFO 16404 --- [ main] liquibase : Liquibase did not run because 'shouldRun' property was set to false on liquibase Liquibase Spring bean.
- 2019-01-23 15:16:23.403 INFO 16404 --- [ main] com.mchange.v2.log.MLog : MLog clients using log4j logging.
- 2019-01-23 15:16:23.916 INFO 16404 --- [ main] com.mchange.v2.c3p0.C3P0Registry : Initializing c3p0-0.9.1.1 [built 15-March-2007 01:32:31; debug? true; trace: 10]
- 2019-01-23 15:16:23.966 INFO 16404 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor
- 2019-01-23 15:16:24.049 INFO 16404 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
- 2019-01-23 15:16:24.052 INFO 16404 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.2.1 created.
- 2019-01-23 15:16:24.090 INFO 16404 --- [ main] org.quartz.impl.jdbcjobstore.JobStoreTX : Using thread monitor-based data access locking (synchronization).
- 2019-01-23 15:16:24.096 INFO 16404 --- [ main] org.quartz.impl.jdbcjobstore.JobStoreTX : JobStoreTX initialized.
- 2019-01-23 15:16:24.103 INFO 16404 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.2.1) 'schedulerFactoryBean' with instanceId 'NJP004388'
- Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
- NOT STARTED.
- Currently in standby mode.
- Number of jobs executed: 0
- Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 25 threads.
- Using job-store 'org.quartz.impl.jdbcjobstore.JobStoreTX' - which supports persistence. and is not clustered.
- 2019-01-23 15:16:24.103 INFO 16404 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'schedulerFactoryBean' initialized from an externally provided properties instance.
- 2019-01-23 15:16:24.104 INFO 16404 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.2.1
- 2019-01-23 15:16:24.106 INFO 16404 --- [ main] org.quartz.core.QuartzScheduler : JobFactory set to: br.com.conductor.sgr.quartz.QuartzJobFactory@3ddc5a75
- 2019-01-23 15:16:29.100 INFO 16404 --- [ main] c.m.v.c.i.AbstractPoolBackedDataSource : Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 2rwcn5a0ydvjpn712cd3|6c9e7af2, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> net.sourceforge.jtds.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2rwcn5a0ydvjpn712cd3|6c9e7af2, idleConnectionTestPeriod -> 50, initialPoolSize -> 3, jdbcUrl -> jdbc:jtds:sqlserver://10.19.20.21:1433;databaseName=SGR_CORE_DEV;appName=SGR_CORE_QUARTZ, lastAcquisitionFailureDefaultUser -> null, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 10, maxStatements -> 0, maxStatementsPerConnection -> 120, minPoolSize -> 1, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> SELECT 1, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> true, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
- 2019-01-23 15:16:30.181 INFO 16404 --- [ main] org.quartz.impl.jdbcjobstore.JobStoreTX : Freed 0 triggers from 'acquired' / 'blocked' state.
- 2019-01-23 15:16:30.432 INFO 16404 --- [ main] org.quartz.impl.jdbcjobstore.JobStoreTX : Recovering 0 jobs that were in-progress at the time of the last shut-down.
- 2019-01-23 15:16:30.432 INFO 16404 --- [ main] org.quartz.impl.jdbcjobstore.JobStoreTX : Recovery complete.
- 2019-01-23 15:16:30.556 INFO 16404 --- [ main] org.quartz.impl.jdbcjobstore.JobStoreTX : Removed 0 'complete' triggers.
- 2019-01-23 15:16:30.685 INFO 16404 --- [ main] org.quartz.impl.jdbcjobstore.JobStoreTX : Removed 0 stale fired job entries.
- 2019-01-23 15:16:30.812 INFO 16404 --- [ main] org.quartz.core.QuartzScheduler : Scheduler schedulerFactoryBean_$_NJP004388 started.
- 2019-01-23 15:16:31.178 INFO 16404 --- [ main] br.com.conductor.sgr.Worker : Started Worker in 35.398 seconds (JVM running for 36.84)
- 2019-01-23 15:16:31.185 INFO 16404 --- [ main] b.c.c.sgr.config.plugin.PluginService : Carregando todos os plugins
- 2019-01-23 15:16:31.190 INFO 16404 --- [ main] ro.fortsoft.pf4j.DefaultPluginManager : No plugins
- 2019-01-23 15:16:31.609 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.p.workers.utils.WorkerApplication :
- ____ ____ ____ __ __ _
- / ___| / ___|| _ \ \ \ / / ___ _ __ | | __ ___ _ __
- \___ \ | | _ | |_) | _____ \ \ /\ / / / _ \ | '__|| |/ / / _ \| '__|
- ___) || |_| || _ < |_____| \ V V / | (_) || | | < | __/| |
- |____/ \____||_| \_\ \_/\_/ \___/ |_| |_|\_\ \___||_|
- 2019-01-23 15:16:31.630 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.p.workers.utils.WorkerApplication :
- +-------------------------------------------------+------------------------------------------------------+
- | JOBS | FILAS |
- +-------------------------------------------------+------------------------------------------------------+
- | JobImportacaoArquivoPontosDigital | QUEUE_PROCESSAR_PROTOCOLO_RETORNO_PAGAMENTO_BRADESCO |
- | JobProcessamentoPontosDigital | QUEUE_FATURAS_V6 |
- | JobImportacaoArquivoCnab | QUEUE_FATURAS_EMAIL_V6 |
- | JobProtocoloRetornoPagamento | QUEUE_PONTOS_DIGITAL |
- | JobProcessamentoFaturaSabeV6 | QUEUE_IMPORTACAO_ARQUIVO_CNAB |
- | JobProcessamentoFaturaSabeEmailV6 | QUEUE_IMPORTACAO_ARQUIVO_PONTOS |
- | JobProcessamentoEspelhoFaturaSabeV6 | QUEUE_ESPELHO_FATURAS_V6 |
- | JobProcessamentoCadastroFull | QUEUE_CADASTRO_FULL |
- | JobProcedureExecution | QUEUE_PROCEDURE_PONTOS_DIGITAL |
- | JobProcessamentoFullAutorizacoes | QUEUE_FULL_AUTORIZACOES |
- | JobProcessamentoParcelamentoFatura | QUEUE_PARCELAMENTO_FATURA |
- | JobProcessamentoAnaliticoFraude | QUEUE_ANALITICO_FRAUDE |
- | JobProcessamentoArquivoRemessaBancaria | QUEUE_ARQUIVO_REMESSA_BANCARIA |
- | JobExecutando | QUEUE_IMPORTACAO_ARQUIVO_HRC |
- | JobArquivoHabilitacaoRedecompras | QUEUE_ARQUIVO_CREDENCIAMENTO_REDECOMPRAS |
- | JobImportacaoArquivoRetHabilitacaoRC | QUEUE_ARQUIVO_CONCILIACAO |
- | JobImportacaoArquivoConciliacao | QUEUE_ARQUIVO_EO2 |
- | JobProcessamentoLancamentosContabeis | QUEUE_LANCAMENTOS_CONTABEIS |
- | JobProcessamentoRazaoDiarioAuxiliar | QUEUE_RAZAO_DIARIO_AUXILIAR |
- | JobProcessamentoInterfaceContabil | QUEUE_INTERFACE_CONTABIL |
- | JobProcessamentoRazaoDiarioAuxiliarCBSS | QUEUE_RAZAO_DIARIO_AUXILIAR_CBSS |
- | JobImportacaoPANVAS | QUEUE_IMPORTACAO_PANVAS |
- | JobExportacaoPANVAS | QUEUE_EXPORTACAO_PANVAS |
- | JobArquivoBacenDoc3040 | QUEUE_CARGA_ARQUIVO_CADOC3040 |
- | JobImportacaoCaixa | QUEUE_GERA_ARQUIVO_XML_CADOC3040 |
- | JobExportArquivoResc | QUEUE_IMPORTACAO_CAIXA |
- | JobExportacaoArquivo5816 | QUEUE_EXPORT_RESC |
- | JobProcessamentoFaturaSabeV3 | QUEUE_EXPORTACAO_ARQUIVO_5816 |
- | JobGenerico | QUEUE_FATURAS_V3 |
- | JobExemplo | QUEUE_ARQUIVO_GENERICO |
- | JobGeraXmlCadastroPositivo | QUEUE_ARQUIVO_EXEMPLO |
- | JobImportacaoCorrespondenciasDevolvidas | QUEUE_CADASTRO_POSITIVO |
- | JobProcedureExecutionCorrespondenciasDevolvidas | QUEUE_IMPORTACAO_CORRESPONDENCIAS_DEVOLVIDAS |
- | JobParaRodarScript | QUEUE_PROCEDURE_CORRESPONDENCIAS_DEVOLVIDAS |
- | BuilderSecuritizacao | QUEUE_RODAR_SCRIPT |
- | JobSecuritizacao | QUEUE_BUILDER_SECURITIZACAO |
- | BuilderSecuritizacao | QUEUE_PROCESSAMENTO_SECURITIZACAO |
- | JobSecuritizacao | QUEUE_BUILDER_SECURITIZACAO |
- | | QUEUE_PROCESSAMENTO_SECURITIZACAO |
- +-------------------------------------------------+------------------------------------------------------+
- 2019-01-23 15:16:31.631 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.p.workers.utils.WorkerApplication :
- Esperando Job...
- 2019-01-23 15:19:01.589 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.sgr.config.ds.CarregarDataSource : Carregando do Data Source Pagseguro Securitizacao
- 2019-01-23 15:19:01.736 WARN 16404 --- [-2.0.2: RUNNING] com.zaxxer.hikari.HikariConfig : idleTimeout is less than 10000ms, setting to default 600000ms.
- 2019-01-23 15:19:01.737 INFO 16404 --- [-2.0.2: RUNNING] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - is starting.
- 2019-01-23 15:19:03.105 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.sgr.config.ds.CarregarDataSource : Data Source 'Pagseguro Securitizacao' carregado. (DataSource [id=20081, nome=Pagseguro Securitizacao, host=10.70.33.30, domain=null, databaseName=P180357, usuario=UserPier, chave=null, socketTimeout=900000, loginTimeout=900000, aplicacaoId=14, active=true, failedAttempts=0])
- 2019-01-23 15:19:05.291 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.s.p.ps.jobs.BuilderSecuritizacao : Enfileirando 1 job(s)
- 2019-01-23 15:19:06.230 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.p.workers.utils.WorkerApplication :
- ____ ____ ____ __ __ _
- / ___| / ___|| _ \ \ \ / / ___ _ __ | | __ ___ _ __
- \___ \ | | _ | |_) | _____ \ \ /\ / / / _ \ | '__|| |/ / / _ \| '__|
- ___) || |_| || _ < |_____| \ V V / | (_) || | | < | __/| |
- |____/ \____||_| \_\ \_/\_/ \___/ |_| |_|\_\ \___||_|
- 2019-01-23 15:19:06.237 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.p.workers.utils.WorkerApplication :
- +-------------------------------------------------+------------------------------------------------------+
- | JOBS | FILAS |
- +-------------------------------------------------+------------------------------------------------------+
- | JobImportacaoArquivoPontosDigital | QUEUE_PROCESSAMENTO_SECURITIZACAO |
- | JobProcessamentoPontosDigital | QUEUE_BUILDER_SECURITIZACAO |
- | JobImportacaoArquivoCnab | QUEUE_PROCESSAMENTO_SECURITIZACAO |
- | JobProtocoloRetornoPagamento | QUEUE_PROCESSAR_PROTOCOLO_RETORNO_PAGAMENTO_BRADESCO |
- | JobProcessamentoFaturaSabeV6 | QUEUE_FATURAS_V6 |
- | JobProcessamentoFaturaSabeEmailV6 | QUEUE_FATURAS_EMAIL_V6 |
- | JobProcessamentoEspelhoFaturaSabeV6 | QUEUE_PONTOS_DIGITAL |
- | JobProcessamentoCadastroFull | QUEUE_IMPORTACAO_ARQUIVO_CNAB |
- | JobProcedureExecution | QUEUE_IMPORTACAO_ARQUIVO_PONTOS |
- | JobProcessamentoFullAutorizacoes | QUEUE_ESPELHO_FATURAS_V6 |
- | JobProcessamentoParcelamentoFatura | QUEUE_CADASTRO_FULL |
- | JobProcessamentoAnaliticoFraude | QUEUE_PROCEDURE_PONTOS_DIGITAL |
- | JobProcessamentoArquivoRemessaBancaria | QUEUE_FULL_AUTORIZACOES |
- | JobExecutando | QUEUE_PARCELAMENTO_FATURA |
- | JobArquivoHabilitacaoRedecompras | QUEUE_ANALITICO_FRAUDE |
- | JobImportacaoArquivoRetHabilitacaoRC | QUEUE_ARQUIVO_REMESSA_BANCARIA |
- | JobImportacaoArquivoConciliacao | QUEUE_IMPORTACAO_ARQUIVO_HRC |
- | JobProcessamentoLancamentosContabeis | QUEUE_ARQUIVO_CREDENCIAMENTO_REDECOMPRAS |
- | JobProcessamentoRazaoDiarioAuxiliar | QUEUE_ARQUIVO_CONCILIACAO |
- | JobProcessamentoInterfaceContabil | QUEUE_ARQUIVO_EO2 |
- | JobProcessamentoRazaoDiarioAuxiliarCBSS | QUEUE_LANCAMENTOS_CONTABEIS |
- | JobImportacaoPANVAS | QUEUE_RAZAO_DIARIO_AUXILIAR |
- | JobExportacaoPANVAS | QUEUE_INTERFACE_CONTABIL |
- | JobArquivoBacenDoc3040 | QUEUE_RAZAO_DIARIO_AUXILIAR_CBSS |
- | JobImportacaoCaixa | QUEUE_IMPORTACAO_PANVAS |
- | JobExportArquivoResc | QUEUE_EXPORTACAO_PANVAS |
- | JobExportacaoArquivo5816 | QUEUE_CARGA_ARQUIVO_CADOC3040 |
- | JobProcessamentoFaturaSabeV3 | QUEUE_GERA_ARQUIVO_XML_CADOC3040 |
- | JobGenerico | QUEUE_IMPORTACAO_CAIXA |
- | JobExemplo | QUEUE_EXPORT_RESC |
- | JobGeraXmlCadastroPositivo | QUEUE_EXPORTACAO_ARQUIVO_5816 |
- | JobImportacaoCorrespondenciasDevolvidas | QUEUE_FATURAS_V3 |
- | JobProcedureExecutionCorrespondenciasDevolvidas | QUEUE_ARQUIVO_GENERICO |
- | JobParaRodarScript | QUEUE_ARQUIVO_EXEMPLO |
- | BuilderSecuritizacao | QUEUE_CADASTRO_POSITIVO |
- | JobSecuritizacao | QUEUE_IMPORTACAO_CORRESPONDENCIAS_DEVOLVIDAS |
- | BuilderSecuritizacao | QUEUE_PROCEDURE_CORRESPONDENCIAS_DEVOLVIDAS |
- | JobSecuritizacao | QUEUE_RODAR_SCRIPT |
- | | QUEUE_BUILDER_SECURITIZACAO |
- +-------------------------------------------------+------------------------------------------------------+
- 2019-01-23 15:19:06.238 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.p.workers.utils.WorkerApplication :
- Esperando Job...
- 2019-01-23 15:19:24.586 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.s.plugin.ps.jobs.JobSecuritizacao : Buscando pagamentos para 1 contas
- 2019-01-23 15:20:34.338 INFO 16404 --- [-2.0.2: RUNNING] b.c.c.s.plugin.ps.jobs.JobSecuritizacao : Buscando parcelamentos para 1 pagamentos
- 2019-01-23 15:20:50.872 ERROR 16404 --- [-2.0.2: RUNNING] jdbc.audit : 15. PreparedStatement.executeQuery() SET NOCOUNT ON IF Object_id(N'tempdb..#detalhamento_parcelamento') IS NOT NULL BEGIN DROP TABLE #detalhamento_parcelamento END CREATE TABLE #detalhamento_parcelamento ( idcontrato INT ,tipocontrato VARCHAR(255) ,valor MONEY ,valorentrada MONEY ,qtdparcelascontratadas INT ,parcelaatual INT ,valortotalcontrato MONEY ,dataadesao SMALLDATETIME ,id_eventocompra INT ); INSERT INTO #detalhamento_parcelamento SELECT pa.id_parcelamento AS idcontrato ,st.descricao AS tipocontrato ,pa.valorparcela AS valor ,pa.valorentrada AS valorentrada ,pa.quantidadeparcelas AS qtdparcelascontratadas ,0 AS parcelaatual ,pa.valortotalrefinanciamento AS valortotalcontrato ,pa.dataprocessamentoadesao AS dataadesao ,r.id_eventocompra FROM parcelamentos pa WITH (NOLOCK) INNER JOIN servicoselegiveis se WITH (NOLOCK) ON se.id_servicoelegivel = pa.id_servicoelegivel INNER JOIN servicostipos st WITH (NOLOCK) ON st.id_servicotipo = se.id_servicotipo INNER JOIN refinanciamento r WITH (NOLOCK) ON r.id_conta = se.id_conta AND pa.valortotalrefinanciamento = r.totalrefinanciado AND pa.valorparcela = r.valorparcela LEFT JOIN debitosdiversos dd WITH (NOLOCK) ON dd.id_conta = se.id_conta AND dd.id_eventocompra = r.id_eventocompra WHERE pa.statusadesao = 3 --AND dd.parcelapedida <= dd.quantidadeparcelas AND pa.dataprocessamentoadesao IS NOT NULL AND se.dataexecucao IS NOT NULL AND se.id_conta = :idConta AND r.datarefinanciamento <= :dataPagamento AND ( r.STATUS = 0 OR dd.id_operacao IN ( SELECT id_operacao FROM tiposoperacoes tpos WITH (NOLOCK) WHERE tpos.nomeoperacao LIKE '%refinanciamento com juros%' OR tpos.nomeoperacao LIKE '%parcelamento de fatura rotativo%' OR tpos.nomeoperacao LIKE '%financiamento automatico de minimo%' ) ) ORDER BY pa.id_parcelamento DESC UPDATE dp SET dp.parcelaatual = tc.parcela FROM #detalhamento_parcelamento dp INNER JOIN ( SELECT tc.id_eventoexterno ,Max(tc.parcela) AS parcela FROM transacoescorrentes tc WITH (NOLOCK) GROUP BY tc.id_eventoexterno ,tc.id_conta ,tc.datavencimentoreal ,tc.id_tipotransacao HAVING tc.id_conta = :idConta AND tc.id_tipotransacao IN ( SELECT id_tipotransacao FROM tipostransacoes WITH (NOLOCK) WHERE nome LIKE '%parcelarefinanciamentojuros%' OR nome LIKE '%parcela de fatura rotativo%' OR nome LIKE '%parcela de fatura do financiamento do valor minimo%' ) AND tc.datavencimentoreal IN ( SELECT hc.datavencimentoreal FROM historicoscorrentes hc WITH (NOLOCK) INNER JOIN controlevencimentos cv WITH (NOLOCK) ON cv.datavencimento = CONVERT(SMALLDATETIME, hc.datavencimentopadrao, 103) WHERE hc.id_conta = :idConta AND CONVERT(SMALLDATETIME, :dataReferencia, 103) BETWEEN cv.dataprevistafaturamento AND Dateadd(day, - 1, hc.datafechamentoproxfatura) ) ) tc ON dp.id_eventocompra = tc.id_eventoexterno SELECT idcontrato ,tipocontrato ,valor ,valorentrada ,qtdparcelascontratadas ,parcelaatual ,valortotalcontrato ,dataadesao FROM #detalhamento_parcelamento;
- java.sql.SQLException: The executeQuery method must return a result set.
- at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:516) ~[jtds-1.3.1.jar:1.3.1]
- at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:1029) ~[jtds-1.3.1.jar:1.3.1]
- at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52) ~[HikariCP-2.4.3.jar:na]
- at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java) ~[HikariCP-2.4.3.jar:na]
- at net.sf.log4jdbc.PreparedStatementSpy.executeQuery(PreparedStatementSpy.java:735) ~[log4jdbc-remix-0.2.7.jar:na]
- at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:688) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:707) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:757) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at br.com.conductor.processador.utils.repositorios.JdbcRepository.query(JdbcRepository.java:575) [sgr-core-4.7.0.jar:4.7.0]
- at br.com.conductor.sgr.plugin.ps.repositorios.RepositorioParcelamentoImpl.findParcelamentos(RepositorioParcelamentoImpl.java:35) [classes/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_201]
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201]
- at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_201]
- at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) [spring-tx-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at com.sun.proxy.$Proxy93.findParcelamentos(Unknown Source) [na:na]
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.lambda$run$0(JobSecuritizacao.java:80) [classes/:na]
- at java.util.ArrayList.forEach(Unknown Source) ~[na:1.8.0_201]
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.run(JobSecuritizacao.java:79) [classes/:na]
- at br.com.conductor.processador.workers.utils.WorkerImplCustom.execute(WorkerImplCustom.java:81) ~[sgr-core-4.7.0.jar:4.7.0]
- at net.greghaines.jesque.worker.WorkerImpl.process(WorkerImpl.java:562) ~[jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.poll(WorkerImpl.java:428) ~[jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.run(WorkerImpl.java:212) ~[jesque-2.0.2.jar:na]
- at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_201]
- 2019-01-23 15:20:53.972 ERROR 16404 --- [-2.0.2: RUNNING] jdbc.sqlonly : 15. PreparedStatement.executeQuery() SET NOCOUNT ON IF Object_id(N'tempdb..#detalhamento_parcelamento') IS NOT NULL BEGIN DROP TABLE #detalhamento_parcelamento END CREATE TABLE #detalhamento_parcelamento ( idcontrato INT ,tipocontrato VARCHAR(255) ,valor MONEY ,valorentrada MONEY ,qtdparcelascontratadas INT ,parcelaatual INT ,valortotalcontrato MONEY ,dataadesao SMALLDATETIME ,id_eventocompra INT ); INSERT INTO #detalhamento_parcelamento SELECT pa.id_parcelamento AS idcontrato ,st.descricao AS tipocontrato ,pa.valorparcela AS valor ,pa.valorentrada AS valorentrada ,pa.quantidadeparcelas AS qtdparcelascontratadas ,0 AS parcelaatual ,pa.valortotalrefinanciamento AS valortotalcontrato ,pa.dataprocessamentoadesao AS dataadesao ,r.id_eventocompra FROM parcelamentos pa WITH (NOLOCK) INNER JOIN servicoselegiveis se WITH (NOLOCK) ON se.id_servicoelegivel = pa.id_servicoelegivel INNER JOIN servicostipos st WITH (NOLOCK) ON st.id_servicotipo = se.id_servicotipo INNER JOIN refinanciamento r WITH (NOLOCK) ON r.id_conta = se.id_conta AND pa.valortotalrefinanciamento = r.totalrefinanciado AND pa.valorparcela = r.valorparcela LEFT JOIN debitosdiversos dd WITH (NOLOCK) ON dd.id_conta = se.id_conta AND dd.id_eventocompra = r.id_eventocompra WHERE pa.statusadesao = 3 --AND dd.parcelapedida <= dd.quantidadeparcelas AND pa.dataprocessamentoadesao IS NOT NULL AND se.dataexecucao IS NOT NULL AND se.id_conta = :idConta AND r.datarefinanciamento <= :dataPagamento AND ( r.STATUS = 0 OR dd.id_operacao IN ( SELECT id_operacao FROM tiposoperacoes tpos WITH (NOLOCK) WHERE tpos.nomeoperacao LIKE '%refinanciamento com juros%' OR tpos.nomeoperacao LIKE '%parcelamento de fatura rotativo%' OR tpos.nomeoperacao LIKE '%financiamento automatico de minimo%' ) ) ORDER BY pa.id_parcelamento DESC UPDATE dp SET dp.parcelaatual = tc.parcela FROM #detalhamento_parcelamento dp INNER JOIN ( SELECT tc.id_eventoexterno ,Max(tc.parcela) AS parcela FROM transacoescorrentes tc WITH (NOLOCK) GROUP BY tc.id_eventoexterno ,tc.id_conta ,tc.datavencimentoreal ,tc.id_tipotransacao HAVING tc.id_conta = :idConta AND tc.id_tipotransacao IN ( SELECT id_tipotransacao FROM tipostransacoes WITH (NOLOCK) WHERE nome LIKE '%parcelarefinanciamentojuros%' OR nome LIKE '%parcela de fatura rotativo%' OR nome LIKE '%parcela de fatura do financiamento do valor minimo%' ) AND tc.datavencimentoreal IN ( SELECT hc.datavencimentoreal FROM historicoscorrentes hc WITH (NOLOCK) INNER JOIN controlevencimentos cv WITH (NOLOCK) ON cv.datavencimento = CONVERT(SMALLDATETIME, hc.datavencimentopadrao, 103) WHERE hc.id_conta = :idConta AND CONVERT(SMALLDATETIME, :dataReferencia, 103) BETWEEN cv.dataprevistafaturamento AND Dateadd(day, - 1, hc.datafechamentoproxfatura) ) ) tc ON dp.id_eventocompra = tc.id_eventoexterno SELECT idcontrato ,tipocontrato ,valor ,valorentrada ,qtdparcelascontratadas ,parcelaatual ,valortotalcontrato ,dataadesao FROM #detalhamento_parcelamento;
- java.sql.SQLException: The executeQuery method must return a result set.
- at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:516) ~[jtds-1.3.1.jar:1.3.1]
- at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:1029) ~[jtds-1.3.1.jar:1.3.1]
- at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52) ~[HikariCP-2.4.3.jar:na]
- at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java) ~[HikariCP-2.4.3.jar:na]
- at net.sf.log4jdbc.PreparedStatementSpy.executeQuery(PreparedStatementSpy.java:735) ~[log4jdbc-remix-0.2.7.jar:na]
- at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:688) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:707) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:757) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at br.com.conductor.processador.utils.repositorios.JdbcRepository.query(JdbcRepository.java:575) [sgr-core-4.7.0.jar:4.7.0]
- at br.com.conductor.sgr.plugin.ps.repositorios.RepositorioParcelamentoImpl.findParcelamentos(RepositorioParcelamentoImpl.java:35) [classes/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_201]
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201]
- at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_201]
- at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) [spring-tx-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at com.sun.proxy.$Proxy93.findParcelamentos(Unknown Source) [na:na]
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.lambda$run$0(JobSecuritizacao.java:80) [classes/:na]
- at java.util.ArrayList.forEach(Unknown Source) ~[na:1.8.0_201]
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.run(JobSecuritizacao.java:79) [classes/:na]
- at br.com.conductor.processador.workers.utils.WorkerImplCustom.execute(WorkerImplCustom.java:81) ~[sgr-core-4.7.0.jar:4.7.0]
- at net.greghaines.jesque.worker.WorkerImpl.process(WorkerImpl.java:562) ~[jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.poll(WorkerImpl.java:428) ~[jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.run(WorkerImpl.java:212) ~[jesque-2.0.2.jar:na]
- at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_201]
- 2019-01-23 15:20:54.021 ERROR 16404 --- [-2.0.2: RUNNING] jdbc.sqltiming : 15. PreparedStatement.executeQuery() FAILED! SET NOCOUNT ON IF Object_id(N'tempdb..#detalhamento_parcelamento') IS NOT NULL BEGIN DROP TABLE #detalhamento_parcelamento END CREATE TABLE #detalhamento_parcelamento ( idcontrato INT ,tipocontrato VARCHAR(255) ,valor MONEY ,valorentrada MONEY ,qtdparcelascontratadas INT ,parcelaatual INT ,valortotalcontrato MONEY ,dataadesao SMALLDATETIME ,id_eventocompra INT ); INSERT INTO #detalhamento_parcelamento SELECT pa.id_parcelamento AS idcontrato ,st.descricao AS tipocontrato ,pa.valorparcela AS valor ,pa.valorentrada AS valorentrada ,pa.quantidadeparcelas AS qtdparcelascontratadas ,0 AS parcelaatual ,pa.valortotalrefinanciamento AS valortotalcontrato ,pa.dataprocessamentoadesao AS dataadesao ,r.id_eventocompra FROM parcelamentos pa WITH (NOLOCK) INNER JOIN servicoselegiveis se WITH (NOLOCK) ON se.id_servicoelegivel = pa.id_servicoelegivel INNER JOIN servicostipos st WITH (NOLOCK) ON st.id_servicotipo = se.id_servicotipo INNER JOIN refinanciamento r WITH (NOLOCK) ON r.id_conta = se.id_conta AND pa.valortotalrefinanciamento = r.totalrefinanciado AND pa.valorparcela = r.valorparcela LEFT JOIN debitosdiversos dd WITH (NOLOCK) ON dd.id_conta = se.id_conta AND dd.id_eventocompra = r.id_eventocompra WHERE pa.statusadesao = 3 --AND dd.parcelapedida <= dd.quantidadeparcelas AND pa.dataprocessamentoadesao IS NOT NULL AND se.dataexecucao IS NOT NULL AND se.id_conta = :idConta AND r.datarefinanciamento <= :dataPagamento AND ( r.STATUS = 0 OR dd.id_operacao IN ( SELECT id_operacao FROM tiposoperacoes tpos WITH (NOLOCK) WHERE tpos.nomeoperacao LIKE '%refinanciamento com juros%' OR tpos.nomeoperacao LIKE '%parcelamento de fatura rotativo%' OR tpos.nomeoperacao LIKE '%financiamento automatico de minimo%' ) ) ORDER BY pa.id_parcelamento DESC UPDATE dp SET dp.parcelaatual = tc.parcela FROM #detalhamento_parcelamento dp INNER JOIN ( SELECT tc.id_eventoexterno ,Max(tc.parcela) AS parcela FROM transacoescorrentes tc WITH (NOLOCK) GROUP BY tc.id_eventoexterno ,tc.id_conta ,tc.datavencimentoreal ,tc.id_tipotransacao HAVING tc.id_conta = :idConta AND tc.id_tipotransacao IN ( SELECT id_tipotransacao FROM tipostransacoes WITH (NOLOCK) WHERE nome LIKE '%parcelarefinanciamentojuros%' OR nome LIKE '%parcela de fatura rotativo%' OR nome LIKE '%parcela de fatura do financiamento do valor minimo%' ) AND tc.datavencimentoreal IN ( SELECT hc.datavencimentoreal FROM historicoscorrentes hc WITH (NOLOCK) INNER JOIN controlevencimentos cv WITH (NOLOCK) ON cv.datavencimento = CONVERT(SMALLDATETIME, hc.datavencimentopadrao, 103) WHERE hc.id_conta = :idConta AND CONVERT(SMALLDATETIME, :dataReferencia, 103) BETWEEN cv.dataprevistafaturamento AND Dateadd(day, - 1, hc.datafechamentoproxfatura) ) ) tc ON dp.id_eventocompra = tc.id_eventoexterno SELECT idcontrato ,tipocontrato ,valor ,valorentrada ,qtdparcelascontratadas ,parcelaatual ,valortotalcontrato ,dataadesao FROM #detalhamento_parcelamento; {FAILED after 421 msec}
- java.sql.SQLException: The executeQuery method must return a result set.
- at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:516) ~[jtds-1.3.1.jar:1.3.1]
- at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:1029) ~[jtds-1.3.1.jar:1.3.1]
- at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52) ~[HikariCP-2.4.3.jar:na]
- at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java) ~[HikariCP-2.4.3.jar:na]
- at net.sf.log4jdbc.PreparedStatementSpy.executeQuery(PreparedStatementSpy.java:735) ~[log4jdbc-remix-0.2.7.jar:na]
- at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:688) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:707) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:757) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192) [spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at br.com.conductor.processador.utils.repositorios.JdbcRepository.query(JdbcRepository.java:575) [sgr-core-4.7.0.jar:4.7.0]
- at br.com.conductor.sgr.plugin.ps.repositorios.RepositorioParcelamentoImpl.findParcelamentos(RepositorioParcelamentoImpl.java:35) [classes/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_201]
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201]
- at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_201]
- at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) [spring-tx-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) [spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at com.sun.proxy.$Proxy93.findParcelamentos(Unknown Source) [na:na]
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.lambda$run$0(JobSecuritizacao.java:80) [classes/:na]
- at java.util.ArrayList.forEach(Unknown Source) ~[na:1.8.0_201]
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.run(JobSecuritizacao.java:79) [classes/:na]
- at br.com.conductor.processador.workers.utils.WorkerImplCustom.execute(WorkerImplCustom.java:81) ~[sgr-core-4.7.0.jar:4.7.0]
- at net.greghaines.jesque.worker.WorkerImpl.process(WorkerImpl.java:562) ~[jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.poll(WorkerImpl.java:428) ~[jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.run(WorkerImpl.java:212) ~[jesque-2.0.2.jar:na]
- at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_201]
- 2019-01-23 15:21:20.121 ERROR 16404 --- [-2.0.2: RUNNING] b.c.c.p.workers.utils.WorkerApplication :
- java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [ SET NOCOUNT ON IF Object_id(N'tempdb..#detalhamento_parcelamento') IS NOT NULL BEGIN DROP TABLE #detalhamento_parcelamento END CREATE TABLE #detalhamento_parcelamento ( idcontrato INT ,tipocontrato VARCHAR(255) ,valor MONEY ,valorentrada MONEY ,qtdparcelascontratadas INT ,parcelaatual INT ,valortotalcontrato MONEY ,dataadesao SMALLDATETIME ,id_eventocompra INT ); INSERT INTO #detalhamento_parcelamento SELECT pa.id_parcelamento AS idcontrato ,st.descricao AS tipocontrato ,pa.valorparcela AS valor ,pa.valorentrada AS valorentrada ,pa.quantidadeparcelas AS qtdparcelascontratadas ,0 AS parcelaatual ,pa.valortotalrefinanciamento AS valortotalcontrato ,pa.dataprocessamentoadesao AS dataadesao ,r.id_eventocompra FROM parcelamentos pa WITH (NOLOCK) INNER JOIN servicoselegiveis se WITH (NOLOCK) ON se.id_servicoelegivel = pa.id_servicoelegivel INNER JOIN servicostipos st WITH (NOLOCK) ON st.id_servicotipo = se.id_servicotipo INNER JOIN refinanciamento r WITH (NOLOCK) ON r.id_conta = se.id_conta AND pa.valortotalrefinanciamento = r.totalrefinanciado AND pa.valorparcela = r.valorparcela LEFT JOIN debitosdiversos dd WITH (NOLOCK) ON dd.id_conta = se.id_conta AND dd.id_eventocompra = r.id_eventocompra WHERE pa.statusadesao = 3 --AND dd.parcelapedida <= dd.quantidadeparcelas AND pa.dataprocessamentoadesao IS NOT NULL AND se.dataexecucao IS NOT NULL AND se.id_conta = :idConta AND r.datarefinanciamento <= :dataPagamento AND ( r.STATUS = 0 OR dd.id_operacao IN ( SELECT id_operacao FROM tiposoperacoes tpos WITH (NOLOCK) WHERE tpos.nomeoperacao LIKE '%refinanciamento com juros%' OR tpos.nomeoperacao LIKE '%parcelamento de fatura rotativo%' OR tpos.nomeoperacao LIKE '%financiamento automatico de minimo%' ) ) ORDER BY pa.id_parcelamento DESC UPDATE dp SET dp.parcelaatual = tc.parcela FROM #detalhamento_parcelamento dp INNER JOIN ( SELECT tc.id_eventoexterno ,Max(tc.parcela) AS parcela FROM transacoescorrentes tc WITH (NOLOCK) GROUP BY tc.id_eventoexterno ,tc.id_conta ,tc.datavencimentoreal ,tc.id_tipotransacao HAVING tc.id_conta = :idConta AND tc.id_tipotransacao IN ( SELECT id_tipotransacao FROM tipostransacoes WITH (NOLOCK) WHERE nome LIKE '%parcelarefinanciamentojuros%' OR nome LIKE '%parcela de fatura rotativo%' OR nome LIKE '%parcela de fatura do financiamento do valor minimo%' ) AND tc.datavencimentoreal IN ( SELECT hc.datavencimentoreal FROM historicoscorrentes hc WITH (NOLOCK) INNER JOIN controlevencimentos cv WITH (NOLOCK) ON cv.datavencimento = CONVERT(SMALLDATETIME, hc.datavencimentopadrao, 103) WHERE hc.id_conta = :idConta AND CONVERT(SMALLDATETIME, :dataReferencia, 103) BETWEEN cv.dataprevistafaturamento AND Dateadd(day, - 1, hc.datafechamentoproxfatura) ) ) tc ON dp.id_eventocompra = tc.id_eventoexterno SELECT idcontrato ,tipocontrato ,valor ,valorentrada ,qtdparcelascontratadas ,parcelaatual ,valortotalcontrato ,dataadesao FROM #detalhamento_parcelamento; ]; SQL state [24000]; error code [0]; The executeQuery method must return a result set.; nested exception is java.sql.SQLException: The executeQuery method must return a result set.
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.run(JobSecuritizacao.java:109) ~[classes/:na]
- at br.com.conductor.processador.workers.utils.WorkerImplCustom.execute(WorkerImplCustom.java:81) ~[sgr-core-4.7.0.jar:4.7.0]
- at net.greghaines.jesque.worker.WorkerImpl.process(WorkerImpl.java:562) [jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.poll(WorkerImpl.java:428) [jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.run(WorkerImpl.java:212) [jesque-2.0.2.jar:na]
- at java.lang.Thread.run(Unknown Source) [na:1.8.0_201]
- Caused by: org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [ SET NOCOUNT ON IF Object_id(N'tempdb..#detalhamento_parcelamento') IS NOT NULL BEGIN DROP TABLE #detalhamento_parcelamento END CREATE TABLE #detalhamento_parcelamento ( idcontrato INT ,tipocontrato VARCHAR(255) ,valor MONEY ,valorentrada MONEY ,qtdparcelascontratadas INT ,parcelaatual INT ,valortotalcontrato MONEY ,dataadesao SMALLDATETIME ,id_eventocompra INT ); INSERT INTO #detalhamento_parcelamento SELECT pa.id_parcelamento AS idcontrato ,st.descricao AS tipocontrato ,pa.valorparcela AS valor ,pa.valorentrada AS valorentrada ,pa.quantidadeparcelas AS qtdparcelascontratadas ,0 AS parcelaatual ,pa.valortotalrefinanciamento AS valortotalcontrato ,pa.dataprocessamentoadesao AS dataadesao ,r.id_eventocompra FROM parcelamentos pa WITH (NOLOCK) INNER JOIN servicoselegiveis se WITH (NOLOCK) ON se.id_servicoelegivel = pa.id_servicoelegivel INNER JOIN servicostipos st WITH (NOLOCK) ON st.id_servicotipo = se.id_servicotipo INNER JOIN refinanciamento r WITH (NOLOCK) ON r.id_conta = se.id_conta AND pa.valortotalrefinanciamento = r.totalrefinanciado AND pa.valorparcela = r.valorparcela LEFT JOIN debitosdiversos dd WITH (NOLOCK) ON dd.id_conta = se.id_conta AND dd.id_eventocompra = r.id_eventocompra WHERE pa.statusadesao = 3 --AND dd.parcelapedida <= dd.quantidadeparcelas AND pa.dataprocessamentoadesao IS NOT NULL AND se.dataexecucao IS NOT NULL AND se.id_conta = :idConta AND r.datarefinanciamento <= :dataPagamento AND ( r.STATUS = 0 OR dd.id_operacao IN ( SELECT id_operacao FROM tiposoperacoes tpos WITH (NOLOCK) WHERE tpos.nomeoperacao LIKE '%refinanciamento com juros%' OR tpos.nomeoperacao LIKE '%parcelamento de fatura rotativo%' OR tpos.nomeoperacao LIKE '%financiamento automatico de minimo%' ) ) ORDER BY pa.id_parcelamento DESC UPDATE dp SET dp.parcelaatual = tc.parcela FROM #detalhamento_parcelamento dp INNER JOIN ( SELECT tc.id_eventoexterno ,Max(tc.parcela) AS parcela FROM transacoescorrentes tc WITH (NOLOCK) GROUP BY tc.id_eventoexterno ,tc.id_conta ,tc.datavencimentoreal ,tc.id_tipotransacao HAVING tc.id_conta = :idConta AND tc.id_tipotransacao IN ( SELECT id_tipotransacao FROM tipostransacoes WITH (NOLOCK) WHERE nome LIKE '%parcelarefinanciamentojuros%' OR nome LIKE '%parcela de fatura rotativo%' OR nome LIKE '%parcela de fatura do financiamento do valor minimo%' ) AND tc.datavencimentoreal IN ( SELECT hc.datavencimentoreal FROM historicoscorrentes hc WITH (NOLOCK) INNER JOIN controlevencimentos cv WITH (NOLOCK) ON cv.datavencimento = CONVERT(SMALLDATETIME, hc.datavencimentopadrao, 103) WHERE hc.id_conta = :idConta AND CONVERT(SMALLDATETIME, :dataReferencia, 103) BETWEEN cv.dataprevistafaturamento AND Dateadd(day, - 1, hc.datafechamentoproxfatura) ) ) tc ON dp.id_eventocompra = tc.id_eventoexterno SELECT idcontrato ,tipocontrato ,valor ,valorentrada ,qtdparcelascontratadas ,parcelaatual ,valortotalcontrato ,dataadesao FROM #detalhamento_parcelamento; ]; SQL state [24000]; error code [0]; The executeQuery method must return a result set.; nested exception is java.sql.SQLException: The executeQuery method must return a result set.
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:84) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:645) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:707) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:757) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at br.com.conductor.processador.utils.repositorios.JdbcRepository.query(JdbcRepository.java:575) ~[sgr-core-4.7.0.jar:4.7.0]
- at br.com.conductor.sgr.plugin.ps.repositorios.RepositorioParcelamentoImpl.findParcelamentos(RepositorioParcelamentoImpl.java:35) ~[classes/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_201]
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201]
- at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_201]
- at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) ~[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) ~[spring-tx-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) ~[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at com.sun.proxy.$Proxy93.findParcelamentos(Unknown Source) ~[na:na]
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.lambda$run$0(JobSecuritizacao.java:80) ~[classes/:na]
- at java.util.ArrayList.forEach(Unknown Source) ~[na:1.8.0_201]
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.run(JobSecuritizacao.java:79) ~[classes/:na]
- ... 5 common frames omitted
- Caused by: java.sql.SQLException: The executeQuery method must return a result set.
- at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:516) ~[jtds-1.3.1.jar:1.3.1]
- at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:1029) ~[jtds-1.3.1.jar:1.3.1]
- at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52) ~[HikariCP-2.4.3.jar:na]
- at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java) ~[HikariCP-2.4.3.jar:na]
- at net.sf.log4jdbc.PreparedStatementSpy.executeQuery(PreparedStatementSpy.java:735) ~[log4jdbc-remix-0.2.7.jar:na]
- at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:688) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
- ... 27 common frames omitted
- java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [ SET NOCOUNT ON IF Object_id(N'tempdb..#detalhamento_parcelamento') IS NOT NULL BEGIN DROP TABLE #detalhamento_parcelamento END CREATE TABLE #detalhamento_parcelamento ( idcontrato INT ,tipocontrato VARCHAR(255) ,valor MONEY ,valorentrada MONEY ,qtdparcelascontratadas INT ,parcelaatual INT ,valortotalcontrato MONEY ,dataadesao SMALLDATETIME ,id_eventocompra INT ); INSERT INTO #detalhamento_parcelamento SELECT pa.id_parcelamento AS idcontrato ,st.descricao AS tipocontrato ,pa.valorparcela AS valor ,pa.valorentrada AS valorentrada ,pa.quantidadeparcelas AS qtdparcelascontratadas ,0 AS parcelaatual ,pa.valortotalrefinanciamento AS valortotalcontrato ,pa.dataprocessamentoadesao AS dataadesao ,r.id_eventocompra FROM parcelamentos pa WITH (NOLOCK) INNER JOIN servicoselegiveis se WITH (NOLOCK) ON se.id_servicoelegivel = pa.id_servicoelegivel INNER JOIN servicostipos st WITH (NOLOCK) ON st.id_servicotipo = se.id_servicotipo INNER JOIN refinanciamento r WITH (NOLOCK) ON r.id_conta = se.id_conta AND pa.valortotalrefinanciamento = r.totalrefinanciado AND pa.valorparcela = r.valorparcela LEFT JOIN debitosdiversos dd WITH (NOLOCK) ON dd.id_conta = se.id_conta AND dd.id_eventocompra = r.id_eventocompra WHERE pa.statusadesao = 3 --AND dd.parcelapedida <= dd.quantidadeparcelas AND pa.dataprocessamentoadesao IS NOT NULL AND se.dataexecucao IS NOT NULL AND se.id_conta = :idConta AND r.datarefinanciamento <= :dataPagamento AND ( r.STATUS = 0 OR dd.id_operacao IN ( SELECT id_operacao FROM tiposoperacoes tpos WITH (NOLOCK) WHERE tpos.nomeoperacao LIKE '%refinanciamento com juros%' OR tpos.nomeoperacao LIKE '%parcelamento de fatura rotativo%' OR tpos.nomeoperacao LIKE '%financiamento automatico de minimo%' ) ) ORDER BY pa.id_parcelamento DESC UPDATE dp SET dp.parcelaatual = tc.parcela FROM #detalhamento_parcelamento dp INNER JOIN ( SELECT tc.id_eventoexterno ,Max(tc.parcela) AS parcela FROM transacoescorrentes tc WITH (NOLOCK) GROUP BY tc.id_eventoexterno ,tc.id_conta ,tc.datavencimentoreal ,tc.id_tipotransacao HAVING tc.id_conta = :idConta AND tc.id_tipotransacao IN ( SELECT id_tipotransacao FROM tipostransacoes WITH (NOLOCK) WHERE nome LIKE '%parcelarefinanciamentojuros%' OR nome LIKE '%parcela de fatura rotativo%' OR nome LIKE '%parcela de fatura do financiamento do valor minimo%' ) AND tc.datavencimentoreal IN ( SELECT hc.datavencimentoreal FROM historicoscorrentes hc WITH (NOLOCK) INNER JOIN controlevencimentos cv WITH (NOLOCK) ON cv.datavencimento = CONVERT(SMALLDATETIME, hc.datavencimentopadrao, 103) WHERE hc.id_conta = :idConta AND CONVERT(SMALLDATETIME, :dataReferencia, 103) BETWEEN cv.dataprevistafaturamento AND Dateadd(day, - 1, hc.datafechamentoproxfatura) ) ) tc ON dp.id_eventocompra = tc.id_eventoexterno SELECT idcontrato ,tipocontrato ,valor ,valorentrada ,qtdparcelascontratadas ,parcelaatual ,valortotalcontrato ,dataadesao FROM #detalhamento_parcelamento; ]; SQL state [24000]; error code [0]; The executeQuery method must return a result set.; nested exception is java.sql.SQLException: The executeQuery method must return a result set.
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.run(JobSecuritizacao.java:109)
- at br.com.conductor.processador.workers.utils.WorkerImplCustom.execute(WorkerImplCustom.java:81)
- at net.greghaines.jesque.worker.WorkerImpl.process(WorkerImpl.java:562)
- at net.greghaines.jesque.worker.WorkerImpl.poll(WorkerImpl.java:428)
- at net.greghaines.jesque.worker.WorkerImpl.run(WorkerImpl.java:212)
- at java.lang.Thread.run(Unknown Source)
- Caused by: org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [ SET NOCOUNT ON IF Object_id(N'tempdb..#detalhamento_parcelamento') IS NOT NULL BEGIN DROP TABLE #detalhamento_parcelamento END CREATE TABLE #detalhamento_parcelamento ( idcontrato INT ,tipocontrato VARCHAR(255) ,valor MONEY ,valorentrada MONEY ,qtdparcelascontratadas INT ,parcelaatual INT ,valortotalcontrato MONEY ,dataadesao SMALLDATETIME ,id_eventocompra INT ); INSERT INTO #detalhamento_parcelamento SELECT pa.id_parcelamento AS idcontrato ,st.descricao AS tipocontrato ,pa.valorparcela AS valor ,pa.valorentrada AS valorentrada ,pa.quantidadeparcelas AS qtdparcelascontratadas ,0 AS parcelaatual ,pa.valortotalrefinanciamento AS valortotalcontrato ,pa.dataprocessamentoadesao AS dataadesao ,r.id_eventocompra FROM parcelamentos pa WITH (NOLOCK) INNER JOIN servicoselegiveis se WITH (NOLOCK) ON se.id_servicoelegivel = pa.id_servicoelegivel INNER JOIN servicostipos st WITH (NOLOCK) ON st.id_servicotipo = se.id_servicotipo INNER JOIN refinanciamento r WITH (NOLOCK) ON r.id_conta = se.id_conta AND pa.valortotalrefinanciamento = r.totalrefinanciado AND pa.valorparcela = r.valorparcela LEFT JOIN debitosdiversos dd WITH (NOLOCK) ON dd.id_conta = se.id_conta AND dd.id_eventocompra = r.id_eventocompra WHERE pa.statusadesao = 3 --AND dd.parcelapedida <= dd.quantidadeparcelas AND pa.dataprocessamentoadesao IS NOT NULL AND se.dataexecucao IS NOT NULL AND se.id_conta = :idConta AND r.datarefinanciamento <= :dataPagamento AND ( r.STATUS = 0 OR dd.id_operacao IN ( SELECT id_operacao FROM tiposoperacoes tpos WITH (NOLOCK) WHERE tpos.nomeoperacao LIKE '%refinanciamento com juros%' OR tpos.nomeoperacao LIKE '%parcelamento de fatura rotativo%' OR tpos.nomeoperacao LIKE '%financiamento automatico de minimo%' ) ) ORDER BY pa.id_parcelamento DESC UPDATE dp SET dp.parcelaatual = tc.parcela FROM #detalhamento_parcelamento dp INNER JOIN ( SELECT tc.id_eventoexterno ,Max(tc.parcela) AS parcela FROM transacoescorrentes tc WITH (NOLOCK) GROUP BY tc.id_eventoexterno ,tc.id_conta ,tc.datavencimentoreal ,tc.id_tipotransacao HAVING tc.id_conta = :idConta AND tc.id_tipotransacao IN ( SELECT id_tipotransacao FROM tipostransacoes WITH (NOLOCK) WHERE nome LIKE '%parcelarefinanciamentojuros%' OR nome LIKE '%parcela de fatura rotativo%' OR nome LIKE '%parcela de fatura do financiamento do valor minimo%' ) AND tc.datavencimentoreal IN ( SELECT hc.datavencimentoreal FROM historicoscorrentes hc WITH (NOLOCK) INNER JOIN controlevencimentos cv WITH (NOLOCK) ON cv.datavencimento = CONVERT(SMALLDATETIME, hc.datavencimentopadrao, 103) WHERE hc.id_conta = :idConta AND CONVERT(SMALLDATETIME, :dataReferencia, 103) BETWEEN cv.dataprevistafaturamento AND Dateadd(day, - 1, hc.datafechamentoproxfatura) ) ) tc ON dp.id_eventocompra = tc.id_eventoexterno SELECT idcontrato ,tipocontrato ,valor ,valorentrada ,qtdparcelascontratadas ,parcelaatual ,valortotalcontrato ,dataadesao FROM #detalhamento_parcelamento; ]; SQL state [24000]; error code [0]; The executeQuery method must return a result set.; nested exception is java.sql.SQLException: The executeQuery method must return a result set.
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:84)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:645)
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680)
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:707)
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:757)
- at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192)
- at br.com.conductor.processador.utils.repositorios.JdbcRepository.query(JdbcRepository.java:575)
- at br.com.conductor.sgr.plugin.ps.repositorios.RepositorioParcelamentoImpl.findParcelamentos(RepositorioParcelamentoImpl.java:35)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
- at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
- at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
- at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
- at com.sun.proxy.$Proxy93.findParcelamentos(Unknown Source)
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.lambda$run$0(JobSecuritizacao.java:80)
- at java.util.ArrayList.forEach(Unknown Source)
- at br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao.run(JobSecuritizacao.java:79)
- ... 5 more
- Caused by: java.sql.SQLException: The executeQuery method must return a result set.
- at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:516)
- at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:1029)
- at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
- at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
- at net.sf.log4jdbc.PreparedStatementSpy.executeQuery(PreparedStatementSpy.java:735)
- at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:688)
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629)
- ... 27 more
- 2019-01-23 15:21:20.136 ERROR 16404 --- [-2.0.2: RUNNING] n.g.j.worker.WorkerListenerDelegate : Failure executing listener br.com.conductor.processador.workers.utils.WorkerListenersFactory$3@6b438782 for event JOB_FAILURE from queue QUEUE_PROCESSAMENTO_SECURITIZACAO on worker diomar.neto:worker:NJP004388:16404-0:WORKER_NORMAL,QUEUE_PROCESSAR_PROTOCOLO_RETORNO_PAGAMENTO_BRADESCO,QUEUE_FATURAS_V6,QUEUE_FATURAS_EMAIL_V6,QUEUE_PONTOS_DIGITAL,QUEUE_IMPORTACAO_ARQUIVO_CNAB,QUEUE_IMPORTACAO_ARQUIVO_PONTOS,QUEUE_ESPELHO_FATURAS_V6,QUEUE_CADASTRO_FULL,QUEUE_PROCEDURE_PONTOS_DIGITAL,QUEUE_FULL_AUTORIZACOES,QUEUE_PARCELAMENTO_FATURA,QUEUE_ANALITICO_FRAUDE,QUEUE_ARQUIVO_REMESSA_BANCARIA,QUEUE_IMPORTACAO_ARQUIVO_HRC,QUEUE_ARQUIVO_CREDENCIAMENTO_REDECOMPRAS,QUEUE_ARQUIVO_CONCILIACAO,QUEUE_ARQUIVO_EO2,QUEUE_LANCAMENTOS_CONTABEIS,QUEUE_RAZAO_DIARIO_AUXILIAR,QUEUE_INTERFACE_CONTABIL,QUEUE_RAZAO_DIARIO_AUXILIAR_CBSS,QUEUE_IMPORTACAO_PANVAS,QUEUE_EXPORTACAO_PANVAS,QUEUE_CARGA_ARQUIVO_CADOC3040,QUEUE_GERA_ARQUIVO_XML_CADOC3040,QUEUE_IMPORTACAO_CAIXA,QUEUE_EXPORT_RESC,QUEUE_EXPORTACAO_ARQUIVO_5816,QUEUE_FATURAS_V3,QUEUE_ARQUIVO_GENERICO,QUEUE_ARQUIVO_EXEMPLO,QUEUE_CADASTRO_POSITIVO,QUEUE_IMPORTACAO_CORRESPONDENCIAS_DEVOLVIDAS,QUEUE_PROCEDURE_CORRESPONDENCIAS_DEVOLVIDAS,QUEUE_RODAR_SCRIPT,QUEUE_BUILDER_SECURITIZACAO,QUEUE_PROCESSAMENTO_SECURITIZACAO,QUEUE_BUILDER_SECURITIZACAO,QUEUE_PROCESSAMENTO_SECURITIZACAO
- java.lang.RuntimeException: java.lang.ClassCastException: br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao cannot be cast to br.com.conductor.processador.workers.jobs.JobAbstract
- at br.com.conductor.processador.workers.utils.WorkerListenersFactory$3.onEvent(WorkerListenersFactory.java:78) ~[sgr-core-4.7.0.jar:4.7.0]
- at net.greghaines.jesque.worker.WorkerListenerDelegate.fireEvent(WorkerListenerDelegate.java:150) ~[jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.failure(WorkerImpl.java:661) [jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.process(WorkerImpl.java:565) [jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.poll(WorkerImpl.java:428) [jesque-2.0.2.jar:na]
- at net.greghaines.jesque.worker.WorkerImpl.run(WorkerImpl.java:212) [jesque-2.0.2.jar:na]
- at java.lang.Thread.run(Unknown Source) [na:1.8.0_201]
- Caused by: java.lang.ClassCastException: br.com.conductor.sgr.plugin.ps.jobs.JobSecuritizacao cannot be cast to br.com.conductor.processador.workers.jobs.JobAbstract
- at br.com.conductor.processador.workers.utils.WorkerListenersFactory$3.onEvent(WorkerListenersFactory.java:75) ~[sgr-core-4.7.0.jar:4.7.0]
- ... 6 common frames omitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement