Jump to content
  • Endless loop if textfield in summary too big

    Assigned User teodord
    CategoryBug report
    ResolutionNo Change Required

    I created a report. It contains a textfield "arrangementIncludes1". In my report setup i run into an endless loop while filling the subreport.


    I created a quickstart project with my report and a test for reproduction. After some time (with my cpu approx. 3 min 45) the java heap space is over.


    I would like to change the report layout to fix this. But if impossible an exception thrown would be better then the endless loop.

    User Feedback

    Recommended Comments



    The engine cannot raise an exception about infinite loops, because this is an undetectable runtime condition that depends on the actual data that is fed into the report, combined with a report design inconsistency.


    I your case, can you explain why you have used isPrintWhenDetailOverflows="true" for all your text fields in the summary?


    I suspect you have long texts displaying in the summary, which cause the summary to split across two pages. When doing so, you request your summary text fields to start again, in case they exhausted their content already on the previous page. This causes the summary to stretch even further and cause a page break again, and again, and again.


    Please reconsider your use of isPrintWhenDetailOverflows.


    Thank you,



    Link to comment
    Share on other sites

    Thanks Teodor,


    i moved all isPrintWhenDetailOverflows flags of my summary to false. Report looks fine - with long texts to.


    I misunderstood the meaning of this flag. The text comes from db an is user-editable. So i can't say how long it can become. So i decided to design the textfield for a nice height and set the isPrintWhenDetailOverflows flag to guarantee that whole text is printed. But it is working without it to.


    For me this is solved.




    Link to comment
    Share on other sites

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

  • Create New...