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

Infinispan cache operations using allow-resource-service-restart cause duplicate service exception

    XMLWordPrintable

Details

    Description

      [standalone@embedded /] /subsystem=infinispan/cache-container=server/local-cache=default:write-attribute(name=statistics-enabled, value=true){allow-resource-service-restart=true}
      
      14:22:34,146 ERROR [org.jboss.as.controller.management-operation] (AeshProcess: 11) WFLYCTL0013: Operation ("write-attribute") failed - address: ([
          ("subsystem" => "infinispan"),
          ("cache-container" => "server"),
          ("local-cache" => "default")
      ]): org.jboss.msc.service.DuplicateServiceException: Service org.wildfly.clustering.infinispan.cache-configuration.server.default.module is already registered
      	at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158)
      	at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:236)
      	at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:768)
      	at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223)
      	at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2416)
      	at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223)
      	at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2416)
      	at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317)
      	at org.jboss.as.controller.OperationContextImpl$ContextServiceBuilder.install(OperationContextImpl.java:2174)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheServiceHandler.installServices(CacheServiceHandler.java:82)
      	at org.jboss.as.clustering.controller.RestartWriteAttributeHandler.restartServices(RestartWriteAttributeHandler.java:67)
      	at org.jboss.as.clustering.controller.RestartWriteAttributeHandler.applyUpdateToRuntime(RestartWriteAttributeHandler.java:51)
      	at org.jboss.as.controller.AbstractWriteAttributeHandler$1.execute(AbstractWriteAttributeHandler.java:104)
      	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:940)
      	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:683)
      	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:382)
      	at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1361)
      	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:411)
      	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:219)
      	at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:701)
      	at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:691)
      	at org.jboss.as.controller.client.helpers.DelegatingModelControllerClient.execute(DelegatingModelControllerClient.java:68)
      	at org.jboss.as.cli.embedded.ThreadContextsModelControllerClient.execute(ThreadContextsModelControllerClient.java:69)
      	at org.jboss.as.cli.impl.CommandExecutor.execute(CommandExecutor.java:652)
      	at org.jboss.as.cli.impl.CommandContextImpl.lambda$execute$1(CommandContextImpl.java:857)
      	at org.jboss.as.cli.impl.CommandContextImpl.execute(CommandContextImpl.java:877)
      	at org.jboss.as.cli.impl.CommandContextImpl.execute(CommandContextImpl.java:856)
      	at org.jboss.as.cli.handlers.OperationRequestHandler.handle(OperationRequestHandler.java:90)
      	at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:801)
      	at org.jboss.as.cli.impl.CommandContextImpl.handleSafe(CommandContextImpl.java:902)
      	at org.jboss.as.cli.impl.CommandContextImpl$2.execute(CommandContextImpl.java:436)
      	at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Issue Links

          Activity

            People

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: