Http-соединение закрыто после ошибки «завершение потока» с сервера - PullRequest
0 голосов
/ 17 мая 2019

У нас есть служба, которая отправляет запрос через мыльный вызов на веб-сервер, иногда на стороне клиента мы получаем сообщение об ошибке завершения потока и http-соединение apache закрывается.подтверждается, что сервер получил запрос, а клиент получил эту ошибку

Мы используем http-клиент версии 4.5.2 и PoolingHttpClientConnectionManager для создания и управления пулами соединений.

Я хотел бы знать, чтоточно вызывает «ошибку конца потока», похоже, что по какой-то причине соединение tcp закрывается, происходит ли это потому, что сервер отправляет 204 без содержимого?или по какой-либо другой причине?

Line 6837: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
Line 6838: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
Line 6839: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {s}->https://ccs-nuance-ob.pdc.swacorp.com:443][total kept alive: 4; route allocated: 4 of 21; total allocated: 4 of 21]
Line 6840: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 20961][route: {s}->https://ccs-nuance-ob.pdc.swacorp.com:443][total kept alive: 3; route allocated: 4 of 21; total allocated: 4 of 21]
Line 6841: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-20961: set socket timeout to 15000
Line 6842: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.execchain.MainClientExec - Executing request POST /copperhead/soapservice/v4 HTTP/1.1
Line 6843: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
Line 6844: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
Line 6845: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.headers - http-outgoing-20961 >> POST /copperhead/soapservice/v4 HTTP/1.1
Line 6846: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.headers - http-outgoing-20961 >> Accept-Encoding: gzip
Line 6847: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.headers - http-outgoing-20961 >> Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Line 6848: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.headers - http-outgoing-20961 >> SOAPAction: ""
Line 6849: 2018-01-24 15:41:02,293 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.headers - http-outgoing-20961 >> Content-Type: text/xml; charset=utf-8
Line 6850: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.headers - http-outgoing-20961 >> Content-Length: 3036
Line 6851: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.headers - http-outgoing-20961 >> Host: ccs-nuance-ob.pdc.swacorp.com
Line 6852: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.headers - http-outgoing-20961 >> Connection: Keep-Alive
Line 6853: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.headers - http-outgoing-20961 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.7.0_79)
Line 6854: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "POST /copperhead/soapservice/v4 HTTP/1.1[\r][\n]"
Line 6855: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "Accept-Encoding: gzip[\r][\n]"
Line 6856: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2[\r][\n]"
Line 6857: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "SOAPAction: ""[\r][\n]"
Line 6858: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "Content-Type: text/xml; charset=utf-8[\r][\n]"
Line 6859: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "Content-Length: 3036[\r][\n]"
Line 6860: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "Host: ccs-nuance-ob.pdc.swacorp.com[\r][\n]"
Line 6861: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "Connection: Keep-Alive[\r][\n]"
Line 6862: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.7.0_79)[\r][\n]"
Line 6863: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "[\r][\n]"
Line 6864: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v4="http://varolii.com/copperhead/ws/v4"><SOAP-ENV:Header/><SOAP-ENV:Body><v4:sendEvent>[\n]"
Line 6865: 2018-01-24 15:41:02,294 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "  <sendEventRequest>[\n]"

Line 6970: 2018-01-24 15:41:02,295 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 >> "</v4:sendEvent></SOAP-ENV:Body></SOAP-ENV:Envelope>"
    Line 7462: 2018-01-24 15:41:02,301 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.wire - http-outgoing-20961 << "end of stream"
    Line 7463: 2018-01-24 15:41:02,301 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-20961: Close connection
    Line 7464: 2018-01-24 15:41:02,301 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-20961: Shutdown connection
    Line 7465: 2018-01-24 15:41:02,301 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.execchain.MainClientExec - Connection discarded
    Line 7466: 2018-01-24 15:41:02,301 DEBUG [secondary-36] {{msgId,ID:PRODDC2-EMS17105.32735A2A83BD1:16AAF9940}} org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 20961][route: {s}->https://ccs-nuance-ob.pdc.swacorp.com:443][total kept alive: 3; route allocated: 3 of 21; total allocated: 3 of 21]

Как мне устранить эту ошибку, если она на стороне сервера, каковы решения этой проблемы

...