[ 
https://issues.apache.org/jira/browse/KARAF-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15032023#comment-15032023
 ] 

Andrea Cosentino commented on KARAF-3303:
-----------------------------------------

PR submitted:
https://github.com/apache/karaf/pull/110

> "keyStoreAvailabilityTimeout" is treated as boolean in JMX configuration
> ------------------------------------------------------------------------
>
>                 Key: KARAF-3303
>                 URL: https://issues.apache.org/jira/browse/KARAF-3303
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-config
>    Affects Versions: 3.0.2
>         Environment: tested on windows 7 / JDK 7, 64 bits
>            Reporter: Tom Liu
>         Attachments: KARAF-3303.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> "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.
> {code:title=apache-karaf-3.0.2\management\server\src\main\resources\OSGI-INF\metatype\metatype.xml
>  (line: 38)|borderStyle=solid}
>          <AD id="keyStoreAvailabilityTimeout" type="Boolean" default="false" 
> name="%keyStoreAvailabilityTimeout.name" 
> description="%keyStoreAvailabilityTimeout.description"/>
> {code}
> it should be
> {code}
>          <AD id="keyStoreAvailabilityTimeout" type="Integer" default="5000" 
> name="%keyStoreAvailabilityTimeout.name" 
> description="%keyStoreAvailabilityTimeout.description"/>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to