cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milan Farkas (JIRA)" <>
Subject [jira] [Created] (CXF-4879) Error when http.proxy* system properties are empty
Date Wed, 06 Mar 2013 15:20:13 GMT
Milan Farkas created CXF-4879:

             Summary: Error when http.proxy* system properties are empty
                 Key: CXF-4879
             Project: CXF
          Issue Type: Bug
          Components: Configuration, JAX-WS Runtime
    Affects Versions: 2.7.3
            Reporter: Milan Farkas


we have an Apache CXF client configured using Spring. In the production environment the following
system properties exist and the are both empty:

This causes the following exception:
{code}java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(
	at java.lang.Integer.parseInt(
	at java.lang.Integer.valueOf(
	at org.apache.cxf.transport.http.ProxyFactory.createSystemProxyConfiguration(
	at org.apache.cxf.transport.http.ProxyFactory.<init>(
	at org.apache.cxf.transport.http.HTTPConduit.<init>(
	at org.apache.cxf.transport.http.URLConnectionHTTPConduit.<init>(
	at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(
	at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(
	at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(
	at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(
	at org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(
	at org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(
	at org.apache.cxf.endpoint.ClientImpl.doInvoke(
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.frontend.ClientProxy.invokeSync(
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
	... 57 more

I think around line 66 should handle empty string for proxyHost the same
way as NULL.
{code}String proxyHost = SystemPropertyAction.getPropertyOrNull(HTTP_PROXY_HOST);
if (proxyHost != null) {
            // System is configured with a proxy, use it

Furthermore, it seems that even using http:conduit in our Spring config, it's not possible
to override the system properties for a jaxws:client. The following block works only if the
http.proxyHost system properties are not defined:
{code} <http:conduit name="*.http-conduit">

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:

View raw message