[jboss-jira] [JBoss JIRA] (WFLY-5684) Injection of ArquillianResource URL fails in Wildfly 10 CR4
John Ament (JIRA)
issues at jboss.org
Sun Nov 15 21:30:00 EST 2015
[ https://issues.jboss.org/browse/WFLY-5684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129050#comment-13129050 ]
John Ament commented on WFLY-5684:
----------------------------------
Turning on IP v4 preferred mode made the issue a bit clearer to understand. The populated HTTPContext from Wildfly 10 is using the jboss.bind.address blindly. It seems that in 9, the value was being set to 127.0.0.1.
To explain my setup a bit better, I'm using vagrant to run my app. I deploy from my local to a running server. My local will see the server running on 127.0.0.1 however the host sees its local IP, typically 10.0.2.15. binding to 0.0.0.0 has typically worked, but now that is being substituted as the hostname. That obviously doesn't work as 0.0.0.0 isn't a valid addressable IP.
> Injection of ArquillianResource URL fails in Wildfly 10 CR4
> -----------------------------------------------------------
>
> Key: WFLY-5684
> URL: https://issues.jboss.org/browse/WFLY-5684
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 10.0.0.CR4
> Reporter: John Ament
> Assignee: Jason Greene
>
> I recently added injection of an ArquillianResource URL to a test. I also just tried upgrading from WF9 to WF10.CR4. In CR4, it seems that this injection is working a bit weird.
> My injection is very simple
> {code}
> @ArquillianResource
> private URL url;
> {code}
> However, I see this output when running (note that my HTTP listener is on 8082)
> {code}
> 11:37:40,922 INFO [org.apache.http.impl.client.DefaultHttpClient] (default task-46) I/O exception (java.net.SocketException) caught when connecting to {}->http://[::]:8082: Network is unreachable
> 11:37:40,922 INFO [org.apache.http.impl.client.DefaultHttpClient] (default task-46) Retrying connect to {}->http://[::]:8082
> 11:37:47,069 INFO [org.apache.http.impl.client.DefaultHttpClient] (default task-46) I/O exception (java.net.SocketException) caught when connecting to {}->http://[::]:8082: Network is unreachable
> 11:37:47,069 INFO [org.apache.http.impl.client.DefaultHttpClient] (default task-46) Retrying connect to {}->http://[::]:8082 11:37:54,163 INFO [org.apache.http.impl.client.DefaultHttpClient] (default task-46) I/O exception (java.net.SocketException) caught when connecting to {}->http://[::]:8082: Network is unreachable
> 11:37:54,163 INFO [org.apache.http.impl.client.DefaultHttpClient] (default task-46) Retrying connect to {}->http://[::]:8082
> {code}
> It would appear that the host portion of the URL is being lost.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list