Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5801

Dynamic client invoke throws UnresolvedAddressException when proxied

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.1
    • 3.0.1
    • Simple Frontend
    • Eclipse with JDK 1.7.0u60, behind a proxy.

    • Unknown

    Description

      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:

      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)

      It can be reproduced with very simple code:

      JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
      Client client = dcf.createClient("http://www.webservicex.net/globalweather.asmx?WSDL");
      Object[] ret = client.invoke("GetWeather", "Ontario", "");

      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.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            bcb9153 Brian Babcock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: