To Print a String Inside a Third Party Jar in Java

To Print a String Inside a Third Party Jar in Java

I have a java program which uses ojdbc8.jar file.. I am getting "Mismatch with the server cert DN" while i connect to a database. Though there is no mismatch between the client passed and from server , i am getting this error. There is a class DNVerfier inside ojdbc8.jar and a method verifyConfiguredDN() in it. I need to print the strings that are passed on to this method so that i can see where there is a mismatch..

Is there any way i can print those values coming inside the jar using a sysout and how to do it?

5

1 Answer

use jdb to debug the program from command line

jdb -sourcepath src (if you have the source of jar/or try decompiled classes) yourclass

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.