Skip to content

Instantly share code, notes, and snippets.

View abacha's full-sized avatar

Adriano Bacha abacha

  • São Paulo, SP
  • 12:22 (UTC -03:00)
View GitHub Profile
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' #remember to close this block with 'EOS' below
main: 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: '_your_ldap_server'
port: 389
uid: 'sAMAccountName'
method: 'plain' "tls" or "ssl" or "plain"
bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
password: '_the_password_of_the_bind_user'
active_directory: true
{"success":true,"result":[{"vl_pu_gerencial":0,"taxa_pre_gerencial":0,"taxa_pre":14.58111000,"pc_indice":100,"issuer":"BANCO INDUSVAL S.A","vl_bruto_gerencial":0,"vl_pu":1.1058570000000000,"vl_aplic_lic":100000,"nm_client":"EDIVALDO FERREIRA CAMPOS","qt_paper":100000,"dt_aplic":20150714,"id_operacao_crk":1050808,"dt_reference":20160322,"vl_bruto":110585.70000000,"nm_inx":"PRÉ","title_class":"CDB PRE - P","dt_vencto":20170704,"cpf_cnpj":"8035300482","pc_indice_gerencial":0},{"vl_pu_gerencial":0,"taxa_pre_gerencial":0,"taxa_pre":14.58111000,"pc_indice":100,"issuer":"BANCO INDUSVAL S.A","vl_bruto_gerencial":0,"vl_pu":1.1054390000000000,"vl_aplic_lic":100000,"nm_client":"EDIVALDO FERREIRA CAMPOS","qt_paper":100000,"dt_aplic":20150714,"id_operacao_crk":1050808,"dt_reference":20160321,"vl_bruto":110543.90000000,"nm_inx":"PRÉ","title_class":"CDB PRE - P","dt_vencto":20170704,"cpf_cnpj":"8035300482","pc_indice_gerencial":0},{"vl_pu_gerencial":0,"taxa_pre_gerencial":0,"taxa_pre":14.58111000,"pc_indice":100,"issuer
346161
366192
365230
364775
365998
366089
338481
324962
324841
357250
SINACOR - CC - ok 24/02
ARQUIVO - FIDC - ok 24/02
grouped = {
CPF_Cliente1 => {
8468 => {
"02/2015" => [100,50],
"06/2015" => [1450,21]
12:00:00,563 SEVERE [br.bip.com.sinacor.dao.EaoTsccligerBean] (http-spodcapp0022/172.16.5.28:8080-14) null: javax.persistence.PersistenceException:
Exception Description: Error binding to externally managed transaction
Internal Exception: javax.transaction.RollbackException: ARJUNA016083: Can't register synchronization because the transaction is in aborted state
at org.eclipse.persistence.internal.jpa.transaction.JTATransactionWrapper.registerIfRequired(JTATransactionWrapper.java:145) [eclipselink-2.5.2.jar:2.5.2.v20140319-9ad6abd]
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.setJTATransactionWrapper(EntityManagerImpl.java:2153) [eclipselink-2.5.2.jar:2.5.2.v20140319-9ad6abd]
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.detectTransactionWrapper(EntityManagerImpl.java:878) [eclipselink-2.5.2.jar:2.5.2.v20140319-9ad6abd]
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.initialize(EntityManagerImpl.java:401) [eclipselink-2.5.2.jar:2.5.2.v20140319
11:51:47,488 SEVERE [br.bip.com.informerendimento.util.mq.SendObjectImpl] (http-/172.16.13.28:8080-6) Erro getSessionJMS -->: javax.naming.NameNotFoundException: RemoteConnectionFactory -- service jboss.naming.context.java.RemoteConnectionFactory
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:103)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:120)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:417) [rt.jar:1.8.0_65]
at br.bip.com.informerendimento.util.mq.QueueObject.getSessionJMS(QueueObject.java:47) [InformeRendimento_CORE-2.1.jar:2.1]
at br.bip.com.informerendimento.util.mq.SendObjectImpl.sendJms(SendObjectImpl.java:14) [InformeRendimento_CORE-2.1.jar:2.1]
at br.bip.com.
SELECT A.DATMOV, "
+ " A.CODPROD,"
+ " B.NOMEPROD, "
+ " A.CODCOT, "
+ " C.CGCCPF,"
+ " C.CLASCONT, "
+ " A.QTDE, "
+ " A.IRRF, "
+ " A.RENDTOTRIB, "
+ " B.CNPJ, "
SELECT B.CNPJ ,
B.CODPROD,
B.NOMEPROD,
A.CODCOT,
C.CGCCPF,
C.CLASCONT,
A.IRRF,
A.VALOR,
A.VALORLIQU,
A.DATMOV,
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.bip.informerendimento.vo;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
interface Impressora {
void imprimir();
void imprimirPB();
}
class ImpressoraPDF implements Impressora { }
class ImpressoraHTML implements Impressora { }
class Sistema {
void imprimir(Impressora impressora) {