Micronaut property injection issue #9873
Unanswered
NocturnalCoder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team, I've centos machine which has multiple docker containers running on it. One of them has my micronaut application running. I'm facing weird issue past couple of days.
On machine start-up, sometimes randomly property injection fails in my micronaut application. Thus is not consistent, happens randomly and happens only on machine start-up. Simple restart of container doesn't fix it and I've to remove the container and start it fresh, then only it's fixed.
My application.yml file in resources folder

My Java class where I'm injecting this property

And here's the error that I'm facing

The container keeps on restarting with this error and only once it's removed using docker rm -f command and started again, then it starts working
Micronaut Version: 3.2.4
Java Version: 1.8
Beta Was this translation helpful? Give feedback.
All reactions