我有 5 个jrxml文件,其中一些有subreport。我从JDeveloper使用它们。我对没有子报告的报告没有任何问题。但是当我使用具有子报告的报告时,我收到此错误:
java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at net.sf.jasperreports.engine.fill.JRFillTextField.getFormat(JRFillTextField.java
at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.j
at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:
at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementC
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:499)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFill
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.j
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFil
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.j
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:946)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845)
at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.
at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.ja
at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportR
at java.lang.Thread.run(Thread.java:662)
我正在使用iReport 4.0.2