- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.AllocationIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.AllocationIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.AllocationIntegrationTests]: AllocationIntegrationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
- Found @SpringBootConfiguration org.libertya.api.LYRestAPI for test class org.libertya.api.AllocationIntegrationTests
- Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
- Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@7c209437, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2262b621, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@7e928e2f, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@f667fe, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@788fcafb, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4febb875, org.springframework.test.context.event.EventPublishingTestExecutionListener@25e2a451, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@1698ee84, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@10c626be, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@2fc0cc3, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@328cf0e1, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@63b1d4fa, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@42e3ede4]
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.7.6)
- Starting AllocationIntegrationTests using Java 1.8.0_121 on sd-2288486-l.dattaweb.com with PID 1371 (started by root in /var/jenkins_home/workspace/Libertya-Core-Multibranch_dev/lyrestapi)
- No active profile set, falling back to 1 default profile: "default"
- Tomcat initialized with port(s): 0 (http)
2026-07-03 16:59:22.284 INFO - Starting service [Tomcat]
2026-07-03 16:59:22.294 INFO - Starting Servlet engine: [Apache Tomcat/9.0.69]
2026-07-03 16:59:22.489 INFO - Initializing Spring embedded WebApplicationContext
- Root WebApplicationContext: initialization completed in 2409 ms
- Cannot find template location: classpath:/templates/ (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf.check-template-location=false)
- Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@59313495, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@4a04ca74, org.springframework.security.web.context.SecurityContextPersistenceFilter@71b0289b, org.springframework.security.web.header.HeaderWriterFilter@7ec13984, org.springframework.security.web.authentication.logout.LogoutFilter@13908f9c, org.libertya.api.security.JWTAuthorizationFilter@166c2c17, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@3b5da0b0, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@2bfa17b0, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@455cbf18, org.springframework.security.web.session.SessionManagementFilter@2dd3d39d, org.springframework.security.web.access.ExceptionTranslationFilter@69f9b561, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@3b362f1]
- Exposing 3 endpoint(s) beneath base path '/monitor'
- Tomcat started on port(s): 46480 (http) with context path ''
- Started AllocationIntegrationTests in 6.514 seconds (JVM running for 8.707)
- Initializing Servlet 'dispatcherServlet'
- Completed initialization in 1 ms
2026-07-03 16:59:26.746 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, password=AdminLibertya, clientid=1010016, orgid=1010053, content-length=0, host=localhost:46480, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},
2026-07-03 16:59:27.047 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk2NiwiZXhwIjoyNjQ3MDExNTY2fQ.XNWw3nWq0i9mUz83oNuqZePxVXk8pSBYpZ_upd
2026-07-03 16:59:27.742 INFO - AllocationController.addAllocation Arg1: class AllocationNew {, adClientId: 1010016, adOrgId: 1010053, cDoctypeId: 1010568, cBpartnerId: 1012142, paymentrule: null, earlypayment: false, invoices: [class AllocationNewInvoices {, cInvoiceId: 99999999, amount: 1, }], payments: [class AllocationNewPayments {, cPospaymentmediumId: 99999999, amount: 1, cInvoiceId: null, cBankaccountId: null, cBankId: null, aBank: null, transferno: null, transferdate: null, mEntidadfinancieraplanId: null, creditcardnumber: null, couponnumber: null, checkno: null, datetrx: null, duedate: null, cCashId: null, cCashlineId: null, cPaymentId: 99999999, cRetencionschemaId: null, retencDocumentno: null, retencDate: null, }], },
AllocationGenerator => addDocument. IMPORTANTE agrega con el signo que llegue, NO ABS() amount= 1
AllocationGenerator => addDocument. IMPORTANTE agrega con el signo que llegue, NO ABS() amount= 1
AllocationGenerator => getDocumentsAmount. CalcularMontoSegunTasaCambioFC= false
AllocationGenerator => 1) getDocumentsAmount. document=org.openXpertya.model.AllocationGenerator$Invoice@1aff8fd9 monto:1
AllocationGenerator => getDocumentsAmount. CalcularMontoSegunTasaCambioFC= false
AllocationGenerator => 1) getDocumentsAmount. document=org.openXpertya.model.AllocationGenerator$Payment@7f2bfbde monto:1
AllocationGenerator. Valores convertidos= Debitos: 1 Creditos: 1 Diff Cambio: 0
AllocationGenerator => getDocumentsAmount. CalcularMontoSegunTasaCambioFC= false
AllocationGenerator => 1) getDocumentsAmount. document=org.openXpertya.model.AllocationGenerator$Invoice@1aff8fd9 monto:1
AllocationGenerator => getDocumentsAmount. CalcularMontoSegunTasaCambioFC= false
AllocationGenerator => 1) getDocumentsAmount. document=org.openXpertya.model.AllocationGenerator$Payment@7f2bfbde monto:1
AllocationGenerator => getDocumentsAmount. CalcularMontoSegunTasaCambioFC= false
AllocationGenerator => 1) getDocumentsAmount. document=org.openXpertya.model.AllocationGenerator$Invoice@1aff8fd9 monto:1
AllocationGenerator => getDocumentsAmount. CalcularMontoSegunTasaCambioFC= false
AllocationGenerator => 1) getDocumentsAmount. document=org.openXpertya.model.AllocationGenerator$Payment@7f2bfbde monto:1
AllocationGenerator => getDocumentsAmount. CalcularMontoSegunTasaCambioFC= false
AllocationGenerator => 1) getDocumentsAmount. document=org.openXpertya.model.AllocationGenerator$Invoice@1aff8fd9 monto:1
AllocationGenerator => getDocumentsAmount. CalcularMontoSegunTasaCambioFC= false
AllocationGenerator => 1) getDocumentsAmount. document=org.openXpertya.model.AllocationGenerator$Payment@7f2bfbde monto:1
AllocationGenerator => balance=0 debitos=1 creditos=1 allowExchangeDif=0
AllocationGenerator => AllocationGenerator => generateImputationLines() - Incluir Dif Cambio=false isReceipt=true
AllocationGenerator => debito: 100073 monto:1 pendiente:1
AllocationGenerator => generateImputationLines-documentNo= 100073 debitAmount= 1 DiffExchange= 0
AllocationGenerator => generateImputationLines 2 - creditAmountSum = 1
AllocationGenerator => generateImputationLines => 1/0/0/0
AllocationGenerator => generateImputationLines => # Debito (Incluye Dif Cambio): 1
AllocationGenerator => generateImputationLines => # Credito: 1
AllocationGenerator => getDocumentsAmount. CalcularMontoSegunTasaCambioFC= false
AllocationGenerator => 1) getDocumentsAmount. document=org.openXpertya.model.AllocationGenerator$Invoice@1aff8fd9 monto:1
Debe postear inmediatamente=false Estado documento=CO
2026-07-03 16:59:29.321 INFO - AllocationController.addAllocation: <200 OK OK,1012273,[]>
1012273
2026-07-03 16:59:29.349 INFO - AllocationController.retrieveAllocation Arg1: 1012273,
2026-07-03 16:59:29.483 INFO - AllocationController.retrieveAllocation: <200 OK OK,class AllocationDocument {, header: class AllocationHdr {, actiondetail: null, adClientId: 1010016, adOrgId: 1010053, allocationaction: null, allocationtype: RC, approvalamt: 0.00, cAllocationhdrId: 1012273, cBanklistId:
2026-07-03 16:59:29.556 INFO - AllocationController.updateAllocation Arg1: -1, Arg2: class AllocationHdr {, actiondetail: null, adClientId: null, adOrgId: null, allocationaction: null, allocationtype: null, approvalamt: null, cAllocationhdrId: null, cBanklistId: null, cBpartnerId: null, cCurrencyId: null, cDoctypeId: null, cPosjournalId: null, created: null, createdby: null, dateacct: null, datetrx: null, description: null, docaction: null, docstatus: null, documentno: -1, grandtotal: null, isactive: null, isapproved: null, ismanual: null, posted: null, processed: null, processing: null, retencionAmt: null, updated: null, updatedby: null, additionalvalues: null, referencedvalues: null, },
2026-07-03 16:59:29.563 INFO - AllocationController.updateAllocation: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:29.575 INFO - AllocationController.updateAllocation Arg1: 1012273, Arg2: class AllocationHdr {, actiondetail: null, adClientId: null, adOrgId: null, allocationaction: null, allocationtype: null, approvalamt: null, cAllocationhdrId: null, cBanklistId: null, cBpartnerId: null, cCurrencyId: null, cDoctypeId: null, cPosjournalId: null, created: null, createdby: null, dateacct: null, datetrx: null, description: null, docaction: null, docstatus: null, documentno: null, grandtotal: null, isactive: null, isapproved: null, ismanual: null, posted: null, processed: null, processing: null, retencionAmt: null, updated: null, updatedby: null, additionalvalues: null, referencedvalues: null, },
2026-07-03 16:59:29.604 INFO - AllocationController.updateAllocation: <200 OK OK,[]>
2026-07-03 16:59:29.617 INFO - AllocationController.deleteAllocation Arg1: 1012273,
2026-07-03 16:59:29.624 INFO - AllocationController.deleteAllocation: <409 CONFLICT Conflict,No se pudo borrar el registro , No es posible borrar un registro que se ya encuentra procesado,[]>
2026-07-03 16:59:29.643 INFO - AllocationController.processAllocation Arg1: 1012273, Arg2: VO,
MInvoice.BeforeSave...
MInvoice.BeforeSave. C_DocTypeTarget_ID: 1010507
MInvoice.Se trata de una FC/NC verifica existencia de comprobantes en borrador!
MInvoice.Valido numeracion de comprobantes: TipoID=1010507 PtoVenta=0 Numero=0
MInvoice.sql Validacion comprobante de ventas: SELECT c_invoice_id FROM c_invoice WHERE (documentno = ?) AND (c_doctypetarget_id = ?) AND (c_invoice_id <> ?) AND docStatus in ('CO', 'CL', 'VO', 'RE', 'DR') AND isactive='Y' AND IsSOTrx='Y'
MInvoice.Valido la existencia del comprobante de ventas #:100073 - Tipo:1010507 => null
MInvoice.doJumpNumberControls. DocumentNo=100073 Numero comprobante:0 Anterior:-1
2026-07-03 16:59:29.805 INFO - AllocationController.processAllocation: <200 OK OK,[]>
2026-07-03 16:59:29.816 INFO - AllocationController.processAllocation Arg1: 1012273, Arg2: VO,
2026-07-03 16:59:29.828 INFO - AllocationController.processAllocation: <409 CONFLICT Conflict,Imposible procesar. La accion VO a aplicar ya coincide con el estado actual VO,[]>
2026-07-03 16:59:29.838 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, password=AdminLibertya, clientid=1010016, orgid=1010053, content-length=0, host=localhost:46480, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},
2026-07-03 16:59:29.842 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk2OSwiZXhwIjoyNjQ3MDExNTY5fQ.XoIxtKMfQh0RS_e6uBENRZzkJgGsvWTk3fEmv6
2026-07-03 16:59:29.858 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, content-length=0, host=localhost:46480, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},
2026-07-03 16:59:29.859 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:29.870 INFO - AllocationController.deleteAllocation Arg1: 1001810,
2026-07-03 16:59:29.876 INFO - AllocationController.deleteAllocation: <401 UNAUTHORIZED Unauthorized,Token de acceso limitado a compañía 1010016,[]>
2026-07-03 16:59:29.887 INFO - AllocationController.deleteAllocation Arg1: -1,
2026-07-03 16:59:29.892 INFO - AllocationController.deleteAllocation: <404 NOT_FOUND Not Found,[]>