I have a report that works perfectly fine. I have a custom jar that simply modifies big numbers according to user preference formatting. Not a big deal.
The issue I have is that whenever I use the +/- buttons in the server to resize the report I get this error:
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
followed by the error: unable to resolve class.
But it resolves the class fine when it's first loaded..?
This is a bug from Jasper Server, the problems is explain in this thread:
The solution is here: http://community.jaspersoft.com/questions/824896/how-use-custom-function...
Other solution is use the .jar in only subreports(use methods and functions), not in the main report.