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

Unable to set decay attribute in modcluster subsystem

XMLWordPrintable

      Running with configured mod cluster extension (see attached xml) I get:

      13:27:16,733 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 76) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "modcluster")]): java.lang.NumberFormatException: For input string: "2.0"
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      	at java.lang.Integer.parseInt(Integer.java:580)
      	at java.lang.Integer.parseInt(Integer.java:615)
      	at org.jboss.dmr.StringModelValue.asInt(StringModelValue.java:142)
      	at org.jboss.dmr.ModelNode.asInt(ModelNode.java:288)
      	at org.wildfly.extension.mod_cluster.ModClusterSubsystemServiceHandler.getLoadProvider(ModClusterSubsystemServiceHandler.java:129)
      	at org.wildfly.extension.mod_cluster.ModClusterSubsystemServiceHandler.installServices(ModClusterSubsystemServiceHandler.java:95)
      	at org.jboss.as.clustering.controller.AddStepHandler.performRuntime(AddStepHandler.java:220)
      	at org.jboss.as.controller.AbstractAddStepHandler.performRuntime(AbstractAddStepHandler.java:343)
      	at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:164)
      	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:1005)
      	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:744)
      	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
      	at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:384)
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348)
      	at java.lang.Thread.run(Thread.java:748)
      
      

      The problem is that the attribute is double, however in add operation handler is parsed as int.

              istraka@redhat.com Ivan Straka
              istraka@redhat.com Ivan Straka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: