I swapped out the jasperreports-3.1.4.jar with the new 3.5.1.jar in our application, and now experience an error on JasperCompileManager.compileReportToFile( String, String ).
The error is:
java.lang.NoSuchMethodError: java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)
at net.sf.jasperreports.engine.util.JRStringUtil.escapeJavaStringLiteral(JRStringUtil.java:364)
We use the JDK 1.4 for our application and we can't yet upgrade to the newer JDK (don't ask why). The String.replace(CharSequence, CharSequence) method didn't exist back in 1.4.
Recommended Comments