Jump to content
Changes to the Jaspersoft community edition download ×

Error compiling a report in previous versions.


otherkest22

Recommended Posts

 

Hello everyone, I need your help.

I'm new to using Jaspersoft, and I'm trying to compile my report in an older version. I'm currently using Jaspersoft Studio Professional-8.1.0. I searched the documentation on how to compile for previous versions, followed the step-by-step instructions, but when I click on compile, it shows me the following error.

 

exception, Reason: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity

java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:142) at net.sf.jasperreports.eclipse.builder.JasperReportsBuilder.compileJRXML(JasperReportsBuilder.java:220) at com.jaspersoft.studio.editor.action.CompileAction.actionCompile(CompileAction.java:159) at com.jaspersoft.studio.editor.action.CompileAction$1.run(CompileAction.java:101) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at com.jaspersoft.jasperreports.jrs.bursting.ServerConnectionScheduler.<init>(ServerConnectionScheduler.java:45) at com.jaspersoft.jasperreports.jrs.bursting.BurstingExtensions.createRegistry(BurstingExtensions.java:24) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:238) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:213) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:163) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:133) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:105) at net.sf.jasperreports.engine.component.ComponentsEnvironment.findComponentBundles(ComponentsEnvironment.java:89) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCachedComponentBundles(ComponentsEnvironment.java:78) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getComponentBundles(ComponentsEnvironment.java:66) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLocations(JRReportSaxParserFactory.java:76) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.configureParser(BaseSaxParserFactory.java:131) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.createParser(BaseSaxParserFactory.java:94) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1342) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1318) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:207) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:172) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:156) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:82) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:118) ... 4 more Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity at java.base/java.net.URLClassLoader.findClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at java.base/java.net.FactoryURLClassLoader.loadClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ... 28 more

 

I have already downloaded the necessary libraries for the version I need from the internet and imported them into Jaspersoft Studio, but the error persists. It has even shown me other libraries at times. Any ideas on how I can compile it? Thank you in advance for your help.

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

Link to comment
Share on other sites

I am using JasperReport-4.5.0. To compile it in a previous version, what I did was add the libraries for Jaspersoft downloaded from the site for v4.5.0. Additionally, I added the JAR file of JasperReport-4.5.0 to the versions menu. To perform the build, I changed the .jrxml version to 4.5.0 in the menu, and in the compiler settings, I changed it to the 4.5.0 version that I added.

Link to comment
Share on other sites

  • 5 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...