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

Daniel Kulp resolved CXF-5801.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.1
         Assignee: Daniel Kulp

> Dynamic client invoke throws UnresolvedAddressException when proxied
> --------------------------------------------------------------------
>
>                 Key: CXF-5801
>                 URL: https://issues.apache.org/jira/browse/CXF-5801
>             Project: CXF
>          Issue Type: Bug
>          Components: Simple Frontend
>    Affects Versions: 3.0.1
>         Environment: Eclipse with JDK 1.7.0u60, behind a proxy.
>            Reporter: Brian Babcock
>            Assignee: Daniel Kulp
>            Priority: Minor
>              Labels: dynamic
>             Fix For: 3.0.1
>
>
> When using the dynamic clients feature to test with a simple web service 
> (http://www.webservicex.net/globalweather.asmx?WSDL), I get an 
> UnresolvedAddressException.  Trace:
> {quote}WARNING: Interceptor for 
> \{http://www.webserviceX.NET}GlobalWeather#\{http://www.webserviceX.NET}GetWeather
>  has thrown exception, unwinding now
> java.nio.channels.UnresolvedAddressException
>       at sun.nio.ch.Net.checkAddress(Net.java:127)
>       at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:644)
>       at 
> io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:192)
> //...Many more io.netty classes...//
> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
>       at java.lang.Thread.run(Thread.java:745){quote}
> It can be reproduced with very simple code:
> {quote}
> JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
> Client client = 
> dcf.createClient("http://www.webservicex.net/globalweather.asmx?WSDL";);
>               Object[] ret = client.invoke("GetWeather", "Ontario", "");
> {quote}
> If I run that same code on 3.0.0 I get the exception "Port out of range:-1", 
> but that was apparently resolved here: 
> https://issues.apache.org/jira/browse/CXF-5781
> Oddly, the error only happens when I am behind our local corporate proxy 
> (with http.proxyHost etc. JVM system properties set).  I would have dismissed 
> this as a proxy issue but on CXF 2.7.11 I am able to connect to the web 
> service as expected from behind the same proxy.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to