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?
There is a sample batch app (scheduleTimer) with jberet-ui, and you may want to check it out.
I've never seen this error before. It could be related to some changes across different jackson library versions (used for json binding). You may want to try the exact version of jackson-* dependencies as used in the above jberet sample project.
The line of code in question is in JobScheduleConfig class.
Can you share error details and stacktrace from WildFly server.log?