Not able to see the Graph related to JVM matrices with Jolokia plugins

**CMK version:**2.0.0p23 (CRE)
OS version: RHEL 7.9
Error message: Unable to view java heap service graph where we are able to see heap memory details in agent output.
We had followed below steps to replicate in our test environment.

Installed Checkmk 2.0.
Installed 2.0 agent.
Python:- Python3.6
Below is the process to setup of mk_jolokia plugin.
Place the mk_jolokia.py in /usr/lib/check_mk_agent/plugins folder.
Fetch the sample jolokia.cfg from checkmk ui and place in /etc/checkmk folder
Edit the jolokia.cfg with our instance details.
Add the host in the server and perform service discovery.
Replicated the same issue in our sandbox.
Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)