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:
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?
What is the hostname for your ssl key? If it is different than the URL you are requesting, then you will get this error ( I think )