Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6604

JMX can't set default value for an attribute of ModelType.LIST

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 23.0.0.Beta2, 23.0.0.Final
    • 22.0.1.Final
    • JMX
    • None

      If there is an attribute of ModelType.LIST which has a default value, JMX fails due to:

      WARN  [org.jboss.remotingjmx.protocol.v2.ServerCommon] (pool-1082-thread-1) Unexpected internal error: java.lang.IllegalArgumentException: Default value not supported for ArrayType and TabularType
        at java.management/javax.management.openmbean.OpenMBeanParameterInfoSupport.<init>(OpenMBeanParameterInfoSupport.java:174)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.model.MBeanInfoFactory.getParameterInfos(MBeanInfoFactory.java:295)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.model.MBeanInfoFactory.getOperation(MBeanInfoFactory.java:223)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.model.MBeanInfoFactory.addChildAddOperations(MBeanInfoFactory.java:217)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.model.MBeanInfoFactory.getOperations(MBeanInfoFactory.java:206)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.model.MBeanInfoFactory.createMBeanInfo(MBeanInfoFactory.java:126)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.model.MBeanInfoFactory.createMBeanInfo(MBeanInfoFactory.java:118)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.model.ModelControllerMBeanHelper.getMBeanInfo(ModelControllerMBeanHelper.java:254)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.getMBeanInfo(ModelControllerMBeanServerPlugin.java:167)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.PluggableMBeanServerImpl.getMBeanInfo(PluggableMBeanServerImpl.java:572)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.PluggableMBeanServerImpl.getMBeanInfo(PluggableMBeanServerImpl.java:560)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.BlockingNotificationMBeanServer.getMBeanInfo(BlockingNotificationMBeanServer.java:234)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.AuthorizingMBeanServer.getMBeanInfo(AuthorizingMBeanServer.java:351)
        at org.jboss.remoting-jmx@3.1.0.Final//org.jboss.remotingjmx.protocol.v2.ServerProxy$GetMBeanInfoHandler.handle(ServerProxy.java:775)
        at org.jboss.remoting-jmx@3.1.0.Final//org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:149)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:54)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:49)
        at org.wildfly.security.elytron-base@2.2.2.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:328)
        at org.wildfly.security.elytron-base@2.2.2.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:285)
        at org.jboss.as.controller@22.0.1.Final//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:237)
        at org.jboss.as.controller@22.0.1.Final//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:208)
        at org.jboss.as.jmx@22.0.1.Final//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:49)
        at org.jboss.remoting-jmx@3.1.0.Final//org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:145)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: javax.management.openmbean.OpenDataException: Default value not supported for ArrayType and TabularType
        at java.management/javax.management.openmbean.OpenMBeanAttributeInfoSupport.check(OpenMBeanAttributeInfoSupport.java:477)
        at java.management/javax.management.openmbean.OpenMBeanParameterInfoSupport.<init>(OpenMBeanParameterInfoSupport.java:172)
        ... 25 more
      

              kkhan1@redhat.com Kabir Khan
              istudens@redhat.com Ivo Studensky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: