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?
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