Symantec Developer Group

 View Only
  • 1.  UnknownHostException: pilotvipuserservices-auth.symantec.com

    Posted Mar 25, 2015 08:49 PM

    Hi

    I follow VIP's "User Services Developer's Guide" to create java sample app.

    QueryServiceStub queryServiceStub = new QueryServiceStub("https://pilotvipuserservices-auth.symantec.com/vipuserservices/QueryService_1_0");

    When I try to run with "java VipUserServicesQueryClient", I received below error.  Any help?


    D:\Workspaces\wsdl\Java>javac VipUserServicesQueryClient.java

    D:\Workspaces\wsdl\Java>java VipUserServicesQueryClient
    Mar 26, 2015 11:44:48 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
    INFO: Unable to sendViaPost to url[https://pilotvipuserservices-auth.symantec.co
    m/vipuserservices/QueryService_1_0]
    java.net.UnknownHostException: pilotvipuserservices-auth.symantec.com
            at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
    :178)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
            at java.net.Socket.connect(Socket.java:579)
            at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
            at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:457)
            at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryIm
    pl.java:140)
            at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.creat
    eSocket(SSLProtocolSocketFactory.java:82)
            at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$
    1.doit(ControllerThreadSocketFactory.java:91)
            at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$
    SocketTask.run(ControllerThreadSocketFactory.java:158)
            at java.lang.Thread.run(Thread.java:745)

    Exception in thread "main" org.apache.axis2.AxisFault: pilotvipuserservices-auth
    .symantec.com
            at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
            at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.jav
    a:197)
            at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
            at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
    geWithCommons(CommonsHTTPTransportSender.java:404)
            at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
    monsHTTPTransportSender.java:231)
            at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
            at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
    peration.java:406)
            at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
    InAxisOperation.java:229)
            at org.apache.axis2.client.OperationClient.execute(OperationClient.java:
    165)
            at com.symantec.vipuserservices.wsclient.QueryServiceStub.getServerTime(
    QueryServiceStub.java:230)
            at VipUserServicesQueryClient.main(VipUserServicesQueryClient.java:24)
    Caused by: java.net.UnknownHostException: pilotvipuserservices-auth.symantec.com

            at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
    :178)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
            at java.net.Socket.connect(Socket.java:579)
            at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
            at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:457)
            at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryIm
    pl.java:140)
            at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.creat
    eSocket(SSLProtocolSocketFactory.java:82)
            at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$
    1.doit(ControllerThreadSocketFactory.java:91)
            at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$
    SocketTask.run(ControllerThreadSocketFactory.java:158)
            at java.lang.Thread.run(Thread.java:745)

    D:\Workspaces\wsdl\Java>

     



  • 2.  RE: UnknownHostException: pilotvipuserservices-auth.symantec.com

    Posted Mar 26, 2015 11:44 PM

    Found a workaround.  I replaced 

     

    QueryServiceStub queryServiceStub = new QueryServiceStub("https://pilotvipuserservices-auth.symantec.com/vipuserservices/QueryService_1_0");

     

    to 

     

    QueryServiceStub queryServiceStub = new QueryServiceStub("https://vipuserservices-auth.verisign.com/vipuserservices/QueryService_1_3");

     

    Not sure is that correct or not...  Any help?



  • 3.  RE: UnknownHostException: pilotvipuserservices-auth.symantec.com

    Broadcom Employee
    Posted Apr 08, 2015 07:48 AM

    Hey songjing,

     

    You may want to consider changing the URL in the last line to: "https://pilot-userservices-auth.vip.symantec.com/vipuserservices/QueryService_1_3".  You can find the production equivalent in recent downloads of VIP_UserServicesWSDL.zip in the vipuserservices-query-1.3.wsdl file (at the bottom) and the pilot version is found by adding "pilot-" to the beginning of that.

    Did you get the reference to "https://pilotvipuserservices-auth.symantec.com" from page 20 of the "User Services Developer's Guide"?  I'll chase down getting this updated.

     

    Does that help?



  • 4.  RE: UnknownHostException: pilotvipuserservices-auth.symantec.com

    Posted Jul 05, 2015 11:45 PM

    Hi Maren

     

    Thanks for the reply.

     

    Well, yes, I get that pilotvipuserservices... from User Service Guide, page 20.

    I tried your suggestion by using

    pilot-userservices-auth instead of
    vipuserservices-auth

    Here is the connection error:

    Exception in thread "main" org.apache.axis2.AxisFault: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset

    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

    at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)

    at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)

    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)

    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)

    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)

    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)

    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)

    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)

    at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)

    at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)

    at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)

    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)

    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)

    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)

    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

    at com.symantec.vipuserservices.wsclient.QueryServiceStub.getUserInfo(QueryServiceStub.java:1037)

    at au.com.kpmg.fpg.iiq.intergration.vip.test.queryservice.GetUserInfomation.main(GetUserInfomation.java:53)

    Caused by: com.ctc.wstx.exc.WstxIOException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset

    at com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1406)

    at com.ctc.wstx.sw.BaseStreamWriter.close(BaseStreamWriter.java:247)

    at org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)

    at org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:220)

    at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:169)

    at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)

    ... 18 more

    Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset

    at sun.security.ssl.SSLSocketImpl.checkEOF(Unknown Source)

    at sun.security.ssl.SSLSocketImpl.checkWrite(Unknown Source)

    at sun.security.ssl.AppOutputStream.write(Unknown Source)

    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)

    at java.io.BufferedOutputStream.flush(Unknown Source)

    at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)

    at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:103)

    at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:225)

    at com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:198)

    at com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1404)

    ... 23 more

    Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset

    at sun.security.ssl.Alerts.getSSLException(Unknown Source)

    at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)

    at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)

    at sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)

    at sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)

    at sun.security.ssl.AppOutputStream.write(Unknown Source)

    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)

    at java.io.BufferedOutputStream.flush(Unknown Source)

    at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)

    at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:103)

    at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:225)

    at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:259)

    at org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.flush(XMLStreamWriterWrapper.java:50)

    at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:228)

    at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:91)

    at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:742)

    at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:563)

    at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:790)

    at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:271)

    at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:233)

    at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:165)

    ... 19 more

    Caused by: java.net.SocketException: Connection reset

    at java.net.SocketInputStream.read(Unknown Source)

    at java.net.SocketInputStream.read(Unknown Source)

    at sun.security.ssl.InputRecord.readFully(Unknown Source)

    at sun.security.ssl.InputRecord.readV3Record(Unknown Source)

    at sun.security.ssl.InputRecord.read(Unknown Source)

    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

    at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)

    ... 35 more



  • 5.  RE: UnknownHostException: pilotvipuserservices-auth.symantec.com

    Posted Aug 20, 2015 03:48 PM

    Hi  songjing

     

    Did you have this problem before?

    INFO: Unable to sendViaPost to url[https://pilot-userservices-auth.vip.symantec.com/vipuserservices/QueryService_1_3]

    org.apache.axis2.AxisFault: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)

        at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)

        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)

        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)

        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)

        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)

        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)

        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)

        at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)

        at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)

        at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)

        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)

        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)

        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)

        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

        at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

        at com.symantec.vipuserservices.wsclient.QueryServiceStub.getServerTime(QueryServiceStub.java:230)

        at com.m2.vip.client.VipUserServicesQueryClient.main(VipUserServicesQueryClient.java:36)



  • 6.  RE: UnknownHostException: pilotvipuserservices-auth.symantec.com

    Posted Aug 20, 2015 03:57 PM

    Hello  Maren Peasley

    Do you have an idea how to fix this error?

    Aug 20, 2015 7:43:58 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry

    INFO: I/O exception (org.apache.axis2.AxisFault) caught when processing request: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    Aug 20, 2015 7:43:58 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry

    INFO: Retrying request

    Aug 20, 2015 7:43:58 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry

    INFO: I/O exception (org.apache.axis2.AxisFault) caught when processing request: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    Aug 20, 2015 7:43:58 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry

    INFO: Retrying request

    Aug 20, 2015 7:43:58 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry

    INFO: I/O exception (org.apache.axis2.AxisFault) caught when processing request: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    Aug 20, 2015 7:43:58 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry

    INFO: Retrying request

    Aug 20, 2015 7:43:58 PM org.apache.axis2.transport.http.HTTPSender sendViaPost

    INFO: Unable to sendViaPost to url[https://pilot-userservices-auth.vip.symantec.com/vipuserservices/QueryService_1_3]

    org.apache.axis2.AxisFault: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)

        at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)

        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)

        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)

        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)

        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)

        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)

        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)

        at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)

        at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)

        at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)

        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)

        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)

        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)

        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

        at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

        at com.symantec.vipuserservices.wsclient.QueryServiceStub.getServerTime(QueryServiceStub.java:230)

        at com.m2.vip.client.VipUserServicesQueryClient.main(VipUserServicesQueryClient.java:36)

    Caused by: javax.xml.stream.XMLStreamException: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

        at com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:378)

        at org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)

        at org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:222)

        at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:192)

        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)

        ... 18 more

    Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

        at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1496)

        at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1508)

        at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:70)

        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)

        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)

        at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)

        at com.sun.xml.internal.stream.writers.UTF8OutputStreamWriter.flush(UTF8OutputStreamWriter.java:138)

        at com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:376)

        ... 22 more

     

     

    Thank you