Issue Description [toc on_off::hide=1]
When logging into TIBCO JasperReports® Server v6.3.0 under Spanish locale and trying to run reports, the report does not render and the following exception is thrown in the logs:
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) at org.springframework.context.support.AbstractMessageSource.getMessageInternal(AbstractMessageSource.java:228) at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:147)</pre>
The Cause
There is a defect in TIBCO JasperReports® Server 6.3.0 which is specific to Spanish locale only. There is an incorrect configuration in one of the locale bundle files which results in this error.
The Solution
The issue can be fixed inin /WEB-INF/bundles/jasperserver_messages_es.properties file by deleting the following line:
jasper.report.view.data.snapshot.message=Donnu00e9es actualisu00e9es le {0,date} u00e0 {0,time}
and replacing it with this
jasper.report.view.data.snapshot.message=Donnu00e9es actualisu00e9es le {0} u00e0 {1}
Then save the file and restart the server.
Ref. Case #00069988
Recommended Comments
There are no comments to display.