Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redgate/flyway:10.21.0-alpine image fails for MongoDB with a NoSuchMethodError #164

Open
jagregory opened this issue Nov 16, 2024 · 0 comments

Comments

@jagregory
Copy link

jagregory commented Nov 16, 2024

I'm just running the vanilla image with no customisations. The redgate/flyway:10.21.0-alpine image results in the error below. 10.20.0 worked fine and downgrading resolves the issue.

Flyway Community Edition 10.21.0 by Redgate
See release notes here: https://rd.gt/416ObMi
Flyway Pipelines are not active for this project. Learn more here: https://flyway.red-gate.com
Exception in thread "main" java.lang.NoSuchMethodError: 'com.mongodb.spi.dns.InetAddressResolver com.mongodb.internal.connection.ServerAddressHelper.getInetAddressResolver(com.mongodb.MongoClientSettings)'
	at com.mongodb.client.internal.MongoClientImpl.getStreamFactory(MongoClientImpl.java:233)
	at com.mongodb.client.internal.MongoClientImpl.createCluster(MongoClientImpl.java:224)
	at com.mongodb.client.internal.MongoClientImpl.<init>(MongoClientImpl.java:74)
	at com.mongodb.client.MongoClients.create(MongoClients.java:108)
	at com.mongodb.client.MongoClients.create(MongoClients.java:50)
	at com.dbschema.mongo.MongoClientWrapper.<init>(MongoClientWrapper.java:102)
	at com.dbschema.mongo.MongoService.<init>(MongoService.java:32)
	at com.dbschema.mongo.MongoConnection.<init>(MongoConnection.java:27)
	at com.dbschema.MongoJdbcDriver.connect(MongoJdbcDriver.java:94)
	at org.flywaydb.core.internal.jdbc.DriverDataSource.getConnectionFromDriver(DriverDataSource.java:1043)
	at org.flywaydb.core.internal.jdbc.DriverDataSource.getConnection(DriverDataSource.java:1008)
	at org.flywaydb.core.internal.jdbc.JdbcUtils.openConnection(JdbcUtils.java:827)
	at org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:844)
	at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:905)
	at org.flywaydb.core.Flyway.migrate(Flyway.java:945)
	at org.flywaydb.commandline.Main.executeOperation(Main.java:1066)
	at org.flywaydb.commandline.Main.executeFlyway(Main.java:972)
	at org.flywaydb.commandline.Main.main(Main.java:895)
@jagregory jagregory changed the title Latest version of the image fails for MongoDB with a NoSuchMethodError 10.21.0 image fails for MongoDB with a NoSuchMethodError Nov 16, 2024
@jagregory jagregory changed the title 10.21.0 image fails for MongoDB with a NoSuchMethodError redgate/flyway:10.21.0-alpine image fails for MongoDB with a NoSuchMethodError Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant