You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2018/06/18 16:37:00 UTC
[jira] [Resolved] (KARAF-5787) Improve scheduler whiteboard to
avoid ClassCastException
[ https://issues.apache.org/jira/browse/KARAF-5787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré resolved KARAF-5787.
-----------------------------------------
Resolution: Fixed
> 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)