The World’s Largest Online Community for Developers

'; java - Jasperreport problem wtih subreport using javaflow - LavOzs.Com

I have a problem with subreport using javaflow with Jasperreport 6.7.0 according to The Definitive Guide to JasperReports – Teodor Danciu, Lucian Chirita, page 130. I need it to avoid different threads call when the report is calling in our application because of valuable reasons.

There is the setting at


And when I run a my report with more then 5 rows got an error:

java.lang.IllegalStateException: Stack corruption on suspend (empty stack). Is net.sf.jasperreports.engine.fill.JRContinuationSubreportRunner@2024896527/org.apache.catalina.loader.WebappClassLoader@1847497893 instrumented for javaflow? at org.apache.commons.javaflow.core.StackRecorder.execute( at org.apache.commons.javaflow.api.Continuation$MultiShotContinuation.resumeWith( at org.apache.commons.javaflow.api.Continuation.resume( at org.apache.commons.javaflow.api.Continuation.startWith( at org.apache.commons.javaflow.api.Continuation.startWith( at org.apache.commons.javaflow.api.Continuation.startWith( at net.sf.jasperreports.engine.fill.JRContinuationSubreportRunner.start( at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare( at net.sf.jasperreports.components.table.fill.FillTableSubreport.prepareSubreport( at net.sf.jasperreports.components.table.fill.FillTable.prepare( at net.sf.jasperreports.engine.fill.JRFillComponentElement.prepare( at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements( at net.sf.jasperreports.engine.fill.JRFillBand.fill( at net.sf.jasperreports.engine.fill.JRFillBand.fill( at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand( at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail( at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart( at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport( at net.sf.jasperreports.engine.fill.JRBaseFiller.fill( at net.sf.jasperreports.engine.fill.BaseReportFiller.fill( at net.sf.jasperreports.engine.fill.JRFiller.fill( at net.sf.jasperreports.engine.fill.JRFiller.fill( at org.wgsoftpro.reposerver.SetReport.fillReport( at org.wgsoftpro.reposerver.SetReport.runReport( at at org.apache.catalina.core.AsyncContextImpl$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at

If there are less rows report is running without problem.

I have dependency at pom.xml to get org.apache.commons.javaflow.api


Any suggetion will be estimated.

UPDATE: I got the same error with net.tascalate.javaflow.api version 2.2.1

UPDATE 2: I found out that if we make the pageHeight bigger and all data fit to one page, everything works. So the problem is connected to second page initializing

<jasperReport xmlns="" xmlns:xsi="" xsi:schemaLocation="" name="vetmed" language="javascript" pageWidth="595" ***pageHeight="1500"*** columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c2935bae-a905-4770-8aca-21bb3b76afde">

The vanilla JasperReports jar (as published on Maven) is not instrumented for JavaFlow.

There's a variant of the jar that can be downloaded from SourceForge, see jasperreports-javaflow-6.7.0.jar

But that jar is not published on Maven, so you'll need to find a way to use it in your build. See this answer for some ways to do that.

Disclosure: I'm a maintainer of Tascalate JavaFlow library. It looks like you didn't instrument necessary continuable classes during build.

Tascalate Javaflow provides both Ant task and Maven plugin, I'm not sure what works best with Jasper Reports, but you have either: -- include Maven build plugin as descibed here. -- setup Ant as with this example.

Or probably you have a mix of continuable / non-continuable methods on calls chain.

Also, according to info on Maven Central Jasper Reports 6.7 uses Tascalate JavaFlow 2.2.1 -- it's a bad idea to create a versioning hell with adding higher version (2.4.0)

how to output different two chart in jasperreport?
Jasper sub report error
Jasper reports: getting errors of class not found
JasperReport: How to get date from the "oracle.sql.TIMESTAMP' field?
An error has occurred. Please contact your system administrator. (6632) error in Jasper server 6.2
Barcode creation in Jasper report: n is not a valid character for Standard 2 of 5 encoding
Call Jasper subreports in java
JRException Resource not found at when there is a subreport in Jasper Report