[
https://issues.jboss.org/browse/AS7-1737?page=com.atlassian.jira.plugin.s...
]
Brian Stansberry updated AS7-1737:
----------------------------------
Assignee: Kabir Khan (was: Brian Stansberry)
Fix Version/s: 7.1.0.Beta1
IIRC Kabir, you had some thoughts on how you were going to deal with this?
Domain usability: add check for the same name of the host
---------------------------------------------------------
Key: AS7-1737
URL:
https://issues.jboss.org/browse/AS7-1737
Project: Application Server 7
Issue Type: Feature Request
Components: Console, Domain Management
Affects Versions: 7.0.0.Final, 7.0.1.Final
Reporter: Radoslav Husar
Assignee: Kabir Khan
Fix For: 7.1.0.Beta1
Attachments: master.png
If you join in a remote host with the same name as the master (e.g. "master")
it's really hard to see what went wrong. Everything boots OK but its impossible to
manage. The console completely breaks (see screenshot) on the other controller.
The controller should check if it can connect with that name.
Adding error log if anyone is searching for the issue:
{code}
[Host Controller] 14:39:02,093 ERROR [org.jboss.as.controller] (pool-4-thread-3)
Operation ("read-attribute") failed - address: ([
[Host Controller] ("host" => "master"),
[Host Controller] ("server-config" => "undefined")
[Host Controller] ]): java.util.NoSuchElementException: "server-config" =>
"undefined"
[Host Controller] at
org.jboss.as.controller.registry.BasicResource.requireChild(BasicResource.java:95)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.readModel(OperationContextImpl.java:697)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.host.controller.operations.ServerStatusHandler.execute(ServerStatusHandler.java:62)
[jboss-as-host-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$ReadAttributeHandler.doExecute(GlobalOperationHandlers.java:378)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$AbstractMultiTargetHandler.execute(GlobalOperationHandlers.java:828)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.OperationSlaveStepHandler.execute(OperationSlaveStepHandler.java:77)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:85)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:119)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.remote.TransactionalModelControllerOperationHandler$ExecuteRequestHandler$1.run(TransactionalModelControllerOperationHandler.java:111)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_26]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_26]
[Host Controller] at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
[Host Controller]
[Host Controller] 14:39:02,104 ERROR [org.jboss.as.controller] (pool-4-thread-4)
Operation ("read-attribute") failed - address: ([
[Host Controller] ("host" => "master"),
[Host Controller] ("server-config" => "undefined")
[Host Controller] ]): java.util.NoSuchElementException: "server-config" =>
"undefined"
[Host Controller] at
org.jboss.as.controller.registry.BasicResource.requireChild(BasicResource.java:95)
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.readModel(OperationContextImpl.java:697)
[Host Controller] at
org.jboss.as.host.controller.operations.ServerStatusHandler.execute(ServerStatusHandler.java:62)
[Host Controller] at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$ReadAttributeHandler.doExecute(GlobalOperationHandlers.java:378)
[Host Controller] at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$AbstractMultiTargetHandler.execute(GlobalOperationHandlers.java:828)
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.OperationSlaveStepHandler.execute(OperationSlaveStepHandler.java:77)
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:85)
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[Host Controller] at
org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:119)
[Host Controller] at
org.jboss.as.controller.remote.TransactionalModelControllerOperationHandler$ExecuteRequestHandler$1.run(TransactionalModelControllerOperationHandler.java:111)
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_26]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_26]
[Host Controller] at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
[Host Controller]
[Host Controller] 14:39:03,924 ERROR [org.jboss.as.controller] (pool-4-thread-3)
Operation ("read-children-names") failed - address: ([("host" =>
"master")]): java.lang.IllegalArgumentException
[Host Controller] at org.jboss.dmr.ModelValue.getChild(ModelValue.java:108)
[jboss-dmr-1.0.0.Final.jar:1.0.0.Final]
[Host Controller] at org.jboss.dmr.ModelNode.get(ModelNode.java:689)
[jboss-dmr-1.0.0.Final.jar:1.0.0.Final]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.ServerOperationsResolverHandler.createOverallResult(ServerOperationsResolverHandler.java:130)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.ServerOperationsResolverHandler.execute(ServerOperationsResolverHandler.java:103)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$ReadChildrenNamesOperationHandler.execute(GlobalOperationHandlers.java:431)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.OperationSlaveStepHandler.execute(OperationSlaveStepHandler.java:77)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:85)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:119)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.remote.TransactionalModelControllerOperationHandler$ExecuteRequestHandler$1.run(TransactionalModelControllerOperationHandler.java:111)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_26]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_26]
[Host Controller] at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
[Host Controller]
[Host Controller] 14:39:04,368 ERROR [org.jboss.as.controller] (pool-4-thread-3)
Operation ("read-children-names") failed - address: ([("host" =>
"master")]): java.lang.IllegalArgumentException
[Host Controller] at org.jboss.dmr.ModelValue.getChild(ModelValue.java:108)
[jboss-dmr-1.0.0.Final.jar:1.0.0.Final]
[Host Controller] at org.jboss.dmr.ModelNode.get(ModelNode.java:689)
[jboss-dmr-1.0.0.Final.jar:1.0.0.Final]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.ServerOperationsResolverHandler.createOverallResult(ServerOperationsResolverHandler.java:130)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.ServerOperationsResolverHandler.execute(ServerOperationsResolverHandler.java:103)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$ReadChildrenNamesOperationHandler.execute(GlobalOperationHandlers.java:431)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.OperationSlaveStepHandler.execute(OperationSlaveStepHandler.java:77)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:85)
[jboss-as-domain-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:119)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
org.jboss.as.controller.remote.TransactionalModelControllerOperationHandler$ExecuteRequestHandler$1.run(TransactionalModelControllerOperationHandler.java:111)
[jboss-as-controller-7.0.1.Final-redhat-1.jar:7.0.1.Final-redhat-1]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_26]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_26]
[Host Controller] at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
[Host Controller]
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira