DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Sep 2005

    Angry Exception: HTTPS hostname wrong, while sending data on ssl using http tunneling

    I am sending data using http tunneling on https protocol. I am sure i have got certificates installed properly. While running my program with -Djavax.net.debug=all option i get long list of ouput telling me handshake has properly occured but eventually the application dies leaving the following stacktrace:

    java.io.IOException: HTTPS hostname wrong: should be <id address>
    at sun.net.http://www.protocol.https.HttpsClien...lient.java:490)
    at sun.net.http://www.protocol.https.HttpsClien...lient.java:415)
    at sun.net.http://www.protocol.https.AbstractDe...ction.java:170)
    at sun.net.http://www.protocol.http.HttpURLConn...ction.java:839)
    at sun.net.http://www.protocol.https.HttpsURLCo...nImpl.java:230)
    at XMLUploadClass.UploadStream(XMLUploadClass.java:605)
    at XMLUploadClass.writeXML(XMLUploadClass.java:546)
    at XMLUploadClass.main(XMLUploadClass.java:354)

    guys any clues plz.. its been the whole day, banging my head, but to no avail. I haven't left a place in google.

    i am sending stream in xml format. Yes i have set header to text/xml
    yes i hv set setDoOutput to true
    yes i hv setRequestMethod("POST")
    Thanks and regards
    Last edited by AashuKapil; 11-27-2006 at 07:26 AM. Reason: editing of title

Similar Threads

  1. Why I can't save data in data base?
    By Kurt in forum Java
    Replies: 7
    Last Post: 10-08-2006, 08:59 AM
  2. Replies: 2
    Last Post: 04-03-2006, 07:20 AM
  3. Replies: 7
    Last Post: 01-13-2001, 02:15 PM
  4. 230k XML data Files - any problem?
    By brian in forum XML
    Replies: 1
    Last Post: 10-26-2000, 02:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.