Skip to content
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

initialize CodahaleMetricsProvider at runtime #915

Closed

Conversation

knuspertante
Copy link

Native-Image reports, that CodahaleMetricsProvider should be initialized at runtime.

Error: Class initialization of org.apache.cxf.metrics.codahale.CodahaleMetricsProvider failed. This error is reported at image build time because class org.apache.cxf.metrics.codahale.CodahaleMetricsProvider is registered for linking at image build time by command line Use the option --initialize-at-run-time=org.apache.cxf.metrics.codahale.CodahaleMetricsProvider to explicitly request delayed initialization of this class.

@ppalaga
Copy link
Contributor

ppalaga commented Jun 11, 2023

@knuspertante thanks for the contribution! However it is hard to accept this as is without a test. Would you perhaps find any time to write one? There are some hints in #504 and you could also take some inspiration from other existing integration tests in https://github.com/quarkiverse/quarkus-cxf/tree/main/integration-tests

@ppalaga
Copy link
Contributor

ppalaga commented Jun 29, 2023

Thanks again, for your contribution @knuspertante! I finally found some time to write the test and also polish the documentation: #932 Would you like to review?

@ppalaga ppalaga closed this Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants