Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6251

SimpleAttributeDefinition BACKGROUNDVALIDATIONMILLIS defined incompatible ModelType and ParameterValidator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 7.1.3.Final (EAP)
    • JCA
    • None

    Description

      The SimpleAttributeDefinition BACKGROUNDVALIDATIONMILLIS is defined :

      org.jboss.as.connector.subsystems.common.pool.Constants.java
      public static final SimpleAttributeDefinition BACKGROUNDVALIDATIONMILLIS = new SimpleAttributeDefinition(BACKGROUNDVALIDATIONMILLIS_NAME, Validation.Tag.BACKGROUND_VALIDATION_MILLIS.getLocalName(),  new ModelNode(), ModelType.LONG, true, true, MeasurementUnit.MILLISECONDS, new IntRangeValidator(1, true, true));
      
      

      The ModelType should be an integer value as defined in jboss-as-datasources_1_1.xsd:

      <xs:element name="background-validation-millis" type="xs:nonNegativeInteger" minOccurs="0">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[[
                    The background-validation-millis element specifies the amount of
                    time, in millis, that background validation will run.
                   ]]>
                </xs:documentation>
              </xs:annotation>
      </xs:element>
      

      Attachments

        Activity

          People

            chaowan@redhat.com Chao Wang
            chaowan@redhat.com Chao Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: