Exception java.io.IOException: HTTPS hostname wrong: Problem still perist.
posted 14 years ago
Hi All, Thank you very much for ur reply. My requirement is to post the values to a servlet through https using URL connection. 1. First I tried using servlet. i.e From one servlet I was trying to post the values to another servlet using URL connection. For this as you suggested I tried both the method, one that disable the host name verification altogether. The other method using the IneAddress class to make the comparison of the host name. In both the casses I am getting the error Exception java.io.IOException: Server Certificate SubjectDN
So I tried to post the values using the normal java class to servlet. In this case by using the InetAddress class I could post the value.But in the servlet I am redirecting the response to another servlet using response.sendRedirect(url). My problem is I am not able to redirect it to another servlet. Before that I am getting the error saying Exception java.io.IOException: HTTPS hostname wrong: should be <100.100.100.57>, but cert says <weblogic.bea.com>
For ur info redirection is done using http only. The above metioned scenario works for http post. Could you help me to solve this, as this is very urgent for me. If I am not able to explain to you properly, if need be I will post my code also. Do suggest me some thing. Thanks in Advance Vasu.