question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nested exception is java.io.IOException: Could not start process: <EOF>

See original GitHub issue

Hello,

I’ve seen other issues with the same exception but thought this one is worth bringing to your attention as it looks like the cause is very different, and a lot simpler to resolve.

I am using spring-boot-dependencies:2.1.4.RELEASE

When these two properties are set:

spring.data.mongodb.host= spring.data.mongodb.port=

The following exception is thrown: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedMongoServer' defined in class path resource [org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfiguration.class]: Invocation of init method failed; nested exception is java.io.IOException: Could not start process: <EOF>

Regards, Warren

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

17reactions
naddisoncommented, Dec 2, 2019

@majitospost Make sure in your application.properties to not have spring.data.mongodb.host= spring.data.mongodb.port=

set. I had this issue, but I fixed it by commenting these two out.

2reactions
chillywhalecommented, Mar 9, 2020

@majitospost Make sure in your application.properties to not have spring.data.mongodb.host= spring.data.mongodb.port=

set. I had this issue, but I fixed it by commenting these two out.

thanks for your solution, it does work. But what should be the most proper solution? The situation is that I want to use the embedded mongo while testing, but to use the local mogo server while running the application.
The gradle build complains when I leave the spring.data.mongodb.host in the application.yml

Read more comments on GitHub >

github_iconTop Results From Across the Web

flapdoodle can't start mongo ( Could not start process: <EOF>)
Caused by : java.io.IOException: Could not start process: at de.flapdoodle.embed.mongo.AbstractMongoProcess.
Read more >
Why does my flapdoodle Embedded MongoDB test fail to run ...
Why does my flapdoodle Embedded MongoDB test fail to run? (creating 'embeddedMongoServer' could not start process EOF) ; in ; is java.io.
Read more >
java.io.IOException: Could not start process: <EOF>
BeanCreationException: Error creating bean with name 'mongoAppConfiig': Invocation of init method failed; nested exception is java.io.
Read more >
Meme Overflow on Twitter: "Why does my flapdoodle ...
Why does my flapdoodle Embedded MongoDB test fail to run? (creating 'embeddedMongoServer' could not start process EOF) ...
Read more >
Organization Flapdoodle OSS | Embedmongo.flapdoodle.de
Starting with version 2 we are going to support only java 8 or higher. If you are looking for the older version you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found