cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathieu Chauvin (JIRA)" <>
Subject [jira] Commented: (CXF-2223) Proxy authentication failure with SSL tunneling
Date Tue, 26 May 2009 13:55:45 GMT


Mathieu Chauvin commented on CXF-2223:

The problem is still there with the 2.1.5 release.

I started from the very simple wsdl_first sample to show this issue. You will find attached
the cxf.xml configuration that I updated to get the following exception:
     [java] Invoking sayHi...
     [java] Exception in thread "Main Thread" Could
not send Message.
     [java] 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
     [java] 	at $Proxy41.sayHi(Unknown Source)
     [java] 	at demo.hw.client.Client.main(
     [java] Caused by: org.apache.cxf.interceptor.Fault: Could not send Message.
     [java] 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
     [java] 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
     [java] 	at org.apache.cxf.endpoint.ClientImpl.invoke(
     [java] 	at org.apache.cxf.endpoint.ClientImpl.invoke(
     [java] 	at org.apache.cxf.endpoint.ClientImpl.invoke(
     [java] 	at org.apache.cxf.frontend.ClientProxy.invokeSync(
     [java] 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
     [java] 	... 2 more
     [java] Caused by: Unable to tunnel through proxy. Proxy returns
"HTTP/1.0 407 Proxy Authentication Required"
     [java] 	at
     [java] 	at
     [java] 	at
     [java] 	at
     [java] 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(
     [java] 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(
     [java] 	at
     [java] 	at
     [java] 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
     [java] 	at org.apache.cxf.transport.AbstractConduit.close(
     [java] 	at org.apache.cxf.transport.http.HTTPConduit.close(
     [java] 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
     [java] 	... 8 more
     [java] Java Result: 1

As the proxy fails client authentication, it is not even necessary to deploy the target server
with an SSL listener. That's the reason why I started from the basic sample instead of the
https one.
The wsdl_first client works fine with this configuration (assuming the proxy configuration
is correct of course) using http, but setting the protocol to 'https' within the wsdl leads
to this issue.

Let me know if any additional information is required.


> Proxy authentication failure with SSL tunneling
> -----------------------------------------------
>                 Key: CXF-2223
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.1.2
>            Reporter: Mathieu Chauvin
> We are facing the very same issue as the one described at the following URL:
> Https transport appears not to send proxy-authorization within the CONNECT operation
as it should.
> Olivier Billard's workaround works just fine but requires java programming, and makes
it impossible to configure proxy related properties in a simple manner.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message