Getting ConcurrentModificationException when previewing report

I'm working on a template where, after adding a chart customizer class, which only changes the stroke type on the grid lines to solid, I've started getting a ConcurrentModificationException.  I'm fairly certain this isn't possible, because I'm the only developer on my project and the only person using the system.  I have nothing else running in my application while I'm testing my templates.  And the other odd thing is that while the Preview pane in iReport 4.5.1. still shows my document, despite the error, the PDF generated is 0 bytes.  So it seems that something in writing the PDF is where the exception is being triggered, though I have no idea what to look for.  Some times shutting down iReport, deleting the associated .pdf and .jasper files, and starting the preview process over again will work.  Though it seems to happen more frequently now.  iReport already takes really long to start up the first time, and having to restart it repeatedly to get around this issue is proving cumbersome.

Does anyone have ideas on where to start looking to get this resolved?

Here's the full text of the exception:

Exporting PDF (using iText) to file... C:\Users\sferguson\Documents\FMS\Releases\12_4\FMS\iReport\reports\06 - Positive Model Predictors.pdf!
 
Error exporting print... null
java.util.ConcurrentModificationException 
    at java.util.AbstractList$Itr.checkForComodification(Unknown Source) 
    at java.util.AbstractList$Itr.next(Unknown Source) 
    at org.jfree.chart.block.BlockContainer.draw(BlockContainer.java:219) 
    at org.jfree.chart.title.LegendTitle.draw(LegendTitle.java:537) 
    at org.jfree.chart.JFreeChart.drawTitle(JFreeChart.java:1328) 
    at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1215) 
    at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1114) 
    at net.sf.jasperreports.charts.util.DrawChartRenderer.render(DrawChartRenderer.java:60) 
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:1435) 
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:787) 
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:751) 
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:665) 
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:388) 
    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:1163) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) 
 
Export running time: 331
sfergus1's picture
Joined: Nov 22 2012 - 8:46am
Last seen: 10 years 5 months ago

0 Answers:

No answers yet
Feedback