MongoUpgrade Issue:Spring Mongo #516
Replies: 7 comments
-
This may be because the flapdoodle library does not support the version of mongo db you are using. You could try upgrading flapdoodle |
Beta Was this translation helpful? Give feedback.
-
@cijugeorgie what kind of linux is running in the ci pipeline? |
Beta Was this translation helpful? Give feedback.
-
Hi Mossman..it's Debian.
Error message also says that
…On Mon, Apr 15, 2024, 4:29 AM Michael Mosmann ***@***.***> wrote:
@cijugeorgie <https://github.com/cijugeorgie> what kind of linux is
running in the ci pipeline?
—
Reply to this email directly, view it on GitHub
<#516 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHYAUA5TDUMFHJCYSUHVSVDY5OFXXAVCNFSM6AAAAABGCLMLVWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMJVGMZTE>
.
You are receiving this because you were mentioned.Message ID:
<flapdoodle-oss/de.flapdoodle.embed.
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the response Nevin. I tried different versions including spring
30. It's not working. Which one to use is confusing as there are multiple
versions
…On Sat, Apr 13, 2024, 5:08 AM Nevin Mathew ***@***.***> wrote:
This may be because the flapdoodle library does not support the version of
mongo db you are using. You could try upgrading flapdoodle
—
Reply to this email directly, view it on GitHub
<#516 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHYAUA7VY3WR22EBL2OSUT3Y5DYYHAVCNFSM6AAAAABGCLMLVWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMBSGY4DG>
.
You are receiving this because you authored the thread.Message ID:
<flapdoodle-oss/de.flapdoodle.embed.
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@cijugeorgie .. from the small part of your error message i guess that your debian version is not detected ( Platform{operatingSystem=Linux, architecture=X86_64[missing part?]}) or this mongodb version does not exist for your platform.. can you provide a more complete stack trace/error message? spring versions: which spring versions do you use? (spring boot, spring something?) |
Beta Was this translation helpful? Give feedback.
-
@cijugeorgie |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response Mike.
We were using 2.7.18 Spring version.
We were trying out different versions to fix and somehow when we changed it
to mongodb.embeded.version to 4.0.2 in application.yml, it started working
fine
…On Wed, Apr 17, 2024, 3:11 AM Michael Mosmann ***@***.***> wrote:
@cijugeorgie <https://github.com/cijugeorgie> .. from the small part of
your error message i guess that your debian version is not detected (
Platform{operatingSystem=Linux, architecture=X86_64[missing part?]}) or
this mongodb version does not exist for your platform..
can you provide a more complete stack trace/error message?
spring versions: which spring versions do you use? (spring boot, spring
something?)
—
Reply to this email directly, view it on GitHub
<#516 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHYAUA3R3NVFXKHXWQ7UDRDY5YOCFAVCNFSM6AAAAABGCLMLVWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMZYGU2DG>
.
You are receiving this because you were mentioned.Message ID:
<flapdoodle-oss/de.flapdoodle.embed.
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
We are upgrading the mongo db. While running test cases in the pipeline, we are getting this error. Can anyone please advise. Locally(Window) its runs good.
Error creating bean with name 'embeddedMongoServer' defined in org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.flapdoodle.embed.mongo.MongodExecutable]: Factory method 'embeddedMongoServer' threw exception; nested exception is java.lang.IllegalArgumentException: could not resolve package for Version{4.4.16}:Platform{operatingSystem=Linux, architecture=X86_64
I have this in build.gradle
testImplementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo.spring27x:4.6.2' and mongodb.embedded.version: = 4.4.16 in application.yml
Beta Was this translation helpful? Give feedback.
All reactions