timkuntz Posted August 18, 2006 Share Posted August 18, 2006 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 pagesubreportFiller.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 Link to comment Share on other sites More sharing options...
timkuntz Posted August 18, 2006 Author Share Posted August 18, 2006 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? Link to comment Share on other sites More sharing options...
teodord Posted August 23, 2006 Share Posted August 23, 2006 Hi, What version of JasperReports are you using?Could you post some files here in the form of a sample that would help us to reproduce the problem? Thank you,Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now