Jump to content
Changes to the Jaspersoft community edition download ×

java.lang.AbstractMethodError: when compiling


2005 IR Help

Recommended Posts

By: ani - vijani

java.lang.AbstractMethodError: when compiling

2004-09-24 00:43

Hi,

 

I tried deploying the jasper reports yesterday, and it failed at compilation. It works fine in local m/c.

 

My Code:

String path =return this.getServlet().getServletContext().getRealPath(/WEB-INF/reports/templates/); //this is where all the templates are available.

 

String reportName = path+”test.xml”;

//where test.xml is the report design.

 

InputStream reportStream = new FileInputStream(reportName);

 

jasperDesign = JasperManager.loadXmlDesign(reportStream);

 

logger.debug("jasperDesign");

//This is getting printed in the server

 

JasperReport _rep = JasperManager.compileReport(jasperDesign); // fails at this point.

 

logger.debug("compiled");

 

Exception is:

java.lang.AbstractMethodError: dori.jasper.engine.design.JRClassCompiler.compileClass(java.io.File,java.lang.String)

at dori.jasper.engine.design.JRAbstractJavaCompiler.compileReport (JRAbstractJavaCompiler.java:151) (pc 327)

at dori.jasper.engine.design.JRDefaultCompiler.compileReport (JRDefaultCompiler.java:136) (pc 136)

at dori.jasper.engine.JasperCompileManager.compileReport(dori.jasper.engine.design.JasperDesign) (JasperCompileManager.java:196) (pc 8)

at dori.jasper.engine.JasperManager.compileReport(dori.jasper.engine.design.JasperDesign) (JasperManager.java:982) (pc 1)

 

Thanks

 

 

 

 

 

 

 

By: ani - vijani

RE: java.lang.AbstractMethodError: when compiling

2004-09-27 19:35

My reports started working once i replaced jasper-reports jar with jasper-reports-0.5.2 stable version

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...