I get the following error when running flyway migrations in my CI:
Error: Exception in thread "main" java.lang.IllegalArgumentException: null string
at java.sql/java.sql.Timestamp.valueOf(Timestamp.java:190)
at org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.lambda$refreshCache$1(JdbcTableSchemaHistory.java:231)
at org.flywaydb.core.internal.jdbc.JdbcTemplate.query(JdbcTemplate.java:359)
at org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.refreshCache(JdbcTableSchemaHistory.java:207)
at org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.allAppliedMigrations(JdbcTableSchemaHistory.java:198)
at org.flywaydb.core.internal.info.MigrationInfoServiceImpl.refresh(MigrationInfoServiceImpl.java:87)
at org.flywaydb.core.internal.command.DbMigrate.migrateGroup(DbMigrate.java:176)
at org.flywaydb.core.internal.command.DbMigrate.lambda$migrateAll$0(DbMigrate.java:146)
at org.flywaydb.database.mysql.MySQLNamedLockTemplate.execute(MySQLNamedLockTemplate.java:62)
at org.flywaydb.database.mysql.MySQLConnection.lock(MySQLConnection.java:154)
at org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.lock(JdbcTableSchemaHistory.java:149)
at org.flywaydb.core.internal.command.DbMigrate.migrateAll(DbMigrate.java:146)
at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:104)
at org.flywaydb.core.Flyway.lambda$migrate$0(Flyway.java:222)
at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:210)
at org.flywaydb.core.Flyway.migrate(Flyway.java:164)
at my.profit.org.dataImporter.migrations.DataImportMigrations.runMigrations(DataImportMigrations.kt:27)
at my.profit.org.dataImporter.migrations.DataImportMigrationsKt.main(DataImportMigrations.kt:34)
at my.profit.org.dataImporter.migrations.DataImportMigrationsKt.main(DataImportMigrations.kt)
> Task :app:run FAILED
The actual migrations are performed, only the timestamp insertion fails.
The error did not occur in the beginning, just randomly during a migration and from then on.