Jump to content
JasperReports Library 7.0 is now available ×

Dead lock in subreports


Recommended Posts

By: Yuriy Morgunov - yuriy_morgunov

Dead lock in subreports

2003-10-02 02:01

Hi,

 

The same master and subreports as in the last topic "Infinite loop creating new page in subreports" from 2003-10-02 08:44 cause dead lock situation in case other input data provided. The thread dump looks like this:

 

"main" prio=5 tid=0x00234930 nid=0x340 in Object.wait() [6f000..6fc40]

at java.lang.Object.wait(Native Method)

- waiting on <02C2E9F8> (a dori.jasper.engine.fill.JRHorizontalFiller)

at java.lang.Object.wait(Object.java:426)

at dori.jasper.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:496)

- locked <02C2E9F8> (a dori.jasper.engine.fill.JRHorizontalFiller)

at dori.jasper.engine.fill.JRFillBand.prepareElements(JRFillBand.java:562)

at dori.jasper.engine.fill.JRFillBand.fill(JRFillBand.java:479)

at dori.jasper.engine.fill.JRFillBand.fill(JRFillBand.java:450)

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

at dori.jasper.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:649)

at dori.jasper.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:295)

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

- locked <03C7B658> (a dori.jasper.engine.fill.JRVerticalFiller)

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

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

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

 

Has anyone any idea to fix this problem??

Yuriy.

 

 

 

 

By: Teodor Danciu - teodord

RE: Dead lock in subreports

2004-01-09 14:01

 

Hi,

 

Have you placed the subreport inside a band with

isSplitAllowed="false"?

 

Thank you,

Teodor

Link to comment
Share on other sites

  • 2 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

We ran into the same problem and isSplitAllowed=false didn't solve our problem.

We found out that iReport does not give a warning when the band height of the sub report is too large to fit into the embedding master report. Just decrease the height and the hanging thread disappears. We could reproduce this behaviour: when exceeding the height by a certain amount, the preview fails as the unit test does.

 

Kay

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