'Unable to connect from Jconsole with authentication

I tried connecting Jconsole from the local windows to the java process in the same local machine without authentication through remote process. It worked but while trying the same with authentication and getting the below error from the Jconsole Logs. Can anyone help me with this issue?

Jconsole Logs



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source