internal limits in JS? (JS 1.2.1 vs. JS 2.0.1)


at the moment i migrate from JS 1.2.1 to JS 2.0.1. I have the same problem like some weeks ago when i tried to migrated from 1.2.1 to 2.0.0.

I generate every day identical reports with different data sources. The different between the data source is only the size. There are data inside from some month till one year.

With JS 1.2.1 or iReport 2.0.1 i can generate all reports without problems.

With JS 2.0.1 (also with 2.0.0) every report are generated except the one with the biggest data source.

I “played” with some java memory parameter but nothing helps, i got every time the following error.

Some ideas whats wrong or different to JS 1.2.1?

[file name=report_problem.txt size=13825]
Henry's picture
Joined: Jul 31 2006 - 9:49pm
Last seen: 17 years 1 month ago

4 Answers:


Is this OVOPiePlot a class of yours?
Because I did not find it in JFreeChart, so it must be something from your application.

Thank you,
teodord's picture
Joined: Jun 30 2006 - 9:00am
Last seen: 1 day 3 min ago
Hello Theodor,

OVOPiePlot is one of my ChartCustomizer Class. I use this class from the time that i start with jasperreport. Till now everything works without problems (iReport and JasperServer).

And now with JS 2.0.0 and 2.0.1 i have problems only with one report in combination with one datasource. The same report with a smaler datasource works fine in JS.

I have attached the file.

I use jfreechart-1.0.6.jar, jcommon-1.0.10.jar. But i have the same problems with the version that included in JS.


[file name=OVOPiePlot.txt size=2257]
Henry's picture
Joined: Jul 31 2006 - 9:49pm
Last seen: 17 years 1 month ago
If you want to get rid of the "not serializable" exception (which you should), make MyPieSectionLabelGenerator a static inner class (i.e. public static class MyPieSectionLabelGenerator extends ..).

If you don't want to use a virtualizer when filling the reports in JS, edit WEB-INF/flows/viewReportBeans.xml and remove the "virtualizerFactory" property of the "viewReportAction" bean.

lucianc's picture
Joined: Jul 17 2006 - 1:10am
Last seen: 2 hours 27 min ago
Hello Lucian,

i changed the class like you described
(public static class MyPieSectionLabelGenerator extends ...).

Now all reports are generated, also the one with the big database. Is` a database from 2006 and the report create a pdf document with 365 pages. And also the system memory/swap usage during the reporting creation looks now very well. :)

Big thanks for you help, Henry
Henry's picture
Joined: Jul 31 2006 - 9:49pm
Last seen: 17 years 1 month ago