JSP report viewer failing on some reports
We recently migrated to BOXIr2 from CE10 and when we migrated our reports we noticed that many of our older reports that were created almost 10 years ago are failing with the following error:
ApplicationException: message = java.lang.NoSuchMethodError: com.crystaldecisions.Utilities.Environment: method hasJava2D()Z not found class = unknown method = unknown id = unknown
We can run these reports from Crystal Reports XI with no problems. We only get this error when running report from the report viewer jsp.
Has anyone seen this error before?
Ted Ueda replied
I'd recommend the following:
1. Delete all the jars from your application.
2. Re-copy the XI Release 2 jars int your application.
3. Ensure that MetafileRenderer.jar is included, and that ReportViewer.jar is not.
This ensures that (1) you're not mixing CE10 and XI Release 2 jars, and (2) the required class and method the exception is complaining about is there.
I strongly recommend steps 1 and 2.