Type org.flywaydb.core.api.callback.FlywayCallback not present

ka3ak

After upgrading Flyway from 5.2.4 to

compile group: 'org.flywaydb', name: 'flyway-core', version: '6.5.0' 

and running the spring boot app I got the error:

 Unsatisfied dependency expressed through method 'mapDao' parameter 0;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration':
Unexpected exception during bean creation;
nested exception is java.lang.TypeNotPresentException:
Type org.flywaydb.core.api.callback.FlywayCallback not present

If I don't upgrade the app runs with a warning:

Flyway upgrade recommended: PostgreSQL 12.3 is newer than this version of Flyway and support has not been tested.

that I would like to solve

How should I configure the app so that it uses Flyway 6.5 and Spring Boot 2.1.2.RELEASE ?

ka3ak

It doesn't really answer the question but it's acceptable in my situation. I've just updated Spring Boot dependency to 2.2.2 and the error has gone. No changes in the app source code were needed.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

upgrade flyway in spring from 5.2.3 to 6.X - org.flywaydb.core.api.callback.FlywayCallback not present

ClassNotFoundException: org.flywaydb.core.api.callback.FlywayCallback

Consider defining a bean of type 'org.flywaydb.core.Flyway'

Caused by: org.flywaydb.core.api.FlywayException: Migration failed ! and Spring Cloud DataFlow

org.flywaydb.core.api.FlywayException: Unable to instantiate JDBC driver when my java class is triggered from ant taskdef

org.flywaydb.core.internal.license.FlywayEnterpriseUpgradeRequiredException - ClassNotFoundException

Upgrading Flyway 4.1.2 to 6.4.4 results in NoSuchMethodError: org.flywaydb.core.Flyway.getLocations()

Caused by: org.flywaydb.core.internal.exception.FlywaySqlException: Unable to obtain connection from database: Connection to localhost:5432 ?refused

Program type already present: org.intellij.lang.annotations.Flow

Program type already present: org.hamcrest.CoreMatchers

AssertJ: Type inference failed: Not enough information to infer parameter T in org.assertj.core.api.Assertions.fail

Error Program type already present: Program type already present: androidx.recyclerview.widget.AdapterHelper$Callback when adding new libraries

Error: Program type already present: androidx.core.R

How much of the core Java APIs are present in Android API

Type [unknown] not present Caused by: java.lang.NoClassDefFoundError: org/junit/internal/runners/TestClassRunner

A claim of type 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier' was not present on the provided ClaimsIdentity

Error: Program type already present: org.intellij.lang.annotations.JdkConstants$PatternFlags 3

create callback url in asp.net core api

Which Java API to use with JavaCV? org.bytedeco.opencv.opencv_core or org.opencv.core?

org.springframework.core.convert.ConversionFailedException: Failed to convert from type

No qualifying bean of type org.springframework.jdbc.core.JdbcTemplate

Build fails with 'Program type already present: android.arch.core.util.Function' - Issues with Firebase Dependencies

Program type already present: com.mapbox.android.core.location.GoogleLocationEngine

Android Studio: Error: Program type already present: androidx.core.graphics.PathSegment

Build fails with 'Program type already present: android.arch.core.util.Function'

Error: Program type already present: com.fasterxml.jackson.core.Base64Variant

Showing "Program type already present: android.arch.core.BuildConfig " error when rebuilding app

org.assertj.core.api.Assertions doesNotContain array error

Alternatives to deprecated java method from org.assertj.core.api