karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5787) Improve scheduler whiteboard to avoid ClassCastException
Date Mon, 18 Jun 2018 12:40:00 GMT

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

ASF GitHub Bot commented on KARAF-5787:
---------------------------------------

jbonofre opened a new pull request #531: [KARAF-5787] Improve scheduler whiteboard handler
to allow users to define scheduler service properties in raw String
URL: https://github.com/apache/karaf/pull/531
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Improve scheduler whiteboard to avoid ClassCastException
> --------------------------------------------------------
>
>                 Key: KARAF-5787
>                 URL: https://issues.apache.org/jira/browse/KARAF-5787
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-scheduler
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.1.6, 4.2.1
>
>
> If an user provides the scheduler configuration via {{cfg}} like:
> {code}
> scheduler.period:Long=xx
> {code}
> it throws a {{ClassCastException}}:
> {code}
> java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
>         at org.apache.karaf.scheduler.core.WhiteboardHandler.register(WhiteboardHandler.java:110)
[260:org.apache.karaf.scheduler.core:4.1.5]
>         at 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message