warer Posted October 24, 2007 Share Posted October 24, 2007 Hi I am trying to compile my report inside my app. This work fine when there are no errors but whenever i make an error in my document i get this exception: Code:java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getErrors()[Lorg/eclipse/jdt/core/compiler/IProblem; at net.sf.jasperreports.engine.design.JRJdtCompiler$2.acceptResult(JRJdtCompiler.java:418) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:398) at net.sf.jasperreports.engine.design.JRJdtCompiler.compileUnits(JRJdtCompiler.java:191) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:190) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:220) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:153) I am using tomcat 6.0.14 which provides the org.eclipse.jdt.internal.compiler class in jasper-jdt.jar. This is probably because this method might have changed name or something. I am using JasperReports 2.0.2. Does that version work with tomcat 6.0.14 Link to comment Share on other sites More sharing options...
lucianc Posted October 24, 2007 Share Posted October 24, 2007 This is logged as a bug here. Currenlty the JDT-based report compiler does not work with JDT 3.3. Regards,Lucian Link to comment Share on other sites More sharing options...
warer Posted October 25, 2007 Author Share Posted October 25, 2007 Is there a fix or do i have to downgrade to an earlier version? Link to comment Share on other sites More sharing options...
lucianc Posted October 25, 2007 Share Posted October 25, 2007 The issue has not yet been fixed. Regards,Lucian Link to comment Share on other sites More sharing options...
warer Posted October 25, 2007 Author Share Posted October 25, 2007 A workaround is to rename jasper-jdt.jar so tomcat dosen't recognise it as a jar file. Then start my app and errors will print, it was then missing some classes so it coudn't compile it, once the error checking was done. So i reenabled jasper-jdt.jar and it compiles. To get the errors printed remove jasper-jdt.jar, and to compile put it back. Link to comment Share on other sites More sharing options...
sravyts Posted December 18, 2007 Share Posted December 18, 2007 Is it possible it doesn't work with JDT 3.2.0 as well?Do we have to use JDT 3.1.1? Wkr,Sofie Link to comment Share on other sites More sharing options...
lucianc Posted December 18, 2007 Share Posted December 18, 2007 The compatibility issue probably concerned JDT 3.2.0 as well. However, the issue has been resolved in JasperReports 2.0.3. Regards,Lucian Link to comment Share on other sites More sharing options...
tecshine Posted February 15, 2008 Share Posted February 15, 2008 Hi I am using jasper-jdt-1.6.5 and jasperreports-1.2.8.While trying to run a report, I get the following erro.Any idea why this comes... I tried replacing the jars with the latest version2.0.4 for JasperReports but no luck.. java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getErrors()[Lorg/eclipse/jdt/core/compiler/IProblem; at net.sf.jasperreports.engine.design.JRJdtCompiler$2.acceptResult(JRJdtCompiler.java:389) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:417) at net.sf.jasperreports.engine.design.JRJdtCompiler.compileUnits(JRJdtCompiler.java:463) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:190) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127) at com.sequenom.everest.reports.JasperReportWithImage.generateReport(JasperReportWithImage.java:103) at com.mycomp.everest.reports.JasperReportWithImageTest.testGenerateReport(JasperReportWithImageTest.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:58) at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:122) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.pde.internal.junit.runtime.UITestApplication.start(UITestApplication.java:52) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)End of the TestCase Method testGenerateReport at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443) at org.eclipse.equinox.launcher.Main.run(Main.java:1169) at org.eclipse.equinox.launcher.Main.main(Main.java:1144) Link to comment Share on other sites More sharing options...
lucianc Posted February 16, 2008 Share Posted February 16, 2008 tecshine wrote:I am using jasper-jdt-1.6.5 and jasperreports-1.2.8. Do you have any special reason to use jasper-jdt (which is a Tomcat jar)? If you don't, try using the jdt-compiler jar shipped with JasperReports. Regards,Lucian 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