[INFO] Scanning for projects...
|
[INFO]
|
[INFO] -----------------< com.talentcard:talent-card-server >------------------
|
[INFO] Building talent-card-server 0.0.1-SNAPSHOT
|
[INFO] from pom.xml
|
[INFO] --------------------------------[ jar ]---------------------------------
|
[INFO]
|
[INFO] >>> spring-boot:4.1.0:run (default-cli) > test-compile @ talent-card-server >>>
|
[INFO]
|
[INFO] --- resources:3.5.0:resources (default-resources) @ talent-card-server ---
|
[INFO] Copying 1 resource from src\main\resources to target\classes
|
[INFO] Copying 43 resources from src\main\resources to target\classes
|
[INFO]
|
[INFO] --- compiler:3.15.0:compile (default-compile) @ talent-card-server ---
|
[INFO] Nothing to compile - all classes are up to date.
|
[INFO]
|
[INFO] --- resources:3.5.0:testResources (default-testResources) @ talent-card-server ---
|
[INFO] Copying 1 resource from src\test\resources to target\test-classes
|
[INFO]
|
[INFO] --- compiler:3.15.0:testCompile (default-testCompile) @ talent-card-server ---
|
[INFO] Nothing to compile - all classes are up to date.
|
[INFO]
|
[INFO] <<< spring-boot:4.1.0:run (default-cli) < test-compile @ talent-card-server <<<
|
[INFO]
|
[INFO]
|
[INFO] --- spring-boot:4.1.0:run (default-cli) @ talent-card-server ---
|
[INFO] Attaching agents: []
|
|
. ____ _ __ _ _
|
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
|
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
|
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
|
' |____| .__|_| |_|_| |_\__, | / / / /
|
=========|_|==============|___/=/_/_/_/
|
|
:: Spring Boot :: (v4.1.0)
|
|
2026-07-28T18:21:58.973+08:00 INFO 18324 --- [talent-card-server] [ main] c.t.server.TalentCardServerApplication : Starting TalentCardServerApplication using Java 17.0.19 with PID 18324 (D:\Code\talent-card\talent-card-server\target\classes started by Sasuke in D:\Code\talent-card\talent-card-server)
|
2026-07-28T18:21:58.975+08:00 DEBUG 18324 --- [talent-card-server] [ main] c.t.server.TalentCardServerApplication : Running with Spring Boot v4.1.0, Spring v7.0.8
|
2026-07-28T18:21:58.975+08:00 INFO 18324 --- [talent-card-server] [ main] c.t.server.TalentCardServerApplication : No active profile set, falling back to 1 default profile: "default"
|
2026-07-28T18:21:59.453+08:00 INFO 18324 --- [talent-card-server] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
|
2026-07-28T18:21:59.459+08:00 INFO 18324 --- [talent-card-server] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
|
2026-07-28T18:21:59.542+08:00 INFO 18324 --- [talent-card-server] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 77 ms. Found 1 JPA repository interface.
|
2026-07-28T18:21:59.940+08:00 INFO 18324 --- [talent-card-server] [ main] o.s.boot.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
|
2026-07-28T18:21:59.949+08:00 INFO 18324 --- [talent-card-server] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
|
2026-07-28T18:21:59.950+08:00 INFO 18324 --- [talent-card-server] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/11.0.22]
|
2026-07-28T18:21:59.981+08:00 INFO 18324 --- [talent-card-server] [ main] b.w.c.s.WebApplicationContextInitializer : Root WebApplicationContext: initialization completed in 977 ms
|
2026-07-28T18:22:00.217+08:00 INFO 18324 --- [talent-card-server] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
|
2026-07-28T18:22:00.326+08:00 INFO 18324 --- [talent-card-server] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@5f2b9da8
|
2026-07-28T18:22:00.327+08:00 INFO 18324 --- [talent-card-server] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
|
2026-07-28T18:22:00.355+08:00 INFO 18324 --- [talent-card-server] [ main] org.flywaydb.core.FlywayExecutor : Database: jdbc:mysql://localhost:3306/talent_card?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&useSSL=false (MySQL 5.7)
|
2026-07-28T18:22:00.390+08:00 INFO 18324 --- [talent-card-server] [ main] o.f.c.internal.database.base.Database : MySQL 5.7 is outside of Redgate community support. See https://rd.gt/468B6ni for details
|
2026-07-28T18:22:00.443+08:00 INFO 18324 --- [talent-card-server] [ main] o.f.core.internal.command.DbValidate : Successfully validated 42 migrations (execution time 00:00.041s)
|
2026-07-28T18:22:00.452+08:00 INFO 18324 --- [talent-card-server] [ main] o.f.core.internal.command.DbMigrate : Current version of schema `talent_card`: 40
|
2026-07-28T18:22:00.465+08:00 INFO 18324 --- [talent-card-server] [ main] o.f.core.internal.command.DbMigrate : Migrating schema `talent_card` to version "41 - backfill legacy movie ticket claim"
|
2026-07-28T18:22:00.505+08:00 ERROR 18324 --- [talent-card-server] [ main] o.f.core.internal.command.DbMigrate : Migration of schema `talent_card` to version "41 - backfill legacy movie ticket claim" failed! Please restore backups and roll back database and code!
|
2026-07-28T18:22:00.516+08:00 WARN 18324 --- [talent-card-server] [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/hibernate/autoconfigure/HibernateJpaConfiguration.class]: Failed to initialize dependency 'flywayInitializer' of LoadTimeWeaverAware bean 'entityManagerFactory': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/flyway/autoconfigure/FlywayAutoConfiguration$FlywayConfiguration.class]: Failed to execute script V41__backfill_legacy_movie_ticket_claim.sql
|
--------------------------------------------------------------------
|
SQL State : 23000
|
Error Code : 1062
|
Message : Duplicate entry 'MT202607240001' for key 'uk_cinema_claim_no'
|
Location : db/migration/V41__backfill_legacy_movie_ticket_claim.sql (D:\Code\talent-card\talent-card-server\target\classes\db\migration\V41__backfill_legacy_movie_ticket_claim.sql)
|
Line : 10
|
Statement : Run Flyway with -X option to see the actual statement causing the problem
|
|
2026-07-28T18:22:00.516+08:00 INFO 18324 --- [talent-card-server] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
|
2026-07-28T18:22:00.532+08:00 INFO 18324 --- [talent-card-server] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
|
2026-07-28T18:22:00.534+08:00 INFO 18324 --- [talent-card-server] [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
|
2026-07-28T18:22:00.543+08:00 INFO 18324 --- [talent-card-server] [ main] .s.b.a.l.ConditionEvaluationReportLogger :
|
|
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
|
2026-07-28T18:22:00.552+08:00 ERROR 18324 --- [talent-card-server] [ main] o.s.boot.SpringApplication : Application run failed
|
|
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/hibernate/autoconfigure/HibernateJpaConfiguration.class]: Failed to initialize dependency 'flywayInitializer' of LoadTimeWeaverAware bean 'entityManagerFactory': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/flyway/autoconfigure/FlywayAutoConfiguration$FlywayConfiguration.class]: Failed to execute script V41__backfill_legacy_movie_ticket_claim.sql
|
--------------------------------------------------------------------
|
SQL State : 23000
|
Error Code : 1062
|
Message : Duplicate entry 'MT202607240001' for key 'uk_cinema_claim_no'
|
Location : db/migration/V41__backfill_legacy_movie_ticket_claim.sql (D:\Code\talent-card\talent-card-server\target\classes\db\migration\V41__backfill_legacy_movie_ticket_claim.sql)
|
Line : 10
|
Statement : Run Flyway with -X option to see the actual statement causing the problem
|
|
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:977) ~[spring-context-7.0.8.jar:7.0.8]
|
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:621) ~[spring-context-7.0.8.jar:7.0.8]
|
at org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-web-server-4.1.0.jar:4.1.0]
|
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:756) ~[spring-boot-4.1.0.jar:4.1.0]
|
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:445) ~[spring-boot-4.1.0.jar:4.1.0]
|
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) ~[spring-boot-4.1.0.jar:4.1.0]
|
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1365) ~[spring-boot-4.1.0.jar:4.1.0]
|
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354) ~[spring-boot-4.1.0.jar:4.1.0]
|
at com.talentcard.server.TalentCardServerApplication.main(TalentCardServerApplication.java:10) ~[classes/:na]
|
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/flyway/autoconfigure/FlywayAutoConfiguration$FlywayConfiguration.class]: Failed to execute script V41__backfill_legacy_movie_ticket_claim.sql
|
--------------------------------------------------------------------
|
SQL State : 23000
|
Error Code : 1062
|
Message : Duplicate entry 'MT202607240001' for key 'uk_cinema_claim_no'
|
Location : db/migration/V41__backfill_legacy_movie_ticket_claim.sql (D:\Code\talent-card\talent-card-server\target\classes\db\migration\V41__backfill_legacy_movie_ticket_claim.sql)
|
Line : 10
|
Statement : Run Flyway with -X option to see the actual statement causing the problem
|
|
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1815) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:603) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:309) ~[spring-beans-7.0.8.jar:7.0.8]
|
... 10 common frames omitted
|
Caused by: org.flywaydb.core.internal.exception.FlywayMigrateException: Failed to execute script V41__backfill_legacy_movie_ticket_claim.sql
|
--------------------------------------------------------------------
|
SQL State : 23000
|
Error Code : 1062
|
Message : Duplicate entry 'MT202607240001' for key 'uk_cinema_claim_no'
|
Location : db/migration/V41__backfill_legacy_movie_ticket_claim.sql (D:\Code\talent-card\talent-card-server\target\classes\db\migration\V41__backfill_legacy_movie_ticket_claim.sql)
|
Line : 10
|
Statement : Run Flyway with -X option to see the actual statement causing the problem
|
|
at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:399) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.command.DbMigrate.lambda$applyMigrations$1(DbMigrate.java:283) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.jdbc.TransactionalExecutionTemplate.execute(TransactionalExecutionTemplate.java:59) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.command.DbMigrate.applyMigrations(DbMigrate.java:282) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.command.DbMigrate.migrateGroup(DbMigrate.java:255) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.command.DbMigrate.lambda$migrateAll$0(DbMigrate.java:153) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.database.mysql.MySQLNamedLockTemplate.execute(MySQLNamedLockTemplate.java:62) ~[flyway-mysql-12.4.0.jar:na]
|
at org.flywaydb.database.mysql.MySQLConnection.lock(MySQLConnection.java:159) ~[flyway-mysql-12.4.0.jar:na]
|
at org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.lock(JdbcTableSchemaHistory.java:165) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.command.DbMigrate.migrateAll(DbMigrate.java:153) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:104) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.Flyway.lambda$migrate$3(Flyway.java:231) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:236) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:120) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.Flyway.migrate(Flyway.java:181) ~[flyway-core-12.4.0.jar:na]
|
at org.springframework.boot.flyway.autoconfigure.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:67) ~[spring-boot-flyway-4.1.0.jar:4.1.0]
|
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1862) ~[spring-beans-7.0.8.jar:7.0.8]
|
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1811) ~[spring-beans-7.0.8.jar:7.0.8]
|
... 17 common frames omitted
|
Caused by: org.flywaydb.core.internal.sqlscript.FlywaySqlScriptException: Failed to execute script V41__backfill_legacy_movie_ticket_claim.sql
|
--------------------------------------------------------------------
|
SQL State : 23000
|
Error Code : 1062
|
Message : Duplicate entry 'MT202607240001' for key 'uk_cinema_claim_no'
|
Location : db/migration/V41__backfill_legacy_movie_ticket_claim.sql (D:\Code\talent-card\talent-card-server\target\classes\db\migration\V41__backfill_legacy_movie_ticket_claim.sql)
|
Line : 10
|
Statement : Run Flyway with -X option to see the actual statement causing the problem
|
|
at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.handleException(DefaultSqlScriptExecutor.java:251) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.executeStatement(DefaultSqlScriptExecutor.java:212) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.execute(DefaultSqlScriptExecutor.java:134) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.executeOnce(SqlMigrationExecutor.java:75) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.lambda$execute$0(SqlMigrationExecutor.java:66) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.database.DefaultExecutionStrategy.execute(DefaultExecutionStrategy.java:31) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:65) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:391) ~[flyway-core-12.4.0.jar:na]
|
... 34 common frames omitted
|
Caused by: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry 'MT202607240001' for key 'uk_cinema_claim_no'
|
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:109) ~[mysql-connector-j-9.7.0.jar:9.7.0]
|
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:114) ~[mysql-connector-j-9.7.0.jar:9.7.0]
|
at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:839) ~[mysql-connector-j-9.7.0.jar:9.7.0]
|
at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:687) ~[mysql-connector-j-9.7.0.jar:9.7.0]
|
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95) ~[HikariCP-7.0.2.jar:na]
|
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java) ~[HikariCP-7.0.2.jar:na]
|
at org.flywaydb.core.internal.jdbc.JdbcTemplate.executeStatement(JdbcTemplate.java:229) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.sqlscript.ParsedSqlStatement.execute(ParsedSqlStatement.java:88) ~[flyway-core-12.4.0.jar:na]
|
at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.executeStatement(DefaultSqlScriptExecutor.java:207) ~[flyway-core-12.4.0.jar:na]
|
... 40 common frames omitted
|
|
[INFO] ------------------------------------------------------------------------
|
[INFO] BUILD FAILURE
|
[INFO] ------------------------------------------------------------------------
|
[INFO] Total time: 3.485 s
|
[INFO] Finished at: 2026-07-28T18:22:00+08:00
|
[INFO] ------------------------------------------------------------------------
|
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:4.1.0:run (default-cli) on project talent-card-server: Process terminated with exit code: 1 -> [Help 1]
|
[ERROR]
|
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
|
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
|
[ERROR]
|
[ERROR] For more information about the errors and possible solutions, please read the following articles:
|
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
|