-
Notifications
You must be signed in to change notification settings - Fork 290
Startup NullPointerException registry == null #479
Comments
The problem is that Stagemonitor 0.89.1 depends on version 3.2.4 of Dropwizard Metrics. Exporting dependencies of a project based on the latest Spring Boot (2.3.1.RELEASE) and Stagemonitor (0.89.1) you can see the following:
So basically dropwizard libraries are promoted to version 4.1.9 due to the Spring Boot dependencies. If you downgrade the dependency to version 4.1.1 using the following Gradle snippet
the NPE disappears but you experience a new error:
This is due to a rename of the package where the Dropwizard Metrics JmxReporter class is included. Finally you can downgrade Dropwizard Metrics to version 3.2.4
In that case, the application starts. Not sure if Stagemonitor works correctly and/or how the Spring Boot application is affected by the downgrade of Dropwizard Metrics. |
Stagemonitor 0.89.1
Spring Boot 2.3.0.RELEASE
Gradle 6.4.1
Stagemonitor is initilialized with:
The text was updated successfully, but these errors were encountered: