After I run my program written in jwebunit, I received the following error:
Caused by: java.io.IOException: HTTPS hostname wrong: should be <devl.mynannycalledinsick.com>
at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:1485)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getHeaderFieldKey(DashoA6275)
at com.meterware.httpunit.HttpWebResponse.loadHeaders(HttpWebResponse.java:191)
at com.meterware.httpunit.HttpWebResponse.readHeaders(HttpWebResponse.java:173)
... 15 more
at net.sourceforge.jwebunit.HttpUnitDialog.submit(Unknown Source)
at net.sourceforge.jwebunit.WebTester.submit(Unknown Source)
at Babysitter.test(Babysitter.java:61)
at Nanny.main(Nanny.java:1140)
Can anybody help me?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-08-12
I'm having the same problem. I'm not sure what the solution is either. If you know, please post. It has something to do with the name on the SSL certificate, I believe, but that knowledge hasn't solved my problem yet.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-07-02
Hello,
I attempt to use the HTTPUnit for testing my website through secured connection (https). After completing the tasks by creating, signing my own certificate using openssl and added to webserver and cacerts as described in the Using SSL with httpunit FAQ. An IOException is thrown
when getResponse is called. I retested with a different secured URL and it works.
I noticed that I receive Security Alert on my Windows 2000 machine at mytarget_web_address. As I inspect the certificate, I find this message appears in the message status: "This certificate cannot be verified up to a trusted certification authority.".
Any ideas and suggestions would be greatly appreciated.
Here is the code used in the test:
WebConversation wc = new WebConversation();
String url = new String("https://mytarget_web_address");
System.out.println("initialization done");
WebRequest request = new GetMethodWebRequest(url);
System.out.println("completed request to " + url);
WebResponse response = wc.getResponse( request );
>> get Exception: java.io.IOException at this point
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After I run my program written in jwebunit, I received the following error:
Caused by: java.io.IOException: HTTPS hostname wrong: should be <devl.mynannycalledinsick.com>
at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:1485)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getHeaderFieldKey(DashoA6275)
at com.meterware.httpunit.HttpWebResponse.loadHeaders(HttpWebResponse.java:191)
at com.meterware.httpunit.HttpWebResponse.readHeaders(HttpWebResponse.java:173)
... 15 more
at net.sourceforge.jwebunit.HttpUnitDialog.submit(Unknown Source)
at net.sourceforge.jwebunit.WebTester.submit(Unknown Source)
at Babysitter.test(Babysitter.java:61)
at Nanny.main(Nanny.java:1140)
Can anybody help me?
I'm having the same problem. I'm not sure what the solution is either. If you know, please post. It has something to do with the name on the SSL certificate, I believe, but that knowledge hasn't solved my problem yet.
Hello,
I attempt to use the HTTPUnit for testing my website through secured connection (https). After completing the tasks by creating, signing my own certificate using openssl and added to webserver and cacerts as described in the Using SSL with httpunit FAQ. An IOException is thrown
when getResponse is called. I retested with a different secured URL and it works.
I noticed that I receive Security Alert on my Windows 2000 machine at mytarget_web_address. As I inspect the certificate, I find this message appears in the message status: "This certificate cannot be verified up to a trusted certification authority.".
Any ideas and suggestions would be greatly appreciated.
Here is the code used in the test:
WebConversation wc = new WebConversation();
String url = new String("https://mytarget_web_address");
System.out.println("initialization done");
WebRequest request = new GetMethodWebRequest(url);
System.out.println("completed request to " + url);
WebResponse response = wc.getResponse( request );
>> get Exception: java.io.IOException at this point