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

ClassCastException when using -Dotel.jmx.target.system=tomcat #7883

Closed
PeterF778 opened this issue Feb 22, 2023 · 1 comment · Fixed by #7884
Closed

ClassCastException when using -Dotel.jmx.target.system=tomcat #7883

PeterF778 opened this issue Feb 22, 2023 · 1 comment · Fixed by #7884
Assignees
Labels
bug Something isn't working

Comments

@PeterF778
Copy link
Contributor

Describe the bug
JMX Metric Insight does not work when the predefined set of JMX Metrics for tomcat is specified.

Steps to reproduce
Use java command line option -Dotel.jmx.target.system=tomcat

What did you expect to see?
No error messages. If the application is Tomcat, the predefined JMX metrics for tomcat are collected and exported.

What did you see instead?
WARN io.opentelemetry.javaagent.shaded.instrumentation.jmx.yaml.RuleParser - java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
No metrics are exported.

What version are you using?
1.23

Environment
Java 8

@PeterF778 PeterF778 added the bug Something isn't working label Feb 22, 2023
@PeterF778
Copy link
Contributor Author

Please assign this bug to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant