Scheduled Reports Failed after a change


Hi There,

We changed the datatype of our date based parameter $P{param_date} from 'java.util.Date' to '' and then created another parameter with type 'java.util.Date' which takes the default value as $P{param_date}.getStart().

This was done to enable users to pass date inputs as 'month', 'month+1','month-1', etc.

After deploying the report in Jaspersoft Server, already scheduled instances of this report started to fail with error message  -

"Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: $P{param_date}.getStart()
 ... 41 more
Caused by: java.lang.ClassCastException: java.util.Date cannot be cast to

We had to manually re-schedule these reports which made them run successfully. However, Would like to know why the scheduled reports failed after above changes.

devendra.p's picture
Joined: Sep 25 2017 - 6:47am
Last seen: 1 year 8 months ago

0 Answers:

No answers yet