[ 
https://issues.apache.org/jira/browse/CAMEL-17764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-17764.
---------------------------------
    Resolution: Fixed

> Camel-quartz: endpoint enriches job detail with wrong type of data (should be 
> String)
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-17764
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17764
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-quartz
>    Affects Versions: 3.16.0
>            Reporter: Jiri Ondrusek
>            Assignee: Jiri Ondrusek
>            Priority: Major
>             Fix For: 3.14.3, 3.16.0
>
>
> During implementation of tests for camel-quarkus's quartz extension 
> ([issue|https://github.com/apache/camel-quarkus/issues/3579]) I hit an issue.
> There is a code in QuartzEndpoint, which enriches `jobDetrail` , see 
> [code|https://github.com/apache/camel/blob/main/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzEndpoint.java#L465-L467].
>  Unfortunatelly Quartz allows only `String` in this map - see 
> [code|https://github.com/quartz-scheduler/quartz/blob/master/quartz-core/src/main/java/org/quartz/impl/jdbcjobstore/StdJDBCDelegate.java#L3151-L3161].
>  Otherwise exception is thrown:
> {code}
> Caused by: java.io.IOException: JobDataMap values must be Strings when the 
> 'useProperties' property is set.  Key of offending value: 
> CamelQuartzTriggerSimpleRepeatInterval
> {code}
> Conversion of the values into String types solves the issue.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to