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

0

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: 6 years 1 month ago

1 Answer:

0

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
1208
Joined: Nov 10 2008 - 3:38am
Last seen: 2 years 5 months ago

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

http://community.jaspersoft.com/jasperreports-server/issues/2677

andy.hill - 6 years 10 months ago
Feedback
randomness