2004 IR Help Posted August 20, 2006 Share Posted August 20, 2006 By: sunonepp - sunonepp Compilation error (linux) 2004-08-09 22:30 When my program try to execute JasperCompileManager.compileReportToFile(fileName); The following error was thrown: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: See error messages above. net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:155) net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:137) net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:138) net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:110) app.Report.compile(Report.java:135) app.Report.generateReport(Report.java:90) app.ReportManager.generateReport(ReportManager.java:38) app.ReportAction.generate(ReportAction.java:81) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280) org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:252) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) The OS is Linux. any idea? Thanks By: David Rudder - drig RE: Compilation error (linux) 2004-09-27 07:04 What distribution of Linux are you using? I am using Fedora Core 2. It comes with GCJ, which is GCC's clean-room implementation. I've had...errm...spotty success with trying to compile tomcat applications with GCJ. If you're using the Java that comes with Fedora, try downloading the version from Sun's web page. By: ani - vijani RE: Compilation error (linux) 2004-09-27 19:33 Hi Thanks. But my reports started working once i replaced jasper-reports jar with jasper-reports-0.5.2 stable version By: ani - vijani RE: Compilation error (linux) 2004-09-26 16:16 Did you get the solution for this problem? I am facing same problem. If you have got the answer let me know. By: Rodrigo - ro22 RE: Compilation error (linux) 2005-02-18 07:25 i have the same problem running in a Solaris 9 (Sun OS 5.9), WebSphere 5.1 and JasperReport 0.6.4 Anyone got an answer? Rodrigo By: Teodor Danciu - teodord RE: Compilation error (linux) 2005-02-18 09:49 Hi, If you have 0.6.4, I suggest you put the jdt-compiler.jar in the classpath. This will make the report compilation faster and the compilation errors clearly visible. The exception you have is due to some expression that does not compile but the actual compilation error is on the default console somewhere or up on the stack trace. I hope this helps. Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now