rest_v2 scheduled job won't run if it has a Date parameter

When I schedule a job via the rest_v2 interface, my reports that have a date as a parameter won't execute (they work fine when scheduled interactively).   The failure that is logged is:

The report was not completed. An error occurred while executing it. java.lang.ClassCastException: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl cannot be cast to java.util.Date

I can understand why the date is coming in as a XMLGregorianCalendarImpl -- that's pretty standard for an XML date or date/time, but why doesn't Jasper Server convert that internally to the required java.util.Date?

BTW, this is on Jasper Server 5.0.0


andy.hill's picture
Joined: Jan 14 2013 - 6:55pm
Last seen: 9 years 8 months ago

1 Answer:

this sounds to me like a bug. Please add it to the tracker including steps how to reproduce and post the tracker number here.

mrcaffeine's picture
Joined: Nov 10 2008 - 3:38am
Last seen: 5 years 12 months ago

OK, I created a simple example report to reproduce the issue and submitted it to tracker:

andy.hill - 10 years 4 months ago