laan_sachin Posted September 7, 2010 Share Posted September 7, 2010 Hi Jasper Team,First I would like to appreciate for provding the tool with good capabilities.My Requirement : I have a report with 3 or 4 pages where I want a section in 2nd page (which will be well within a page) not to spill over two pages. If the content cannot be filled in the remaining space of a page, it should be page breaked and printed in the next page. (This section has a sub-report which inturn some more sub-reports but all within a page.)What I did : I set the detail band property to 'Split Type' to 'Prevent'.Problem: When i run the reports with test data, for some of the inputs i get the below exception. I dont know wat to do.If i give some vertical space between the first object from the detail band line, it works. But i cant be sure of that.??? - Is this a right way to prevent a page filling across two pages. Kindly help me on this.Filling reportERROR suspend, Fill 27759687: exception Code:Filling reportERROR suspend, Fill 27759687: exceptionjava.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.suspend(JRThreadSubreportRunner.java:185) at net.sf.jasperreports.engine.fill.JRBaseFiller.suspendSubreportRunner(JRBaseFiller.java:2099) at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(JRVerticalFiller.java:1836) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBreak(JRVerticalFiller.java:1921) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBreak(JRVerticalFiller.java:1950) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:733) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:289) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:131) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:942) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:860) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:612) at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:205) at java.lang.Thread.run(Thread.java:619)ERROR suspend, Fill 2301493: exceptionjava.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.suspend(JRThreadSubreportRunner.java:185) at net.sf.jasperreports.engine.fill.JRBaseFiller.suspendSubreportRunner(JRBaseFiller.java:2099) at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(JRVerticalFiller.java:1836) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBreak(JRVerticalFiller.java:1921) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBreak(JRVerticalFiller.java:1950) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:733) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:289) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:131) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:942) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:860) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:612) at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:205) at java.lang.Thread.run(Thread.java:619)ERROR suspend, Fill 26489568: exceptionjava.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.suspend(JRThreadSubreportRunner.java:185) at net.sf.jasperreports.engine.fill.JRBaseFiller.suspendSubreportRunner(JRBaseFiller.java:2099) at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(JRVerticalFiller.java:1836) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBreak(JRVerticalFiller.java:1921) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBreak(JRVerticalFiller.java:1950) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:733) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:289) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:131) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:942) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:860) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:612) at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:205) at java.lang.Thread.run(Thread.java:619)ERROR suspend, Fill 698896: exceptionjava.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.suspend(JRThreadSubreportRunner.java:185) at net.sf.jasperreports.engine.fill.JRBaseFiller.suspendSubreportRunner(JRBaseFiller.java:2099) at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(JRVerticalFiller.java:1836) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBreak(JRVerticalFiller.java:1921) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBreak(JRVerticalFiller.java:1950) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:733) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:289) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:131) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:942) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:860) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:612) at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:205) at java.lang.Thread.run(Thread.java:619) Link to comment Share on other sites More sharing options...
y_lorimier Posted June 6, 2011 Share Posted June 6, 2011 Hi Jasper Team,I've seen that there is no answer yet to this problem.As far as I'm concerned, I encounter the same problem. Is there any solution?Of course, the report is produced, but so many errors makes me anxious on the validity of the result produced...Can you give us an answer please.Best Regards Link to comment Share on other sites More sharing options...
mouseman Posted July 14, 2011 Share Posted July 14, 2011 From here: http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=42700I've gotten the same problem. It was due to my detail band that wasn't "split allowed" and it was large. When trying to make it fit on one page, it couldn't. By selecting "split allowed" the problem is resolved. And here: http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=30160In my case, these exceptions were being caused by uncaught exceptions being thrown from within a custom chart scriptlet referenced by the JRXML file.The chart scriptlet was throwing a NullPointerException that was not being caught or logged. This appears to send the interrupt signal to the thread that Jasper has created to perform the sub-report filling work.I tracked it down by wrapping my entire scriptlet's invocation with a try/catch Throwable and then narrowed down the offending code from there.Related bug report:http://jasperforge.org/projects/jasperreports/tracker/view.php?id=5086Post Edited by mouseman at 07/14/2011 16:31 Link to comment Share on other sites More sharing options...
villanueva.ricardo Posted January 21, 2013 Share Posted January 21, 2013 Hi. I resolved a similar case. the exception was caused by the sumatory of heights of every band was higher that height of the page. I had to calculate the height available for the subreport and I configured in the height of the band "detail" of the subReport. Hope this information helps,Ricardo Villanueva Link to comment Share on other sites More sharing options...
BOFR Posted May 20, 2015 Share Posted May 20, 2015 Hi,I couldn't properly resolved this problem.If "Split Type" = Prevent in my parent report "Detail" band properies, error logs are present. I've to keep "Split Type" = Prevent, to avoid splitting of my subreport.I don't understand why error logs are present ?However, my PDF document is OK.Is anyone has an answer ?Best Regards.BOO Link to comment Share on other sites More sharing options...
mike2tango Posted January 14, 2016 Share Posted January 14, 2016 @BOO, I have the same as you have, except I also have unwanted blank page at the beginning of the document (rest of docu seems ok). But this error is annoying and filling up logs.. @Jaspersoft, Since I am using 5.6.1 is this still a problem im future releases, like 6.1 or 6.2? Maybe jaspersoft can actually show the real error instead of this swallow? 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