timkuntz
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by timkuntz
-
-
I have a report with subreport(s) that hangs my application when certain data conditions occur. The hang is due to the following call to Object.wait() in the JRThreadSubReportRunner.waitResult method.
--- code snippet ---
// waiting for the subreport fill thread to fill the current page
subreportFiller.wait();
// FIXME maybe this is useless since you cannot enter
// the synchornized bloc if the subreport filler hasn't
// finished the page and passed to the wait state.
--- code snippet ---
The FIXME in the code hinted at being able to remove the wait... which I did... which fixes the problem! Does anyone know if I'm setting myself up for other problems by doing so?
Thanks,
Tim
Report Hangs App on Object.wait()
in Products
Posted
I'm a fool.
With a little more testing I realized that it solves that hang but the sub-reports are not being rendered - don't ask how I missed that!
Has anyone else run into issues with that code and come up with a solution?