Forum Discussion

annugoyal's avatar
annugoyal
New Contributor
8 years ago

Getting error as "ERROR:java.net.SocketException: Connection reset"

After executing SOAP UI Request, getting error as ERROR:java.net.SocketException: Connection reset.

Please help me how to resolve this issue.

Getting below error in the Error Log:

Fri Aug 04 13:52:28 IST 2017:ERROR:java.net.SocketException: Connection reset
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.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)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)
at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:151)
at org.apache.http.impl.conn.LoggingSessionOutputBuffer.write(LoggingSessionOutputBuffer.java:74)
at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:114)
at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:120)
at org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:68)
at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96)
at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:120)
at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:263)
at org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:227)
at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:255)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doSendRequest(HttpClientSupport.java:113)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:247)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:362)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:324)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:237)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

  •  

     


    WINDOWS

    Option 1:

     

    find the following file on your computer (make sure you have write access to the file): C:\Program Files\SmartBear\SoapUI-5.2.1\bin\SoapUI-5.2.1.vmoptions
    Add the following line to the file:
    -Dsoapui.https.protocols="SSLv3,TLSv1.2"

    Run SoapUI with the .exe file (SoapUI-5.2.1.exe)


    Option 2: (if option 1 does not work for you).

     

    Edit the following batch file on your computer (make sure you have write access to the file): C:\Program Files\SmartBear\SoapUI-5.2.1\bin\soapui.bat
    Add the following line to the file (after: if "%SOAPUI_HOME%" == "" goto START):
    set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.https.protocols="SSLv3,TLSv1.2"

    Run SoapUI with the batch file (soapui.bat)


    MAC (OSX)

    The default install location for Mac is in the root Applications folder, and the vmoptions.txt file is in there. Right-click the SOAPUI .app file (in the /Applications folder), and choose "Show Package Contents" to get to the internal files.

    /Applications/SoapUI-X.X.X.app/Contents/vmoptions.txt
    Add the following line to the vmoptions.txt file:

    -Dsoapui.https.protocols=TLSv1.2


    LINUX

    Edit: bin/SoapUI-5.3.0.vmoptions in SoapUI directory
    Add the following line to the file:
    -Dsoapui.https.protocols=TLSv1.2

    I hope it helps.

    • annugoyal's avatar
      annugoyal
      New Contributor

      I have done provided setting "-Dsoapui.https.protocols=SSLv3,TLSv1.2" and now after executing request , I am getting below error in Response:

      "Unable to unmarshal the XML request."

       

      Response:

      <ns32:PRCreatPmtSvcRsp xmlns="mtvnPRUpdtPmtMethdReqData" xmlns:ns2="mtvnPRUpdtPmtReqData" xmlns:ns60="mtvnPRRtrvCustPrflReqData" xmlns:ns4="mtvnPRRtrvPmtsResData" xmlns:ns3="mtvnPRCreatPmtReqData" xmlns:ns6="FISPRRtrvPmtsSvcRsp" xmlns:ns53="FISPRUpdtAcctAssnSvcRsp" xmlns:ns5="ApplMsgLst" xmlns:ns52="mtvnPRUpdtAcctAssnResData" xmlns:ns8="FISPRRtrvPmtMethdsSvcRsp" xmlns:ns51="FISPRRtrvAcctAssnSvcRsp" xmlns:ns7="mtvnPRRtrvPmtMethdsResData" xmlns:ns50="mtvnPRRtrvAcctAssnResData" xmlns:ns57="FisCommonRspHdr" xmlns:ns9="mtvnPRRtrvPmtMethdDtlsResData" xmlns:ns56="mtvnPREnrlCustReqData" xmlns:ns55="mtvnPRSettlCCAuthReqData" xmlns:ns54="mtvnPRSettlCCAuthResData" xmlns:ns59="FisCommonRqstHdr" xmlns:ns58="FISServPrmtrsLst" xmlns:ns42="mtvnPRRtrvBillDtlsResData" xmlns:ns41="FISPRRtrvMoBillUserDataSvcRsp" xmlns:ns40="mtvnPRRtrvMoBillUserDataResData" xmlns:ns46="FISPRCreatAutoPmtRulSvcRsp" xmlns:ns45="mtvnPRCreatAutoPmtRulResData" xmlns:ns44="FISPRUpdtPmtSvcRsp" xmlns:ns43="FISPRRtrvBillDtlsSvcRsp" xmlns:ns49="FISPRRtrvAutoPmtRulsLstSvcRsp" xmlns:ns48="FISPRDelAutoPmtRulSvcRsp" xmlns:ns47="mtvnPRDelAutoPmtRulResData" xmlns:ns82="mtvnPRDelAutoPmtRulReqData" xmlns:ns103="FISPRUpdtPmtSvcRqst" xmlns:ns81="FISPRUpdtAcctAssnSvcRqst" xmlns:ns102="FISPRCreatPmtSvcRqst" xmlns:ns80="mtvnPRUpdtAcctAssnReqData" xmlns:ns101="FISPRRtrvBillsSvcRqst" xmlns:ns100="mtvnPRRtrvBillsReqData" xmlns:ns75="FISPRRtrvAuthtnTxtSvcReq" xmlns:ns107="mtvnPRDelAuthReqData" xmlns:ns74="mtvnPRRtrvAuthtnTxtReqData" xmlns:ns106="FISPREnrlCustSvcRqst" xmlns:ns73="FISPRCreatCCAuthSvcRqst" xmlns:ns105="FISPRDelAuthSvcRsp" xmlns:ns72="FISPRRtrvAutoPmtRulsLstSvcRqst" xmlns:ns104="mtvnPRDelAuthResData" xmlns:ns79="FISPRDelPmtMethdSvcRqst" xmlns:ns78="mtvnPRDelPmtMethdReqData" xmlns:ns77="FISPRRtrvPmtMethdsSvcRqst" xmlns:ns76="mtvnPRRtrvPmtMethdsReqData" xmlns:ns108="FISPRDelAuthSvcRqst" xmlns:ns71="mtvnPRRtrvAutoPmtRulsLstReqData" xmlns:ns70="FISPRUpdtPmtMethdSvcRqst" xmlns:ns64="FISPRCreatCCAuthSvcRsp" xmlns:ns63="mtvnPRCreatCCAuthResData" xmlns:ns62="FISPRCreatAutoPmtRulSvcRqst" xmlns:ns61="FISPRRtrvCustPrflSvcRqst" xmlns:ns68="mtvnPRUpdtCustGrpReqData" xmlns:ns67="FISPRRtrvAcctAssnSvcRqst" xmlns:ns66="mtvnPRRtrvAcctAssnReqData" xmlns:ns65="FISPRSettlCCAuthSvcRsp" xmlns:ns69="FISPRUpdtCustGrpSvcRqst" xmlns:ns97="FISPRRtrvPmtsSvcRqst" xmlns:ns96="mtvnPRRtrvPmtsReqData" xmlns:ns95="FISPRRtrvBillDtlsSvcRqst" xmlns:ns94="mtvnPRRtrvBillDtlsReqData" xmlns:ns13="mtvnPRRtrvPmtDtlsResData" xmlns:ns12="FISPRRtrvCustPrflSvcRsp" xmlns:ns11="mtvnPRRtrvCustPrflResData" xmlns:ns99="FISPRDelPmtSvcRqst" xmlns:ns10="FISPRRtrvPmtMethdDtlsSvcRsp" xmlns:ns98="mtvnPRDelPmtReqData" xmlns:ns17="mtvnPRUpdtCustGrpResData" xmlns:ns16="FISPRUpdtCustPrflSvcRsp" xmlns:ns15="mtvnPRUpdtCustPrflResData" xmlns:ns14="FISPRRtrvPmtDtlsSvcRsp" xmlns:ns19="mtvnPRDelPmtMethdResData" xmlns:ns18="FISPRUpdtCustGrpSvcRsp" xmlns:ns93="FISPRRtrvPmtDtlsSvcRqst" xmlns:ns92="mtvnPRRtrvPmtDtlsReqData" xmlns:ns91="FISPRRtrvPmtMethdDtlsSvcRqst" xmlns:ns90="mtvnPRRtrvPmtMethdDtlsReqData" xmlns:ns86="FISPRRtrvMoBillUserDataSvcRqst" xmlns:ns85="mtvnPRRtrvMoBillUserDataReqData" xmlns:ns84="FISPRCreatPmtMethdSvcRqst" xmlns:ns83="FISPRDelAutoPmtRulSvcRqst" xmlns:ns89="FISPRUpdtCustPrflSvcRqst" xmlns:ns88="mtvnPRUpdtCustPrflReqData" xmlns:ns87="FISPRSettlCCAuthSvcRqst" xmlns:ns31="mtvnPRCreatPmtResData" xmlns:ns30="FISPRDelPmtSvcRsp" xmlns:ns35="mtvnPRRtrvBillsResData" xmlns:ns34="mtvnPRCreatPmtMethdReqData" xmlns:ns33="mtvnPRCreatCCAuthReqData" xmlns:ns32="FISPRCreatPmtSvcRsp" xmlns:ns39="FISPRRtrvBillsSvcRsp" xmlns:ns38="mtvnPRUpdtPmtResData" xmlns:ns37="mtvnPRCreatAutoPmtRulReqData" xmlns:ns36="mtvnPRRtrvAutoPmtRulsLstResData" xmlns:ns20="FISPRDelPmtMethdSvcRsp" xmlns:ns24="FISPRRtrvAuthtnTxtSvcRes" xmlns:ns23="mtvnPRRtrvAuthtnTxtResData" xmlns:ns22="FISPREnrlCustSvcRsp" xmlns:ns21="mtvnPREnrlCustResData" xmlns:ns28="FISPRUpdtPmtMethdSvcRsp" xmlns:ns27="mtvnPRUpdtPmtMethdResData" xmlns:ns26="FISPRCreatPmtMethdSvcRsp" xmlns:ns25="mtvnPRCreatPmtMethdResData" xmlns:ns29="mtvnPRDelPmtResData">
      <ns57:RspHdr>
      <ns57:RspHdrVer>2.0.0</ns57:RspHdrVer>
      <ns57:RtnCde>1</ns57:RtnCde>
      <ns57:Lcl>en-US</ns57:Lcl>
      <ns57:MsgLst>
      <ns57:Msg>
      <ns57:MsgCde>4</ns57:MsgCde>
      <ns57:Txt>Unable to unmarshal the XML request.</ns57:Txt>
      </ns57:Msg>
      </ns57:MsgLst>
      </ns57:RspHdr>
      <ns32:PRCreatPmtResOSO>
      <ns31:PRCreatPmtResData>
      <ns5:ApplMsgLst>
      <ns5:ApplMsg>
      <ns5:ApplMsgApplId>PR</ns5:ApplMsgApplId>
      <ns5:ApplMsgNbr>DISP100E</ns5:ApplMsgNbr>
      <ns5:ApplMsgTxt>An exception occurred unmarshaling the request, javax.xml.bind.UnmarshalException</ns5:ApplMsgTxt>
      <ns5:ApplMsgErrInd>Y</ns5:ApplMsgErrInd>
      </ns5:ApplMsg>
      <ns5:ApplMsg>
      <ns5:ApplMsgApplId>PR</ns5:ApplMsgApplId>
      <ns5:ApplMsgNbr>DISP100E</ns5:ApplMsgNbr>
      <ns5:ApplMsgTxt>cvc-elt.1: Cannot find the declaration of element 'soapenv:Envelope'.</ns5:ApplMsgTxt>
      <ns5:ApplMsgErrInd>Y</ns5:ApplMsgErrInd>
      </ns5:ApplMsg>
      <ns5:ApplMsg>
      <ns5:ApplMsgApplId>PR</ns5:ApplMsgApplId>
      <ns5:ApplMsgNbr>DISP100E</ns5:ApplMsgNbr>
      <ns5:ApplMsgTxt>SAXParseException Invalid XML element is mtv1="mtvnPRCreatPmtReqData"</ns5:ApplMsgTxt>
      <ns5:ApplMsgErrInd>Y</ns5:ApplMsgErrInd>
      </ns5:ApplMsg>
      </ns5:ApplMsgLst>
      </ns31:PRCreatPmtResData>
      </ns32:PRCreatPmtResOSO>
      </ns32:PRCreatPmtSvcRsp>

      • annugoyal's avatar
        annugoyal
        New Contributor

        After adding options 1 and option2, now I am getting below error:

         

        Fri Aug 04 15:36:17 IST 2017:ERROR:javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
        javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
        at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
        at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
        at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:446)
        at org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:499)
        at com.eviware.soapui.impl.wsdl.support.http.SoapUISSLSocketFactory.createLayeredSocket(SoapUISSLSocketFactory.java:273)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:200)
        at org.apache.http.impl.conn.AbstractPoolEntry.layerProtocol(AbstractPoolEntry.java:277)
        at org.apache.http.impl.conn.AbstractPooledConnAdapter.layerProtocol(AbstractPooledConnAdapter.java:142)
        at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:758)
        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:565)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
        at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:247)
        at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:362)
        at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:324)
        at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:237)
        at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:127)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)