2004 IR Help Posted August 24, 2006 Share Posted August 24, 2006 By: Thomas Bednarz - thomasbednarz Error calling JasperCompileManager.compile(.. 2005-12-06 09:12 I am using JasperReport 1.0.2. I have a strange error. On my development machine works everything fine. But when deploying my code to a different machine (Windows 2003 server) I get an exception when calling JasperCompileManager.compile()! Here is the stack trace: 2005-12-06 17:19:39,890 ERROR [main] mtracker.ReportingServer (ReportingServer.java:260) - Error in report compilation or generation java.io.IOException: CreateProcess: javac -classpath .classes.;.javalibrt.jar;.javalibjaws.jar;.javalibi18n.jar;.javalib;.libactivation.jar;.libcommons-beanutils-1.5.jar;.libcommons-collections-2.1.jar;.libcommons-digester-1.7.jar;.libcommons-logging-1.0.2.jar;.libitext-1.3.1.jar;.libjasperreports-1.0.2.jar;.libjodbc.jar;.liblog4j-1.2.12.jar;.libmail.jar;.libJasperScriptlets.jar;.libxercesImpl.jar; D:mtracker_ReportingServerTrip_Overview_EN.java error=2 at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) at java.lang.Runtime.exec(Runtime.java:591) at java.lang.Runtime.exec(Runtime.java:464) at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:59) at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileReport(JRAbstractClassCompiler.java:106) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:129) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211) at com.m_computing.mtracker.ReportingServer.generateReport(ReportingServer.java:244) at com.m_computing.mtracker.ReportingServer.run(ReportingServer.java:107) at com.m_computing.mtracker.MTrackerReportingServer.main(MTrackerReportingServer.java:27) NESTED BY : net.sf.jasperreports.engine.JRException: Error compiling report java source file : D:mtracker_ReportingServerTrip_Overview_EN.java at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:84) at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileReport(JRAbstractClassCompiler.java:106) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:129) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211) at com.m_computing.mtracker.ReportingServer.generateReport(ReportingServer.java:244) at com.m_computing.mtracker.ReportingServer.run(ReportingServer.java:107) at com.m_computing.mtracker.MTrackerReportingServer.main(MTrackerReportingServer.java:27) Caused by: java.io.IOException: CreateProcess: javac -classpath .classes.;.javalibrt.jar;.javalibjaws.jar;.javalibi18n.jar;.javalib;.libactivation.jar;.libcommons-beanutils-1.5.jar;.libcommons-collections-2.1.jar;.libcommons-digester-1.7.jar;.libcommons-logging-1.0.2.jar;.libitext-1.3.1.jar;.libjasperreports-1.0.2.jar;.libjodbc.jar;.liblog4j-1.2.12.jar;.libmail.jar;.libJasperScriptlets.jar;.libxercesImpl.jar; D:mtracker_ReportingServerTrip_Overview_EN.java error=2 at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) at java.lang.Runtime.exec(Runtime.java:591) at java.lang.Runtime.exec(Runtime.java:464) at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:59) ... 6 more Error code 2 means 'file not found' on Windows. The question is: Why is the file NOT generated? There is no Exception when the file is created! The problem is, that I cannot debug on the production system and on my workstation everything is OK. The exception is thrown in JRAbstractClassCompiler around line 106. Any help would be greatly be appreciated! Thomas By: Thomas Bednarz - thomasbednarz RE: Error calling JasperCompileManager.compil 2005-12-07 00:39 The problem is even worse and I am completely stuck! I installed the entire development system on the production machine. As soon as I run my software in the debugger or start it from Eclipse in non-debugging mode, it works! As soon as I start it from the directory I installed the software to it DOES NOT WORK (see message above). I run Windows 2003 server with service pack 1 Any ideas??? Thomas By: Lucian Chirita - lucianc RE: Error calling JasperCompileManager.compil 2005-12-07 01:11 Do you have javac on your path when you run it? Regards, Lucian By: Thomas Bednarz - thomasbednarz RE: Error calling JasperCompileManager.compil 2005-12-07 01:40 Hi Lucian, No, this seems to be set only within Eclipse! Changing the System Environment Path variable solved the problem. Many thanks !!! Thomas By: jasperkan - jasperkannan RE: Error calling JasperCompileManager.compile(.. 2005-12-13 16:03 to avoid this error u just need to put the jr-bsh-compiler.jar to your lib. 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