Reports don't run and logs show java.lang.IllegalArgumentException: Cannot format given Object as a Date

Document ID : KB000072495
Last Modified Date : 12/06/2018
Show Technical Document Details
Issue:
Reports in JasperServer 6.3 keeps running and never load data. jasperserver.log shows:

MessageTag,http-nio-8080-exec-63:87 - Cannot format given Object as a Date
java.lang.IllegalArgumentException: Cannot format given Object as a Date
    at java.text.DateFormat.format(Unknown Source)
    at java.text.Format.format(Unknown Source)
    at java.text.MessageFormat.subformat(Unknown Source)
    at java.text.MessageFormat.format(Unknown Source)
    at java.text.Format.format(Unknown Source)
Environment:
JasperServer 6.3
Service Desk Manager 17.0
Resolution:
1. Go to C:\Program Files\CA\SharedComponents\CA Business Intelligence\apache-tomcat\webapps\jasperserver-pro\WEB-INF\bundles or similar
2. Create a backup of the file jasperserver_messages_es.properties and then edit it as follows:
Search for the line that includes:

jasper.report.view.data.snapshot.message=Datos actualizados el {0,date} a las {0,time}

and change it to:

jasper.report.view.data.snapshot.message=Datos actualizados el {0} a las {0}

3. Save Changes then Restart the JasperServer service.
Additional Information: