You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Brian Babcock (JIRA)" <ji...@apache.org> on 2014/06/12 17:30:02 UTC

[jira] [Created] (CXF-5801) Dynamic client invoke throws UnresolvedAddressException

Brian Babcock created CXF-5801:
----------------------------------

             Summary: Dynamic client invoke throws UnresolvedAddressException
                 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
            Priority: Minor


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)