[
https://issues.jboss.org/browse/WFCORE-484?page=com.atlassian.jira.plugin...
]
Paul Ferraro updated WFCORE-484:
--------------------------------
Description:
OperationContext.getResourceRegistrationForUpdate().registerAlias(...) throws the
following:
{noformat}
java.lang.AssertionError: Unknown alias type
at
org.jboss.as.controller.registry.AbstractResourceRegistration.registerAlias(AbstractResourceRegistration.java:503)
at
org.jboss.as.controller.registry.DelegatingManagementResourceRegistration.registerAlias(DelegatingManagementResourceRegistration.java:310)
at
org.jboss.as.clustering.jgroups.subsystem.TransportResourceDefinition$5$1.execute(TransportResourceDefinition.java:360)
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:728)
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:563)
at
org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:336)
at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:312)
at
org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1163)
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:421)
at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:304)
at
org.jboss.as.model.test.ModelTestModelControllerService.boot(ModelTestModelControllerService.java:256)
at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:299)
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:266)
at java.lang.Thread.run(Thread.java:745)
{noformat}
This is because OperationContext.getResourceRegistrationForUpdate() returns a
DelegatingManagementResourceRegistration, which does not extend
AbstractResourceRegistration - so the assertion fails.
Is there a technical reason why this should not work?
was:
OperationContext.getResourceRegistrationForUpdate().registerAlias(...) throws the
following:
{noformat}
java.lang.AssertionError: Unknown alias type
at
org.jboss.as.controller.registry.AbstractResourceRegistration.registerAlias(AbstractResourceRegistration.java:503)
at
org.jboss.as.controller.registry.DelegatingManagementResourceRegistration.registerAlias(DelegatingManagementResourceRegistration.java:310)
at
org.jboss.as.clustering.jgroups.subsystem.TransportResourceDefinition$5$1.execute(TransportResourceDefinition.java:360)
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:728)
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:563)
at
org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:336)
at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:312)
at
org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1163)
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:421)
at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:304)
at
org.jboss.as.model.test.ModelTestModelControllerService.boot(ModelTestModelControllerService.java:256)
at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:299)
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:266)
at java.lang.Thread.run(Thread.java:745)
{noformat}
This is because OperationContext.getResourceRegistrationForUpdate() returns a
DelegatingManagementResourceRegistration, which does not extend
AbstractResourceRegistration - so the assertion fails.
OperationContext.getResourceRegistrationForUpdate().registerAlias(...) throws
AssertionError
--------------------------------------------------------------------------------------------
Key: WFCORE-484
URL:
https://issues.jboss.org/browse/WFCORE-484
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 1.0.0.Alpha14
Reporter: Paul Ferraro
Assignee: Brian Stansberry
OperationContext.getResourceRegistrationForUpdate().registerAlias(...) throws the
following:
{noformat}
java.lang.AssertionError: Unknown alias type
at
org.jboss.as.controller.registry.AbstractResourceRegistration.registerAlias(AbstractResourceRegistration.java:503)
at
org.jboss.as.controller.registry.DelegatingManagementResourceRegistration.registerAlias(DelegatingManagementResourceRegistration.java:310)
at
org.jboss.as.clustering.jgroups.subsystem.TransportResourceDefinition$5$1.execute(TransportResourceDefinition.java:360)
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:728)
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:563)
at
org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:336)
at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:312)
at
org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1163)
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:421)
at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:304)
at
org.jboss.as.model.test.ModelTestModelControllerService.boot(ModelTestModelControllerService.java:256)
at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:299)
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:266)
at java.lang.Thread.run(Thread.java:745)
{noformat}
This is because OperationContext.getResourceRegistrationForUpdate() returns a
DelegatingManagementResourceRegistration, which does not extend
AbstractResourceRegistration - so the assertion fails.
Is there a technical reason why this should not work?
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)