[jboss-jira] [JBoss JIRA] (WFLY-5684) Injection of ArquillianResource URL fails in Wildfly 10 CR4

John Ament (JIRA) issues at jboss.org
Wed Nov 18 11:13:00 EST 2015


    [ https://issues.jboss.org/browse/WFLY-5684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130371#comment-13130371 ] 

John Ament commented on WFLY-5684:
----------------------------------

when i bind to 127.0.0.1, the output is

{code}
{
    "outcome" => "success",
    "result" => {
        "default-interface" => "public",
        "name" => "standard-sockets",
        "port-offset" => expression "${jboss.socket.binding.port-offset:0}",
        "local-destination-outbound-socket-binding" => undefined,
        "remote-destination-outbound-socket-binding" => {"mail-smtp" => {
            "fixed-source-port" => false,
            "host" => "localhost",
            "port" => 25,
            "source-interface" => undefined,
            "source-port" => undefined
        }},
        "socket-binding" => {
            "management-http" => {
                "bound" => true,
                "bound-address" => "127.0.0.1",
                "bound-port" => 9990,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => "management",
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "management-http",
                "port" => expression "${jboss.management.http.port:9990}"
            },
            "management-https" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => "management",
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "management-https",
                "port" => expression "${jboss.management.https.port:9993}"
            },
            "ajp" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "ajp",
                "port" => expression "${jboss.ajp.port:8009}"
            },
            "http" => {
                "bound" => true,
                "bound-address" => "127.0.0.1",
                "bound-port" => 8080,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "http",
                "port" => expression "${jboss.http.port:8080}"
            },
            "https" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "https",
                "port" => expression "${jboss.https.port:8443}"
            },
            "txn-recovery-environment" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "txn-recovery-environment",
                "port" => 4712
            },
            "txn-status-manager" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "txn-status-manager",
                "port" => 4713
            }
        }
    }
}
{code}

When I bind to 0.0.0.0, the output is

{code}
{
    "outcome" => "success",
    "result" => {
        "default-interface" => "public",
        "name" => "standard-sockets",
        "port-offset" => expression "${jboss.socket.binding.port-offset:0}",
        "local-destination-outbound-socket-binding" => undefined,
        "remote-destination-outbound-socket-binding" => {"mail-smtp" => {
            "fixed-source-port" => false,
            "host" => "localhost",
            "port" => 25,
            "source-interface" => undefined,
            "source-port" => undefined
        }},
        "socket-binding" => {
            "management-http" => {
                "bound" => true,
                "bound-address" => "127.0.0.1",
                "bound-port" => 9990,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => "management",
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "management-http",
                "port" => expression "${jboss.management.http.port:9990}"
            },
            "management-https" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => "management",
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "management-https",
                "port" => expression "${jboss.management.https.port:9993}"
            },
            "ajp" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "ajp",
                "port" => expression "${jboss.ajp.port:8009}"
            },
            "http" => {
                "bound" => true,
                "bound-address" => "0.0.0.0",
                "bound-port" => 8080,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "http",
                "port" => expression "${jboss.http.port:8080}"
            },
            "https" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "https",
                "port" => expression "${jboss.https.port:8443}"
            },
            "txn-recovery-environment" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "txn-recovery-environment",
                "port" => 4712
            },
            "txn-status-manager" => {
                "bound" => false,
                "bound-address" => undefined,
                "bound-port" => undefined,
                "client-mappings" => undefined,
                "fixed-port" => false,
                "interface" => undefined,
                "multicast-address" => undefined,
                "multicast-port" => undefined,
                "name" => "txn-status-manager",
                "port" => 4713
            }
        }
    }
}
{code}

> 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