Im using jberet-ui (built from master branch of https://github.com/jberet/jberet-ui.git) embedded in a shaded war with jberet-rest-api, jberet-rest-common, jberet-schedule-executor and jberet-schedule-timer version 1.4.0.Final as dependencies.
When I try to create a calendar-based schedule, I get a 400 response from the api with a message 'Failed to schedule job execution for job: ag-insurance-import-lisa-subscriptions.' displayed in the bottom of the page, and the text
Unrecognized field "hour" (class javax.ejb.ScheduleExpression), not marked as ignorable
in the response body.
How is this javax.ejb.ScheduleExpression supposed to be deserialized? It does not seem like a simple pojo that could be simply bound to a json model, and I couldn't find any deserializer in the jberet-rest* projects. Am I supposed to provide my own json (de)serializers?
To work around this issue, currently, the following works.
war dependencies:
Then create a json deserializer:
And use it in a jax-rs-provided ObjectMapper: