File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Exception in thread (Z)V" title="Ada Lovelace Day" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic

Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V

pritam patil

Joined: Feb 09, 2010
Posts: 2
while Compling jasper reports following exception occurs :

Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
at org.codehaus.groovy.control.CompilationUnit.createClassVisitor(
at org.codehaus.groovy.control.CompilationUnit$
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(
at org.codehaus.groovy.control.CompilationUnit.compile(
at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(

Source code for the same is as follows :

import java.util.HashMap;
import java.util.Map;
import net.sf.jasperreports.engine.JREmptyDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.view.JasperViewer;
import org.objectweb.asm.*;

public class ComplieReport
public static void main(String[] args)
String reportSource = "../JasperTestReport/WebContent/Report.jrxml";
String reportDest = "../JasperTestReport/WebContent/HelloReportWorld.html";

Map<String, Object> params = new HashMap();

JasperReport jasperReport =

JasperPrint jasperPrint =
jasperReport, params, new JREmptyDataSource());

jasperPrint, reportDest);


catch (JRException ex)

Please provide help on above topic........

Jan Cumps

Joined: Dec 20, 2006
Posts: 2563

Let's discuss in your other post on the same.
Closing this duplicate.

OCUP UML fundamental and ITIL foundation
I agree. Here's the link:
subject: Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
It's not a secret anymore!