javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://www.example.com:5242/calculator/calculatorport?wsdl. It failed with: HTTPS hostname wrong: should be <www.example.com>.

Stack Overflow | Vishal Tyagi | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Caused by: java.io.IOException: HTTPS hostname wrong: should be <www.example.com>

    Stack Overflow | 7 months ago | Vishal Tyagi
    javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://www.example.com:5242/calculator/calculatorport?wsdl. It failed with: HTTPS hostname wrong: should be <www.example.com>.

    1 unregistered visitors

    Root Cause Analysis

    1. java.io.IOException

      HTTPS hostname wrong: should be <www.example.com>

      at com.ibm.net.ssl.www2.protocol.https.c.b()
    2. com.ibm.net
      d.connect
      1. com.ibm.net.ssl.www2.protocol.https.c.b(c.java:69)
      2. com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:148)
      3. com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:12)
      3 frames
    3. Java RT
      HttpURLConnection.getInputStream
      1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1207)
      1 frame
    4. com.ibm.net
      b.getInputStream
      1. com.ibm.net.ssl.www2.protocol.https.b.getInputStream(b.java:32)
      1 frame
    5. Java RT
      RuntimeWSDLParser.parse
      1. java.net.URL.openStream(URL.java:1022)
      2. com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:805)
      3. com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:263)
      4. com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:130)
      4 frames