Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9584

Adding protocol with override definition to fork results in IllegalStateException

    Details

      Description

      [standalone@embedded /] /subsystem=jgroups/channel=ee/fork=foo/protocol=MPING:add(socket-binding=http)
      14:46:40,228 ERROR [org.jboss.as.controller.management-operation] (pool-4-thread-1) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "jgroups"),
          ("channel" => "ee"),
          ("fork" => "foo"),
          ("protocol" => "MPING")
      ]): java.lang.IllegalStateException: WFLYCTL0221: An override model registration is not allowed for non-wildcard model registrations. This registration is for the non-wildcard name 'MPING'.
      	at org.jboss.as.controller.registry.AbstractResourceRegistration.registerOverrideModel(AbstractResourceRegistration.java:122)
      	at org.jboss.as.clustering.jgroups.subsystem.ForkProtocolRuntimeResourceRegistration.register(ForkProtocolRuntimeResourceRegistration.java:127)
      	at org.jboss.as.clustering.controller.AddStepHandler.lambda$null$2(AddStepHandler.java:117)
      	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:982)
      	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
      	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
      	at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1402)
      	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:418)
      	at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
      	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$1$1.lambda$run$0(ModelControllerClientFactoryImpl.java:170)
      	at org.jboss.as.controller.access.InVmAccess.runInVm(InVmAccess.java:63)
      	at org.jboss.as.controller.SecurityActions$InVmActions$1.runInVm(SecurityActions.java:149)
      	at org.jboss.as.controller.SecurityActions.runInVm(SecurityActions.java:49)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$1$1.run(ModelControllerClientFactoryImpl.java:170)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$1$1.run(ModelControllerClientFactoryImpl.java:163)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:198)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:175)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$1.run(ModelControllerClientFactoryImpl.java:163)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
       
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.IllegalStateException: WFLYCTL0221: An override model registration is not allowed for non-wildcard model registrations. This registration is for the non-wildcard name 'MPING'.",
          "rolled-back" => true
      }
      

      Normally, protocols register a runtime resource that exposes its properties as runtime attribute to the management model. This is implemented by registering an override model at runtime. However, if the protocol already uses an override model, the registration will fail.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pferraro Paul Ferraro
                Reporter:
                pferraro Paul Ferraro
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: