NPE (dependency problem) when generating JasperReport

Description

The reason for the error is because net.sf.jasperreports.view.images isn't exported in the MANIFEST.MF for org.adempiere.report.jasper.library.

The NPE occurs because the viewer button images can't be loaded.

11:26:59.715===========> ProcessUtil.startJavaProcess: org.compiere.report.ReportStarter [13]
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at net.sf.jasperreports.view.JRViewer.initComponents(JRViewer.java:738)
at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:383)
at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:294)
at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:255)
at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:228)
at org.compiere.report.JasperReportViewer.<init>(JasperReportViewer.java:48)
at org.compiere.report.JasperViewer.<init>(JasperViewer.java:38)
at org.compiere.report.SwingJRViewerProvider.openViewer(SwingJRViewerProvider.java:9)
at org.compiere.report.ReportStarter.startProcess0(ReportStarter.java:684)
at org.compiere.report.ReportStarter.startProcess(ReportStarter.java:345)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:172)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:139)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:128)
at org.compiere.process.ServerProcessCtl.startProcess(ServerProcessCtl.java:399)
at org.compiere.process.ServerProcessCtl.run(ServerProcessCtl.java:265)
at org.compiere.process.ServerProcessCtl.process(ServerProcessCtl.java:92)
at org.compiere.print.ServerReportCtl.runJasperProcess(ServerReportCtl.java:106)
at org.compiere.print.ReportCtl.startDocumentPrint(ReportCtl.java:327)
at org.compiere.print.ReportCtl.startDocumentPrint(ReportCtl.java:294)
at org.compiere.print.ReportCtl.start(ReportCtl.java:137)
at org.compiere.print.ReportCtl.start(ReportCtl.java:108)
at org.compiere.apps.AbstractProcessCtl.run(AbstractProcessCtl.java:289)

Environment

Swing environment. Haven't tested ZK.

Assignee

Daniel Tamm

Reporter

Daniel Tamm

Labels

None

Tested By

None

Time tracking

30m

Components

Fix versions

Affects versions

Priority

Major
Configure