When a subclass (such as an enum in this case) is used as a field in a report, for example when the datasource is hibernate, trying to run the report will cause the exception attached. This is due to the fact that the field tag's class attribute is a NMTOKEN, which cannot contain a $ character. The fix is to change the type of the class attribute in http://jasperreports.sourceforge.net/dtds/jasperreport.dtd to something else that allows for all the possible characters a class path may contain.
Attachments:
-exception.txt
Recommended Comments