mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-13 00:48:49 +00:00
arreglado problema pago bizum
A
This commit is contained in:
249
logs/erp.log
249
logs/erp.log
@ -3072,3 +3072,252 @@ Caused by: com.mysql.cj.exceptions.ConnectionIsClosedException: No operations al
|
|||||||
2025-11-14 13:54:39 INFO [main] c.i.erp.cart.envioCarroTest - Started envioCarroTest in 7.21 seconds (process running for 7.931)
|
2025-11-14 13:54:39 INFO [main] c.i.erp.cart.envioCarroTest - Started envioCarroTest in 7.21 seconds (process running for 7.931)
|
||||||
2025-11-14 13:54:51 INFO [SpringApplicationShutdownHook] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
|
2025-11-14 13:54:51 INFO [SpringApplicationShutdownHook] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
|
||||||
2025-11-14 13:54:51 INFO [SpringApplicationShutdownHook] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
|
2025-11-14 13:54:51 INFO [SpringApplicationShutdownHook] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
|
||||||
|
2025-11-14 17:20:45 INFO [main] c.i.erp.cart.envioCarroTest - Starting envioCarroTest using Java 21.0.8 with PID 12292 (started by jjimenez in /home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros)
|
||||||
|
2025-11-14 17:20:45 INFO [main] c.i.erp.cart.envioCarroTest - The following 1 profile is active: "dev"
|
||||||
|
2025-11-14 17:20:49 INFO [main] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
|
||||||
|
2025-11-14 17:20:49 INFO [main] com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@3a2bb026
|
||||||
|
2025-11-14 17:20:49 INFO [main] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.ui - Database is up to date, no changesets to execute
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.util - UPDATE SUMMARY
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.util - Run: 0
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.util - Previously run: 51
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.util - Filtered out: 0
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.util - -------------------------------
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.util - Total change sets: 51
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.util - Update summary generated
|
||||||
|
2025-11-14 17:20:50 INFO [main] liquibase.command - Command execution complete
|
||||||
|
2025-11-14 17:20:50 INFO [main] o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2025-11-14 17:20:51 INFO [main] org.hibernate.Version - HHH000412: Hibernate ORM core version 6.6.33.Final
|
||||||
|
2025-11-14 17:20:51 INFO [main] o.h.c.i.RegionFactoryInitiator - HHH000026: Second-level cache disabled
|
||||||
|
2025-11-14 17:20:51 INFO [main] o.hibernate.orm.connections.pooling - HHH10001005: Database info:
|
||||||
|
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
|
||||||
|
Database driver: undefined/unknown
|
||||||
|
Database version: 8.0.43
|
||||||
|
Autocommit mode: undefined/unknown
|
||||||
|
Isolation level: undefined/unknown
|
||||||
|
Minimum pool size: undefined/unknown
|
||||||
|
Maximum pool size: undefined/unknown
|
||||||
|
2025-11-14 17:20:53 INFO [main] o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
|
||||||
|
2025-11-14 17:20:59 INFO [main] c.i.erp.cart.envioCarroTest - Started envioCarroTest in 14.364 seconds (process running for 15.96)
|
||||||
|
2025-11-14 17:21:20 INFO [SpringApplicationShutdownHook] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
|
||||||
|
2025-11-14 17:21:20 INFO [SpringApplicationShutdownHook] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
|
||||||
|
2025-11-14 17:22:06 INFO [main] c.i.erp.cart.envioCarroTest - Starting envioCarroTest using Java 21.0.8 with PID 13824 (started by jjimenez in /home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros)
|
||||||
|
2025-11-14 17:22:06 INFO [main] c.i.erp.cart.envioCarroTest - The following 1 profile is active: "dev"
|
||||||
|
2025-11-14 17:22:09 INFO [main] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
|
||||||
|
2025-11-14 17:22:09 INFO [main] com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@12214f2f
|
||||||
|
2025-11-14 17:22:09 INFO [main] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.ui - Database is up to date, no changesets to execute
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.util - UPDATE SUMMARY
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.util - Run: 0
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.util - Previously run: 51
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.util - Filtered out: 0
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.util - -------------------------------
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.util - Total change sets: 51
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.util - Update summary generated
|
||||||
|
2025-11-14 17:22:10 INFO [main] liquibase.command - Command execution complete
|
||||||
|
2025-11-14 17:22:10 INFO [main] o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2025-11-14 17:22:10 INFO [main] org.hibernate.Version - HHH000412: Hibernate ORM core version 6.6.33.Final
|
||||||
|
2025-11-14 17:22:10 INFO [main] o.h.c.i.RegionFactoryInitiator - HHH000026: Second-level cache disabled
|
||||||
|
2025-11-14 17:22:11 INFO [main] o.hibernate.orm.connections.pooling - HHH10001005: Database info:
|
||||||
|
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
|
||||||
|
Database driver: undefined/unknown
|
||||||
|
Database version: 8.0.43
|
||||||
|
Autocommit mode: undefined/unknown
|
||||||
|
Isolation level: undefined/unknown
|
||||||
|
Minimum pool size: undefined/unknown
|
||||||
|
Maximum pool size: undefined/unknown
|
||||||
|
2025-11-14 17:22:13 INFO [main] o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
|
||||||
|
2025-11-14 17:22:18 INFO [main] c.i.erp.cart.envioCarroTest - Started envioCarroTest in 12.338 seconds (process running for 13.681)
|
||||||
|
2025-11-14 17:22:22 INFO [SpringApplicationShutdownHook] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
|
||||||
|
2025-11-14 17:22:23 INFO [SpringApplicationShutdownHook] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
|
||||||
|
2025-11-14 17:25:01 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Starting ErpApplication using Java 21.0.8 with PID 17075 (/home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros/target/classes started by jjimenez in /home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros)
|
||||||
|
2025-11-14 17:25:01 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - The following 1 profile is active: "dev"
|
||||||
|
2025-11-14 17:25:04 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
|
||||||
|
2025-11-14 17:25:04 INFO [restartedMain] com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@793dc5e4
|
||||||
|
2025-11-14 17:25:04 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.ui - Database is up to date, no changesets to execute
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.util - UPDATE SUMMARY
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.util - Run: 0
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.util - Previously run: 51
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.util - Filtered out: 0
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.util - -------------------------------
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.util - Total change sets: 51
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.util - Update summary generated
|
||||||
|
2025-11-14 17:25:05 INFO [restartedMain] liquibase.command - Command execution complete
|
||||||
|
2025-11-14 17:25:06 INFO [restartedMain] o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2025-11-14 17:25:06 INFO [restartedMain] org.hibernate.Version - HHH000412: Hibernate ORM core version 6.6.33.Final
|
||||||
|
2025-11-14 17:25:06 INFO [restartedMain] o.h.c.i.RegionFactoryInitiator - HHH000026: Second-level cache disabled
|
||||||
|
2025-11-14 17:25:06 INFO [restartedMain] o.hibernate.orm.connections.pooling - HHH10001005: Database info:
|
||||||
|
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
|
||||||
|
Database driver: undefined/unknown
|
||||||
|
Database version: 8.0.43
|
||||||
|
Autocommit mode: undefined/unknown
|
||||||
|
Isolation level: undefined/unknown
|
||||||
|
Minimum pool size: undefined/unknown
|
||||||
|
Maximum pool size: undefined/unknown
|
||||||
|
2025-11-14 17:25:08 INFO [restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
|
||||||
|
2025-11-14 17:25:13 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Started ErpApplication in 13.09 seconds (process running for 14.159)
|
||||||
|
2025-11-14 17:28:50 WARN [http-nio-8080-exec-3] o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 1062, SQLState: 23000
|
||||||
|
2025-11-14 17:28:50 ERROR [http-nio-8080-exec-3] o.h.e.jdbc.spi.SqlExceptionHelper - Duplicate entry '000000' for key 'payment_transactions.uq_tx_gateway_txid'
|
||||||
|
2025-11-14 17:31:20 WARN [http-nio-8080-exec-2] o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 1062, SQLState: 23000
|
||||||
|
2025-11-14 17:31:20 ERROR [http-nio-8080-exec-2] o.h.e.jdbc.spi.SqlExceptionHelper - Duplicate entry '000000' for key 'payment_transactions.uq_tx_gateway_txid'
|
||||||
|
2025-11-14 17:51:01 INFO [Thread-5] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
|
||||||
|
2025-11-14 17:51:01 INFO [Thread-5] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
|
||||||
|
2025-11-14 17:51:01 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Starting ErpApplication using Java 21.0.8 with PID 17075 (/home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros/target/classes started by jjimenez in /home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros)
|
||||||
|
2025-11-14 17:51:01 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - The following 1 profile is active: "dev"
|
||||||
|
2025-11-14 17:51:02 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-2 - Starting...
|
||||||
|
2025-11-14 17:51:02 INFO [restartedMain] com.zaxxer.hikari.pool.HikariPool - HikariPool-2 - Added connection com.mysql.cj.jdbc.ConnectionImpl@2ae9ba0f
|
||||||
|
2025-11-14 17:51:02 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-2 - Start completed.
|
||||||
|
2025-11-14 17:51:02 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.ui - Database is up to date, no changesets to execute
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.util - UPDATE SUMMARY
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.util - Run: 0
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.util - Previously run: 51
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.util - Filtered out: 0
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.util - -------------------------------
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.util - Total change sets: 51
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.util - Update summary generated
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] liquibase.command - Command execution complete
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] o.h.c.i.RegionFactoryInitiator - HHH000026: Second-level cache disabled
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] o.hibernate.orm.connections.pooling - HHH10001005: Database info:
|
||||||
|
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-2)']
|
||||||
|
Database driver: undefined/unknown
|
||||||
|
Database version: 8.0.43
|
||||||
|
Autocommit mode: undefined/unknown
|
||||||
|
Isolation level: undefined/unknown
|
||||||
|
Minimum pool size: undefined/unknown
|
||||||
|
Maximum pool size: undefined/unknown
|
||||||
|
2025-11-14 17:51:03 INFO [restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
|
||||||
|
2025-11-14 17:51:05 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Started ErpApplication in 3.104 seconds (process running for 1565.548)
|
||||||
|
2025-11-14 17:51:52 INFO [Thread-7] com.zaxxer.hikari.HikariDataSource - HikariPool-2 - Shutdown initiated...
|
||||||
|
2025-11-14 17:51:52 INFO [Thread-7] com.zaxxer.hikari.HikariDataSource - HikariPool-2 - Shutdown completed.
|
||||||
|
2025-11-14 17:51:53 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Starting ErpApplication using Java 21.0.8 with PID 17075 (/home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros/target/classes started by jjimenez in /home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros)
|
||||||
|
2025-11-14 17:51:53 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - The following 1 profile is active: "dev"
|
||||||
|
2025-11-14 17:51:53 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-3 - Starting...
|
||||||
|
2025-11-14 17:51:53 INFO [restartedMain] com.zaxxer.hikari.pool.HikariPool - HikariPool-3 - Added connection com.mysql.cj.jdbc.ConnectionImpl@28d2b9f8
|
||||||
|
2025-11-14 17:51:53 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-3 - Start completed.
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.ui - Database is up to date, no changesets to execute
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.util - UPDATE SUMMARY
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.util - Run: 0
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.util - Previously run: 51
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.util - Filtered out: 0
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.util - -------------------------------
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.util - Total change sets: 51
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.util - Update summary generated
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] liquibase.command - Command execution complete
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] o.h.c.i.RegionFactoryInitiator - HHH000026: Second-level cache disabled
|
||||||
|
2025-11-14 17:51:54 INFO [restartedMain] o.hibernate.orm.connections.pooling - HHH10001005: Database info:
|
||||||
|
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-3)']
|
||||||
|
Database driver: undefined/unknown
|
||||||
|
Database version: 8.0.43
|
||||||
|
Autocommit mode: undefined/unknown
|
||||||
|
Isolation level: undefined/unknown
|
||||||
|
Minimum pool size: undefined/unknown
|
||||||
|
Maximum pool size: undefined/unknown
|
||||||
|
2025-11-14 17:51:55 INFO [restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
|
||||||
|
2025-11-14 17:51:56 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Started ErpApplication in 3.007 seconds (process running for 1616.681)
|
||||||
|
2025-11-14 17:52:04 INFO [Thread-11] com.zaxxer.hikari.HikariDataSource - HikariPool-3 - Shutdown initiated...
|
||||||
|
2025-11-14 17:52:04 INFO [Thread-11] com.zaxxer.hikari.HikariDataSource - HikariPool-3 - Shutdown completed.
|
||||||
|
2025-11-14 17:52:04 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Starting ErpApplication using Java 21.0.8 with PID 17075 (/home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros/target/classes started by jjimenez in /home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros)
|
||||||
|
2025-11-14 17:52:04 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - The following 1 profile is active: "dev"
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-4 - Starting...
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] com.zaxxer.hikari.pool.HikariPool - HikariPool-4 - Added connection com.mysql.cj.jdbc.ConnectionImpl@4c757dab
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-4 - Start completed.
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.ui - Database is up to date, no changesets to execute
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.util - UPDATE SUMMARY
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.util - Run: 0
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.util - Previously run: 51
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.util - Filtered out: 0
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.util - -------------------------------
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.util - Total change sets: 51
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.util - Update summary generated
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] liquibase.command - Command execution complete
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] o.h.c.i.RegionFactoryInitiator - HHH000026: Second-level cache disabled
|
||||||
|
2025-11-14 17:52:05 INFO [restartedMain] o.hibernate.orm.connections.pooling - HHH10001005: Database info:
|
||||||
|
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-4)']
|
||||||
|
Database driver: undefined/unknown
|
||||||
|
Database version: 8.0.43
|
||||||
|
Autocommit mode: undefined/unknown
|
||||||
|
Isolation level: undefined/unknown
|
||||||
|
Minimum pool size: undefined/unknown
|
||||||
|
Maximum pool size: undefined/unknown
|
||||||
|
2025-11-14 17:52:06 INFO [restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
|
||||||
|
2025-11-14 17:52:07 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Started ErpApplication in 2.307 seconds (process running for 1627.817)
|
||||||
|
2025-11-14 17:52:14 INFO [Thread-15] com.zaxxer.hikari.HikariDataSource - HikariPool-4 - Shutdown initiated...
|
||||||
|
2025-11-14 17:52:14 INFO [Thread-15] com.zaxxer.hikari.HikariDataSource - HikariPool-4 - Shutdown completed.
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Starting ErpApplication using Java 21.0.8 with PID 17075 (/home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros/target/classes started by jjimenez in /home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros)
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - The following 1 profile is active: "dev"
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-5 - Starting...
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] com.zaxxer.hikari.pool.HikariPool - HikariPool-5 - Added connection com.mysql.cj.jdbc.ConnectionImpl@7e35d128
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-5 - Start completed.
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.ui - Database is up to date, no changesets to execute
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.util - UPDATE SUMMARY
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.util - Run: 0
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.util - Previously run: 51
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.util - Filtered out: 0
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.util - -------------------------------
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.util - Total change sets: 51
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.util - Update summary generated
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] liquibase.command - Command execution complete
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] o.h.c.i.RegionFactoryInitiator - HHH000026: Second-level cache disabled
|
||||||
|
2025-11-14 17:52:15 INFO [restartedMain] o.hibernate.orm.connections.pooling - HHH10001005: Database info:
|
||||||
|
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-5)']
|
||||||
|
Database driver: undefined/unknown
|
||||||
|
Database version: 8.0.43
|
||||||
|
Autocommit mode: undefined/unknown
|
||||||
|
Isolation level: undefined/unknown
|
||||||
|
Minimum pool size: undefined/unknown
|
||||||
|
Maximum pool size: undefined/unknown
|
||||||
|
2025-11-14 17:52:16 INFO [restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
|
||||||
|
2025-11-14 17:52:17 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Started ErpApplication in 2.24 seconds (process running for 1637.776)
|
||||||
|
2025-11-14 17:53:00 WARN [http-nio-8080-exec-3] o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 1406, SQLState: 22001
|
||||||
|
2025-11-14 17:53:00 ERROR [http-nio-8080-exec-3] o.h.e.jdbc.spi.SqlExceptionHelper - Data truncation: Data too long for column 'authorization_code' at row 1
|
||||||
|
2025-11-14 17:59:49 INFO [Thread-19] com.zaxxer.hikari.HikariDataSource - HikariPool-5 - Shutdown initiated...
|
||||||
|
2025-11-14 17:59:49 INFO [Thread-19] com.zaxxer.hikari.HikariDataSource - HikariPool-5 - Shutdown completed.
|
||||||
|
2025-11-14 17:59:49 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Starting ErpApplication using Java 21.0.8 with PID 17075 (/home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros/target/classes started by jjimenez in /home/jjimenez/DEVELOPMENT/01_PROGRAMMING/erp-imprimelibros)
|
||||||
|
2025-11-14 17:59:49 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - The following 1 profile is active: "dev"
|
||||||
|
2025-11-14 17:59:49 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-6 - Starting...
|
||||||
|
2025-11-14 17:59:49 INFO [restartedMain] com.zaxxer.hikari.pool.HikariPool - HikariPool-6 - Added connection com.mysql.cj.jdbc.ConnectionImpl@4cbc0487
|
||||||
|
2025-11-14 17:59:49 INFO [restartedMain] com.zaxxer.hikari.HikariDataSource - HikariPool-6 - Start completed.
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.ui - Database is up to date, no changesets to execute
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.changelog - Reading from imprimelibros.DATABASECHANGELOG
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.util - UPDATE SUMMARY
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.util - Run: 0
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.util - Previously run: 51
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.util - Filtered out: 0
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.util - -------------------------------
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.util - Total change sets: 51
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.util - Update summary generated
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] liquibase.command - Command execution complete
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] o.h.c.i.RegionFactoryInitiator - HHH000026: Second-level cache disabled
|
||||||
|
2025-11-14 17:59:50 INFO [restartedMain] o.hibernate.orm.connections.pooling - HHH10001005: Database info:
|
||||||
|
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-6)']
|
||||||
|
Database driver: undefined/unknown
|
||||||
|
Database version: 8.0.43
|
||||||
|
Autocommit mode: undefined/unknown
|
||||||
|
Isolation level: undefined/unknown
|
||||||
|
Minimum pool size: undefined/unknown
|
||||||
|
Maximum pool size: undefined/unknown
|
||||||
|
2025-11-14 17:59:51 INFO [restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
|
||||||
|
2025-11-14 17:59:51 INFO [restartedMain] c.imprimelibros.erp.ErpApplication - Started ErpApplication in 2.637 seconds (process running for 2092.421)
|
||||||
|
2025-11-14 18:02:14 WARN [http-nio-8080-exec-8] o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 1062, SQLState: 23000
|
||||||
|
2025-11-14 18:02:14 ERROR [http-nio-8080-exec-8] o.h.e.jdbc.spi.SqlExceptionHelper - Duplicate entry '000000' for key 'payment_transactions.uq_tx_gateway_txid'
|
||||||
|
|||||||
@ -37,7 +37,7 @@ public class PaymentService {
|
|||||||
this.payRepo = payRepo;
|
this.payRepo = payRepo;
|
||||||
this.txRepo = txRepo;
|
this.txRepo = txRepo;
|
||||||
this.refundRepo = refundRepo;
|
this.refundRepo = refundRepo;
|
||||||
this.redsysService = redsysService;
|
this.redsysService = redsysService;
|
||||||
this.webhookEventRepo = webhookEventRepo;
|
this.webhookEventRepo = webhookEventRepo;
|
||||||
this.cartService = cartService;
|
this.cartService = cartService;
|
||||||
}
|
}
|
||||||
@ -83,7 +83,8 @@ public class PaymentService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public void handleRedsysNotification(String dsSignature, String dsMerchantParameters, Locale locale) throws Exception {
|
public void handleRedsysNotification(String dsSignature, String dsMerchantParameters, Locale locale)
|
||||||
|
throws Exception {
|
||||||
|
|
||||||
// 0) Intentamos parsear la notificación. Si falla, registramos el webhook crudo
|
// 0) Intentamos parsear la notificación. Si falla, registramos el webhook crudo
|
||||||
// y salimos.
|
// y salimos.
|
||||||
@ -169,13 +170,20 @@ public class PaymentService {
|
|||||||
? PaymentTransactionStatus.succeeded
|
? PaymentTransactionStatus.succeeded
|
||||||
: PaymentTransactionStatus.failed);
|
: PaymentTransactionStatus.failed);
|
||||||
|
|
||||||
Object authCode = notif.raw.get("Ds_AuthorisationCode");
|
|
||||||
String gatewayTxId = null;
|
String gatewayTxId = null;
|
||||||
if (authCode != null) {
|
// 1) Si es Bizum y tenemos Ds_Bizum_IdOper, úsalo como ID único
|
||||||
String trimmed = String.valueOf(authCode).trim();
|
if (notif.isBizum()
|
||||||
// Redsys devuelve " " (espacios) cuando NO hay código de autorización.
|
&& notif.bizumIdOper != null
|
||||||
// Eso lo consideramos "sin ID" → null, para no chocar con el índice único.
|
&& !notif.bizumIdOper.isBlank()) {
|
||||||
if (!trimmed.isEmpty()) {
|
|
||||||
|
gatewayTxId = notif.bizumIdOper.trim();
|
||||||
|
|
||||||
|
// 2) Si no es Bizum, intenta usar Ds_AuthorisationCode
|
||||||
|
} else if (notif.authorisationCode != null) {
|
||||||
|
String trimmed = notif.authorisationCode.trim();
|
||||||
|
|
||||||
|
// Redsys suele mandar "000000" para Bizum; por si acaso también lo filtramos
|
||||||
|
if (!trimmed.isEmpty() && !"000000".equals(trimmed)) {
|
||||||
gatewayTxId = trimmed;
|
gatewayTxId = trimmed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -187,7 +195,14 @@ public class PaymentService {
|
|||||||
txRepo.save(tx);
|
txRepo.save(tx);
|
||||||
|
|
||||||
if (authorized) {
|
if (authorized) {
|
||||||
p.setAuthorizationCode(tx.getGatewayTransactionId());
|
if (notif.isBizum()) {
|
||||||
|
p.setAuthorizationCode(null); // o "000000" si te interesa mostrarlo
|
||||||
|
} else if (notif.authorisationCode != null
|
||||||
|
&& !"000000".equals(notif.authorisationCode.trim())
|
||||||
|
&& !notif.authorisationCode.isBlank()) {
|
||||||
|
p.setAuthorizationCode(notif.authorisationCode.trim());
|
||||||
|
}
|
||||||
|
|
||||||
p.setStatus(PaymentStatus.captured);
|
p.setStatus(PaymentStatus.captured);
|
||||||
p.setAmountCapturedCents(p.getAmountCapturedCents() + notif.amountCents);
|
p.setAmountCapturedCents(p.getAmountCapturedCents() + notif.amountCents);
|
||||||
p.setAuthorizedAt(LocalDateTime.now());
|
p.setAuthorizedAt(LocalDateTime.now());
|
||||||
@ -459,17 +474,16 @@ public class PaymentService {
|
|||||||
*/
|
*/
|
||||||
@Transactional
|
@Transactional
|
||||||
private Boolean processOrder(Long cartId, Locale locale) {
|
private Boolean processOrder(Long cartId, Locale locale) {
|
||||||
|
|
||||||
Cart cart = this.cartService.findById(cartId);
|
Cart cart = this.cartService.findById(cartId);
|
||||||
if (cart != null) {
|
if (cart != null) {
|
||||||
// Bloqueamos el carrito
|
// Bloqueamos el carrito
|
||||||
this.cartService.lockCartById(cart.getId());
|
this.cartService.lockCartById(cart.getId());
|
||||||
// Creamos el pedido
|
// Creamos el pedido
|
||||||
Long orderId = this.cartService.crearPedido(cart.getId(), locale);
|
Long orderId = this.cartService.crearPedido(cart.getId(), locale);
|
||||||
if(orderId == null){
|
if (orderId == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
// envio de correo de confirmacion de pedido podria ir aqui
|
// envio de correo de confirmacion de pedido podria ir aqui
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -195,6 +195,9 @@ public class RedsysService {
|
|||||||
public final long amountCents;
|
public final long amountCents;
|
||||||
public final String currency;
|
public final String currency;
|
||||||
public final Long cartId;
|
public final Long cartId;
|
||||||
|
public final String processedPayMethod; // Ds_ProcessedPayMethod
|
||||||
|
public final String bizumIdOper; // Ds_Bizum_IdOper
|
||||||
|
public final String authorisationCode; // Ds_AuthorisationCode
|
||||||
|
|
||||||
public RedsysNotification(Map<String, Object> raw) {
|
public RedsysNotification(Map<String, Object> raw) {
|
||||||
this.raw = raw;
|
this.raw = raw;
|
||||||
@ -203,6 +206,9 @@ public class RedsysService {
|
|||||||
this.currency = str(raw.get("Ds_Currency"));
|
this.currency = str(raw.get("Ds_Currency"));
|
||||||
this.amountCents = parseLongSafe(raw.get("Ds_Amount"));
|
this.amountCents = parseLongSafe(raw.get("Ds_Amount"));
|
||||||
this.cartId = extractCartId(raw.get("Ds_MerchantData"));
|
this.cartId = extractCartId(raw.get("Ds_MerchantData"));
|
||||||
|
this.processedPayMethod = str(raw.get("Ds_ProcessedPayMethod"));
|
||||||
|
this.bizumIdOper = str(raw.get("Ds_Bizum_IdOper"));
|
||||||
|
this.authorisationCode = str(raw.get("Ds_AuthorisationCode"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Long extractCartId(Object merchantDataObj) {
|
private static Long extractCartId(Object merchantDataObj) {
|
||||||
@ -231,6 +237,11 @@ public class RedsysService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isBizum() {
|
||||||
|
// Redsys suele usar 68 para Bizum; ajustable si tu banco usa otro código.
|
||||||
|
return "68".equals(processedPayMethod);
|
||||||
|
}
|
||||||
|
|
||||||
private static String str(Object o) {
|
private static String str(Object o) {
|
||||||
return o == null ? null : String.valueOf(o);
|
return o == null ? null : String.valueOf(o);
|
||||||
}
|
}
|
||||||
@ -245,7 +256,7 @@ public class RedsysService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Solicita a Redsys una devolución (TransactionType = 3)
|
* Solicita a Redsys una devolución (TransactionType = 3)
|
||||||
*
|
*
|
||||||
* @param order El mismo Ds_Merchant_Order que se usó en el cobro.
|
* @param order El mismo Ds_Merchant_Order que se usó en el cobro.
|
||||||
* @param amountCents Importe en céntimos a devolver.
|
* @param amountCents Importe en céntimos a devolver.
|
||||||
@ -308,7 +319,7 @@ public class RedsysService {
|
|||||||
|
|
||||||
// Decodificar MerchantParameters de la respuesta
|
// Decodificar MerchantParameters de la respuesta
|
||||||
Map<String, Object> decoded = decodeMerchantParametersToMap(dsMerchantParametersResp);
|
Map<String, Object> decoded = decodeMerchantParametersToMap(dsMerchantParametersResp);
|
||||||
|
|
||||||
String dsResponse = String.valueOf(decoded.get("Ds_Response"));
|
String dsResponse = String.valueOf(decoded.get("Ds_Response"));
|
||||||
if (!"0900".equals(dsResponse)) {
|
if (!"0900".equals(dsResponse)) {
|
||||||
throw new IllegalStateException("Devolución rechazada, Ds_Response=" + dsResponse);
|
throw new IllegalStateException("Devolución rechazada, Ds_Response=" + dsResponse);
|
||||||
@ -317,5 +328,4 @@ public class RedsysService {
|
|||||||
return String.valueOf(decoded.getOrDefault("Ds_AuthorisationCode", order));
|
return String.valueOf(decoded.getOrDefault("Ds_AuthorisationCode", order));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user