Open Absurd-Mind opened 2 years ago
Hi @Absurd-Mind,
Payara Server and Payara Micro are not supported on JDK 18, you can read our supported platforms here.
I have however tested your reproducer on JDK 11 and was able to observe the same results, getting the same exceptions as you are facing, so thank you very much for your detailed reproducer. I have raised an internal issue FISH-6363
to address this bug. We always encourage you to contribute, so if you wish you can submit a PR with a fix and we will gladly review it. Otherwise, we will pick up the issue at some point in the future.
Thanks, James
Description
Exceptions when enabling jmx-monitoring in payara micro
Expected Outcome
Enabling JMX-Monitoring should start without exceptions
Current Outcome
Exception 1:
Exception 2:
Steps to reproduce
create a file postbootcommands: pbc.env
Start payara micro:
java -jar payara-micro-5.2022.2.jar --postbootcommandfile pbc.env --deploy metrics-example-1.0-SNAPSHOT.war
metrics example from: https://github.com/payara/Payara-Examples/tree/master/microprofile/metrics-exampleEnvironment