Jump to content
We've recently updated our Privacy Statement, available here ×

Infinite loop creating new page


2005 IR Help

Recommended Posts

By: John Bester - johnbester

Infinite loop creating new page

2004-01-28 08:47

I am trying to create my first test report. After quite a bit of struggling I got past some hurdles, but now I get this error:

 

at dori.jasper.engine.fill.JRVerticalFiller.fillColumnBreak(JRVerticalFiller.java:1064)

at dori.jasper.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1146)

at dori.jasper.engine.fill.JRVerticalFiller.fillColumnHeader(JRVerticalFiller.java:481)

at dori.jasper.engine.fill.JRVerticalFiller.fillPageBreak(JRVerticalFiller.java:1046)

at dori.jasper.engine.fill.JRVerticalFiller.fillPageBand(JRVerticalFiller.java:1115)

at dori.jasper.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:416)

at dori.jasper.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:268)

at dori.jasper.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:182)

at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:524)

at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:433)

at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:119)

at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:219)

at dori.jasper.engine.JasperManager.fillReport(JasperManager.java:738)

 

My code looks like this:

new JasperCompileManager().compileReportToFile("C:\Test.xml", "C:\Test.jasper");

JasperReport report = JasperManager.loadReport("C:\Test.jasper");

JasperPrint print = JasperManager.fillReport(report, new HashMap(), getConnection());

print.setPageHeight(2000);

print.setPageWidth(500);

JasperManager.printReportToPdfFile(print, "C:\Test.pdf");

(Exception on last command)

 

The report itself is straight forward. It has a few images of 200x200, but no fields. I set up a dummy SQL query, because without it an empty pdf was generated.

 

Can anyone help?

 

Regards

John Bester

 

 

 

 

By: Teodor Danciu - teodord

RE: Infinite loop creating new page

2004-01-31 01:36

 

Hi,

 

I have to see this XML.

There is some layout problem inside which is not

detectable at compile time.

 

teodord@users.sourceforge.net

 

Thank you,

Teodor

 

 

 

 

 

By: John Bester - johnbester

RE: Infinite loop creating new page

2004-02-07 08:48

I solved the problem by increasing the page size. It seems like the image I put in the report was bigger than the page size. Jasper tried to handle the problem by shifting the complete image to a new page - where the exact same situation would cause an infinite loop of creating new pages.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...