0

jasperreport?

asked 2015-04-10 08:29:14 +0800

jwasky gravatar image jwasky
11 3

updated 2015-04-13 07:47:09 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

please help me

public void showReport() throws JRException {
   personDataSet = potManager.getAllObjec(MasterPotongan.class);
   String reportFile = Executions.getCurrent().getDesktop().getWebApp()
            .getRealPath("/maj_zul/payrollbulanan/masterpotongan");
   reportFile = reportFile + "/report2.jasper";

 (this 247) JasperPrint jasperPrint = JasperFillManager.fillReport(reportFile,
          null, new JRBeanCollectionDataSource(personDataSet));
    //view the report using JasperViewer
    JasperViewer.viewReport(jasperPrint,false);

}

I have an error this:

java.lang.NullPointerException

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:628) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:544) at org.maj.hr.payroll.bulanan.masterpotongan.MasterPotonganWND.showReport(MasterPotonganWND.java:247)

delete flag offensive retag edit

Comments

jasper report version?

chillworld ( 2015-04-13 07:49:23 +0800 )edit

jasperreport 3.7.0, with netbeans 7.1.1 and ireport 4.5.0, how to fix my bug,help me please?

jwasky ( 2015-04-13 08:00:37 +0800 )edit

i don't know what you mean, can you tell me,please?

jwasky ( 2015-04-13 08:11:54 +0800 )edit

If I look into the JasperFillManager class of version 3.7.0 of jasperReport, the line 544 doesn't contains code but documentation.(just above a method)

chillworld ( 2015-04-13 08:43:34 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-04-10 08:29:14 +0800

Seen: 24 times

Last updated: Apr 13 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More