Jump to content
Changes to the Jaspersoft community edition download ×

ClassCast Exception

Recommended Posts

By: Wesley Ng - abrabra

ClassCast Exception

2003-09-10 22:20

I having this problem when I try to use the runReportToPdf method....


Error at Generate: java.lang.ClassCastException: dori.jasper.engine.JasperPrint

java.lang.ClassCastException: dori.jasper.engine.JasperPrint

at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.jav


at dori.jasper.engine.JasperRunManager.runReportToPdf(JasperRunManager.j


at REPORT.Report.generateBrowser(Report.java:84)


my code are something like this:

byte[] bytes = null;

mainFile = dir + "abc.jrprint";

bytes = JasperRunManager.runReportToPdf(mainFile, para,new JREmptyDataSource());



Any one have any ideas what went wrong?

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