Bug 1267243 - Address already in use while adding security-realm to http-interface (Windows 2k12 w/ Oracle JDK8)
Address already in use while adding security-realm to http-interface (Windows...
Status: NEW
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Testsuite (Show other bugs)
6.4.4
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: jboss-set
Petr Kremensky
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-29 08:39 EDT by Petr Kremensky
Modified: 2015-09-29 08:57 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Petr Kremensky 2015-09-29 08:39:45 EDT
Description of problem:
Adding a security-realm to http-interface intermittently fails on Windows 2k12 Oracle JDK 1.8 with 'java.net.BindException: Address already in use'. This is causing failure of
 - org.jboss.as.test.manualmode.security.realms.KerberosHttpInterfaceTestCase
 - org.jboss.as.test.manualmode.security.LdapCacheInSecurityRealmsTestCase

Running these two tests in i=10 loop ( https://url.corp.redhat.com/8abfd8e )
 - both test cases pass
 - both test cases pass
 - both test cases pass
 - fail of KerberosHttpInterfaceTestCase.testNotSuitableKeyTab
 - both test cases pass
 - both test cases pass
 - both test cases pass
 - fail of LdapCacheInSecurityRealmsTestCase.testDelimitersInUsername and KerberosHttpInterfaceTestCase.testRemoveKerberosRealm
 - fail of LdapCacheInSecurityRealmsTestCase.testFailoverAuthn
 - fail of KerberosHttpInterfaceTestCase.testFallBackInWrong3KerberosRealm

Each test fails during write operation: /core-service=management/management-interface=http-interface:write-attribute(name=security-realm,value=$value)

e.g.
<failure message="Failed to execute line '/core-service=management/management-interface=http-interface:write-attribute(name=security-realm,value=FallBackWrong3KerberosRealm)': {
    "outcome" => "failed",
    "failure-description" => {"JBAS014671: Failed services" => {"jboss.serverManagement.controller.management.http" => "org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: Address already in use: bind /10.16.178.22:9990
    Caused by: java.net.BindException: Address already in use: bind"}},
    "rolled-back" => true
}" type="java.lang.AssertionError">java.lang.AssertionError: Failed to execute line '/core-service=management/management-interface=http-interface:write-attribute(name=security-realm,value=FallBackWrong3KerberosRealm)': {
    "outcome" => "failed",
    "failure-description" => {"JBAS014671: Failed services" => {"jboss.serverManagement.controller.management.http" => "org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: Address already in use: bind /10.16.178.22:9990
    Caused by: java.net.BindException: Address already in use: bind"}},
    "rolled-back" => true
}
	at org.junit.Assert.fail(Assert.java:88)
	at org.jboss.as.test.integration.management.util.CLIWrapper.sendLine(CLIWrapper.java:145)
	at org.jboss.as.test.integration.management.util.CLIWrapper.sendLine(CLIWrapper.java:158)
	at org.jboss.as.test.manualmode.security.realms.KerberosHttpInterfaceTestCase.setHttpInterfaceRealm(KerberosHttpInterfaceTestCase.java:510)
	at org.jboss.as.test.manualmode.security.realms.KerberosHttpInterfaceTestCase.testFallBackInWrong3KerberosRealm(KerberosHttpInterfaceTestCase.java:413)
</failure><system-out>11:48:27,422 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS015888: Creating http management service using socket-binding (management-http)
11:48:27,425 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.serverManagement.controller.management.http: org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: Address already in use: bind /10.16.178.22:9990
	at org.jboss.as.server.mgmt.HttpManagementService.start(HttpManagementService.java:227) [jboss-as-server-7.5.4.Final-redhat-3.jar:7.5.4.Final-redhat-3]
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: java.net.BindException: Address already in use: bind
	at sun.nio.ch.Net.bind0(Native Method) [rt.jar:1.8.0_60]
	at sun.nio.ch.Net.bind(Net.java:433) [rt.jar:1.8.0_60]
	at sun.nio.ch.Net.bind(Net.java:425) [rt.jar:1.8.0_60]
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) [rt.jar:1.8.0_60]
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) [rt.jar:1.8.0_60]
	at org.jboss.sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:144)
	at org.jboss.sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:54)
	at org.jboss.sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:38)
	at org.jboss.com.sun.net.httpserver.HttpServer.create(HttpServer.java:147)
	at org.jboss.as.domain.http.server.ManagementHttpServer.create(ManagementHttpServer.java:168)
	at org.jboss.as.server.mgmt.HttpManagementService.start(HttpManagementService.java:193) [jboss-as-server-7.5.4.Final-redhat-3.jar:7.5.4.Final-redhat-3]
	... 5 more

11:48:27,432 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014612: Operation ("write-attribute") failed - address: ([
    ("core-service" => "management"),
    ("management-interface" => "http-interface")
]) - failure description: {"JBAS014671: Failed services" => {"jboss.serverManagement.controller.management.http" => "org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: Address already in use: bind /10.16.178.22:9990
    Caused by: java.net.BindException: Address already in use: bind"}}
11:48:27,433 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS015888: Creating http management service using socket-binding (management-http)
11:48:27,437 INFO  [org.jboss.as.controller] (management-handler-thread - 1) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.serverManagement.controller.management.http

Note You need to log in before you can comment on or make changes to this bug.