cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Jones (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-4835) HTTP Conduit Proxy server configuation not getting picked up under CXF 2.7.3
Date Tue, 19 Feb 2013 00:23:12 GMT

     [ https://issues.apache.org/jira/browse/CXF-4835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bruce Jones updated CXF-4835:
-----------------------------

    Description: 
When upgrading from CXF 2.1.5 to CXF 2.7.3 it appears the HTTP conduits proxy server defined
in cxf.xml are no longer used in certain scenarios. 

I went through all the migration guides and found no mention of this change. The cxf.xml is
below:

{code:title=cxf.xml}
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
       xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
           http://cxf.apache.org/schemas/configuration/http-conf.xsd
           http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans.xsd">

	<http-conf:conduit name="*.http-conduit">
        <http-conf:client AllowChunking="false" ProxyServer="localhost" ProxyServerPort="8888"
/>
    </http-conf:conduit>
</beans>
{code}

NOTE: I have no proxy server running on that port. Whatever I put in there makes no difference.

This is a publiclly accessable WSDL file available at:
https://qa4.paymentexpress.com/WS/PXWS.asmx?wsdl

Exception:

{code}
Caused by: java.net.UnknownHostException: qa4.paymentexpress.com
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
        at java.net.Socket.connect(Socket.java:579)
        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:270)
        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:327)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1090)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
        at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setupWrappedStream(URLConnectionHTTPConduit.java:170)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1282)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1233)
        at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:183)
        at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)
        at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1295)
{code}






  was:
When upgrading from CXF 2.1.5 to CXF 2.7.3 it appears the HTTP conduits proxy server defined
in cxf.xml are no longer used in certain scenarios. 

I went through all the migration guides and found no mention of this change. The cxf.xml is
below:

{code:title=cxf.xml}
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
       xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
           http://cxf.apache.org/schemas/configuration/http-conf.xsd
           http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans.xsd">

	<http-conf:conduit name="*.http-conduit">
        <http-conf:client AllowChunking="false" ProxyServer="localhost" ProxyServerPort="8888"
/>
    </http-conf:conduit>
</beans>
{code}

This is a publiclly accessable WSDL file available at:
https://qa4.paymentexpress.com/WS/PXWS.asmx?wsdl


    
> HTTP Conduit Proxy server configuation not getting picked up under CXF 2.7.3
> ----------------------------------------------------------------------------
>
>                 Key: CXF-4835
>                 URL: https://issues.apache.org/jira/browse/CXF-4835
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.6.6, 2.7.3
>         Environment: Windows XP SP3
> Java 7u11
>            Reporter: Bruce Jones
>
> When upgrading from CXF 2.1.5 to CXF 2.7.3 it appears the HTTP conduits proxy server
defined in cxf.xml are no longer used in certain scenarios. 
> I went through all the migration guides and found no mention of this change. The cxf.xml
is below:
> {code:title=cxf.xml}
> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
>        xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
>            http://cxf.apache.org/schemas/configuration/http-conf.xsd
>            http://www.springframework.org/schema/beans
>            http://www.springframework.org/schema/beans/spring-beans.xsd">
> 	<http-conf:conduit name="*.http-conduit">
>         <http-conf:client AllowChunking="false" ProxyServer="localhost" ProxyServerPort="8888"
/>
>     </http-conf:conduit>
> </beans>
> {code}
> NOTE: I have no proxy server running on that port. Whatever I put in there makes no difference.
> This is a publiclly accessable WSDL file available at:
> https://qa4.paymentexpress.com/WS/PXWS.asmx?wsdl
> Exception:
> {code}
> Caused by: java.net.UnknownHostException: qa4.paymentexpress.com
>         at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
>         at java.net.Socket.connect(Socket.java:579)
>         at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
>         at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:270)
>         at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:327)
>         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
>         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
>         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
>         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1090)
>         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
>         at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setupWrappedStream(URLConnectionHTTPConduit.java:170)
>         at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1282)
>         at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1233)
>         at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:183)
>         at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)
>         at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
>         at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1295)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message