You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
Java API
What database are you using (type & version)?
MongoDB 3.3
What operating system are you using?
OSX El Capitan
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Try to configure a callback with the flyway.callbacks property.
What did you expect to see?
A callback executed
What did you see instead?
ClassUtils.instantiate throws a NoSuchMethod exception.
The Callback interface is not public. The abstract MongoFlywayCallback class defines a one-arg method. The ClassUtils that is used to instantiate a configured callback uses Class.forName to instantiate, and that only works with zero-arg constructors. We cannot extend MongoFlywayCallback and add a zero-arg constructor.
Our workaround is to manually set a callback into MongoFlyway, but this is a limited-value solution.
The text was updated successfully, but these errors were encountered:
What version of Flyway are you using?
release-4.0.3-mongodb
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
Java API
What database are you using (type & version)?
MongoDB 3.3
What operating system are you using?
OSX El Capitan
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Try to configure a callback with the flyway.callbacks property.
What did you expect to see?
A callback executed
What did you see instead?
ClassUtils.instantiate throws a NoSuchMethod exception.
The Callback interface is not public. The abstract MongoFlywayCallback class defines a one-arg method. The ClassUtils that is used to instantiate a configured callback uses Class.forName to instantiate, and that only works with zero-arg constructors. We cannot extend MongoFlywayCallback and add a zero-arg constructor.
Our workaround is to manually set a callback into MongoFlyway, but this is a limited-value solution.
The text was updated successfully, but these errors were encountered: