[ https://issues.apache.org/jira/browse/CXF-6975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15391725#comment-15391725 ]
Evgeny Mironenko commented on CXF-6975: --------------------------------------- I wrote a simple unit test with a minimal configuration and found that this problem occurs only in runtime. By the some reason the behavior and trace are different: Stacktrace in unit test. {code} org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139) {code} > Logging interceptor doesn't log request payload in case of Connection refused > ----------------------------------------------------------------------------- > > Key: CXF-6975 > URL: https://issues.apache.org/jira/browse/CXF-6975 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 3.1.3, 3.1.6 > Environment: Java 7, Jboss EAP 6.2 > Reporter: Evgeny Mironenko > > When you send a request to some nonexistent endpoint you get > {{java.net.ConnectException: Connection refused: connect}}, but request was > not logged since {{LoggingOutInterceptor#formatLoggingMessage}} has not been > invoked. > Stacktrace: > {code} > org.apache.cxf.interceptor.Fault: Connection refused: connect > at > org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:109) > at > org.apache.cxf.wsdl.interceptors.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68) > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) > at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277) > at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) > at > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)