-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
NullPointerException in MicrometerRecorder.registerMetrics #20350
Comments
/cc @ebullient, @jmartisk, @kenfinnigan |
It looks like neo4j is the one responsible for the I'll leave it up to @ebullient to decide whether |
Wow, absolutly great work how fast you find the problem :-) When I activate the neo4j-metrics all works fine: quarkus.neo4j.pool.metrics.enabled=true When I set it to false or leave it unset, I get the NullPointerException |
I should absolutely be checking for null because it can apparently happen, though it would be kinder for neo4j not to register the supplier at all unless metrics are turned on. I'll try to fix both. Thanks for looking Georgios.. you beat me to it. |
👍🏼 |
Describe the bug
Hello Quarkus-Team,
great work. I'm currently moving a project from tomee to quarkus. This is a example project for my students in "database technology". So I have used a lot of your extensions for jpa, mongodb, neo4j, cassandra, ... All worked absolutly fine. In a last step I want to introduce the extension "quarkus-micrometer-registry-prometheus" to demonstrate the use of prometheus as a time series database. When I add this extension, the project doesn't start any more. The exception is:
It seems to me, that one of my lot of extension does not work correctly and so corrupt the complete system.
Is it possible, that you do a null check in the registerMetrics method (the parameter consumer is called with null)?
I do a greater google search but it seems that no other people has my problem ;-)
I have tried to deactivate all of the metrics in the application.properties to find the "corrupt" extension but no of these deactivations have an effect to my NullPointerProblem.
Only when I deactivate all with "quarkus.micrometer.enabled=true" there is no NullPointerException any more. But then I also have no metrics ;-)
For me, this is not a serious problem, because that is a project for students, but I want to report the problem so that you can think about a null check at this point.
Bye
Rolf
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.1.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: