Scheduled Reports Failed after a change

0

Hi There,

We changed the datatype of our date based parameter $P{param_date} from 'java.util.Date' to 'net.sf.jasperreports.types.date.DateRange' 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 net.sf.jasperreports.types.date.DateRange
"

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 week 2 days ago

0 Answers:

No answers yet
Feedback
randomness