Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3303

"keyStoreAvailabilityTimeout" is treated as boolean in JMX configuration

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 2.4.4, 3.0.6, 4.0.4
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      tested on windows 7 / JDK 7, 64 bits

      Description

      "keyStoreAvailabilityTimeout" of Karaf JMX Management Configuration (org.apache.karaf.management) is treated as boolean. Because of that, Karaf Management fails to start after making any change in "org.apache.karaf.management" by Web Console

      "keyStoreAvailabilityTimeout" should be a number. NumberFormat exception is shown in log file after it is set to string TRUE or FALSE.

      I searched source code and found the problem in following place.

      apache-karaf-3.0.2managementserversrcmainresourcesOSGI-INFmetatypemetatype.xml (line: 38)
               <AD id="keyStoreAvailabilityTimeout" type="Boolean" default="false" name="%keyStoreAvailabilityTimeout.name" description="%keyStoreAvailabilityTimeout.description"/>
      

      it should be

               <AD id="keyStoreAvailabilityTimeout" type="Integer" default="5000" name="%keyStoreAvailabilityTimeout.name" description="%keyStoreAvailabilityTimeout.description"/>
      

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              tomliuxd Tom Liu
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified