私のスイングアプリケーションでは、次の例外がありますが、必ずしもそうではありません。ジャスパー報告で次のコードが実行されたときに発生します。どうすればこの問題を解決できますか?java.lang.OutOfMemoryError:JasperReportsのJavaヒープスペース
Exception occurred during event dispatching: java.lang.OutOfMemoryError: Java heap space
JRBeanCollectionDataSource datasource = new JRBeanCollectionDataSource(purchasingList);
JasperPrint jasperPrint = JasperFillManager.fillReport(in, params, datasource);
if (view) {// using a JDialog a preview of the print is showed.
new Shows().showJasper(jasperPrint, "Invoice No:" + invoiceNo);
}
final JRPrintServiceExporter exporter = new JRPrintServiceExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
// exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.TRUE);
exporter.exportReport();
[java.lang.OutOfMemoryError:ジャスパーレポートのJavaヒープスペース]の複製可能性(http://stackoverflow.com/questions/1587098/java-lang-outofmemoryerror-java-heap-space-in-jasper-report ) –