cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5801) Dynamic client invoke throws UnresolvedAddressException when proxied
Date Thu, 12 Jun 2014 15:50:02 GMT

    [ https://issues.apache.org/jira/browse/CXF-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14029285#comment-14029285
] 

Daniel Kulp commented on CXF-5801:
----------------------------------

Workaround for now:  remove the cxf-rt-transports-netty* stuff from lib

> 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
>            Priority: Minor
>              Labels: dynamic
>
> 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)

Mime
View raw message