server response with java.net.SocketException: Connection reset

963 views
Skip to first unread message

גרישה שוייכט

unread,
Jun 4, 2014, 3:44:35 PM6/4/14
to adwor...@googlegroups.com, adwordsa...@google.com
hello,

In some reason google server response with java.net.SocketException: Connection reset

Please advice log was attached 

Thanks 


{KeyWord:יפעת פרג אשטה כרטיסים}
בתאריך 06/07, כרטיסים ב- 100 ₪.
תזמינו כרטיסים עכשיו !

2014-06-04 15:57:23 TextAdUpdate [INFO] Sleep : 10000
2014-06-04 15:57:34 requestInfoLogger [INFO] Request made: Service: "AdGroupAdServiceInterfacePort" Method: "mutate" URL: "https://adwords.google.com/api/adwords/cm/v201309/AdGroupAdService"
2014-06-04 15:57:34 soapXmlLogger [INFO] SOAP Request:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201309" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>398-500-3202</ns1:clientCustomerId>
            <ns1:developerToken>zzzzzzzzzzzzzzzzzz</ns1:developerToken>
            <ns1:userAgent>Cupat Bravo (AwApi-Java, AdWords-Axis/1.20.0, Common-Java/1.20.0, Axis/1.4, Java/1.7.0_21, maven)</ns1:userAgent>
            <ns1:validateOnly>fal
se</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <operator>REMOVE</operator>
                <operand>
                    <adGroupId>14024501183</adGroupId>
                    <ad>
                        <id>41948062343</id>
                    </ad>
                    <status>DISABLED</status>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

2014-06-04 15:57:34 soapXmlLogger [INFO] SOAP Response:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201309">
            <requestId>0004fb022cc76cc00ae539880c001d99</requestId>
            <serviceName>AdGroupAdService</serviceName>
            <methodName>mutate</methodName>
            <operations>0</operations>
            <responseTime>226</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201309">
            <rval>
                <ListReturnValue.Type>AdGroupAdReturnValue</ListReturnValue.Type>
                <value>
                    <adGroupId>14024501183</adGroupId>
                    <ad xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TextAd">
                        <id>41948062343</id>
                        <url>http://bravo.ticketsnow.co.il/announce/20538</url>
                        <displayUrl>bravo.ticketsnow.co.il/כרטיסים</displayUrl>
                        <Ad.Type>TextAd</Ad.Type>
                        <headline>{KeyWord:יפעת פרג אשטה כרטיסים}</headline>
                        <description1>בתאריך 06/07, כרטיסים ב- 100 ₪.</description1>
                        <description2>פשוט ובטוח להזמין כרטיסים !</description2>
                    </ad>
                    <status>DISABLED</status>
                    <approvalStatus>FAMILY_SAFE</approvalStatus>
                </value>
            </rval>
        </mutateResponse>
    </soap:Body>
</soap:Envelope>

2014-06-04 15:57:34 TextAdUpdate [INFO] Sleep : 10000
2014-06-04 15:57:45 requestInfoLogger [INFO] Request made: Service: "AdGroupAdServiceInterfacePort" Method: "mutate" URL: "https://adwords.google.com/api/adwords/cm/v201309/AdGroupAdService"
2014-06-04 15:57:45 soapXmlLogger [WARN] SOAP Request:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201309" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>398-500-3202</ns1:clientCustomerId>
            <ns1:developerToken>xxxxxxxxxxxxxxxxxxx</ns1:developerToken>
            <ns1:userAgent>Cupat Bravo (AwApi-Java, AdWords-Axis/1.20.0, Common-Java/1.20.0, Axis/1.4, Java/1.7.0_21, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <adGroupId>14024501183</adGroupId>
                    <ad xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201309" xsi:type="ns2:TextAd">
                        <ns2:id>41948062343</ns2:id>
                        <ns2:url>http://bravo.ticketsnow.co.il/announce/20538</ns2:url>
                        <ns2:displayUrl>bravo.ticketsnow.co.il/כרטיסים</ns2:displayUrl>
                        <ns2:headline>{KeyWord:יפעת פרג אשטה כרטיסים}</ns2:headline>
                        <ns2:description1>בתאריך 06/07, כרטיסים ב- 100 ₪.</ns2:description1>
                        <ns2:description2>תזמינו כרטיסים עכשיו !</ns2:description2>
                    </ad>
                    <status>ENABLED</status>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

2014-06-04 15:57:45 soapXmlLogger [WARN] SOAP Response:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>soapenv:Server.userException</faultcode>
            <faultstring>java.net.SocketException: Connection reset</faultstring>
            <detail>
                <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
at sun.security.ssl.InputRecord.read(InputRecord.java:480)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.google.api.ads.adwords.axis.v201309.cm.AdGroupAdServiceSoapBindingStub.mutate(AdGroupAdServiceSoapBindingStub.java:1185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.api.ads.common.lib.soap.SoapClientHandler.invoke(SoapClientHandler.java:109)
at com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(AxisHandler.java:175)
at com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(SoapServiceClient.java:64)
at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:93)
at com.sun.proxy.$Proxy33.mutate(Unknown Source)
at gapi.adwords.AdWordsAPIServicesImpl.addTextAd(AdWordsAPIServicesImpl.java:1044)
at mngb.management.TextAdUpdate.update(TextAdUpdate.java:91)
at main.RunTextAdUpdate.main(RunTextAdUpdate.java:57)
</ns1:stackTrace>
                <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">gspc01</ns2:hostname>
            </detail>
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>

2014-06-04 15:57:45 TextAdUpdate [ERROR] Ad group id : 14024501183 and name : 20538
2014-06-04 15:57:45 TextAdUpdate [ERROR] gapi.adwords.AdWordsAPIServicesException: java.net.SocketException: Connection reset
2014-06-04 15:57:45 TextAdUpdate [INFO] Sleep : 35000

Josh Radcliff (AdWords API Team)

unread,
Jun 5, 2014, 11:20:09 AM6/5/14
to adwor...@googlegroups.com, adwordsa...@google.com
Hi,

Connection reset errors can be caused by a variety of issues. Without tracing the connections with a tool (e.g., WireShark) it's difficult to know where in the network path this is occurring.

In general, it's best to design your application to tolerate transient issues like this. Please refer to our Best Practices Guide for more details.

Cheers,
Josh, AdWords API Team

Peter Kingswell

unread,
Jul 16, 2014, 12:38:56 PM7/16/14
to adwor...@googlegroups.com, adwordsa...@google.com, Peter Kingswell
Hi Josh,

we're getting this exception stack very frequently, unfortunately on an AWS production server but not our dev machines.  This makes debugging / analysis difficult.  Is there anything that can be done from the AdWords side?  I can supply accounts and credentials as required.

This is high priority for us since it's affecting business.

Peter
Message has been deleted

Peter Kingswell

unread,
Jul 16, 2014, 1:06:29 PM7/16/14
to adwor...@googlegroups.com, adwordsa...@google.com, pe...@pricingengine.com
Hi Josh,

after a bit more analysis, it's always occurring on get operations on the AdGroupCriterionService and CampaignService (e.g. com.google.api.ads.adwords.axis.v201402.cm.CampaignServiceSoapBindingStub.get is the client side call).  Not sure if this helps.

Peter

Josh Radcliff (AdWords API Team)

unread,
Jul 16, 2014, 2:23:35 PM7/16/14
to adwor...@googlegroups.com, adwordsa...@google.com, pe...@pricingengine.com
Hi Peter,

I checked our logs and a successful response is being returned for those requests, which suggests this could be an issue with your production servers. Is there anyone at AWS that can provide more information about where the connection is being reset? The fact that this happens on your production servers but not in dev strongly suggests that the issue lies somewhere in the network or firewall configuration of the production servers.

Thanks,
Josh, AdWords API Team

Peter Kingswell

unread,
Jul 16, 2014, 2:51:00 PM7/16/14
to adwor...@googlegroups.com, adwordsa...@google.com, pe...@pricingengine.com
thanks for checking Josh, most appreciated.  I've been in contact with AWS and have already switched to a new instance - evidently to no avail.  It's strange how it's only certain AdWords requests that are failing (and sometimes calls to smtp.gmail.com).  However I suspect machine config/network/firewall type stuff too.

I'll post here with the cause if/when I find it.
Reply all
Reply to author
Forward
0 new messages