Problems with jasperreport in Version 6.10.x

Hi,

I am working on an cuba-application with jasperreports 6.5 for pdf-generating.
I did the report-generator in a StartJasperReportService, where i can get a connection to the database
via injected Persistance with:

con = persistence.getDataSource().getConnection();

I am passing this connection to the JasperFillManager in this way:

oJasperPrint = JasperFillManager.fillReport(reportJasperNameWithPath, hm4Jasper, con);

Now my problem:

After upgrading my Application vom cuba 6.7.x to cuba 6.10.7
this is not longer working (I dont think, I changed something else in this part of
the application).

When I call this StartJasperReportService - method, I get following Exception-Stack:

calling:
oJasperPrint = JasperFillManager.fillReport(reportJasperNameWithPath, hm4Jasper, con):

java.lang.NoClassDefFoundError: org/apache/commons/javaflow/core/StackRecorder
at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java)
at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:120)
at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:319)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:850)

I tryed to do this call not in a service, but just on my screen-class, where the report was started,
but I don’t know, if it is possible to get a connection ?

By the way, it seems there is no prodcutive release of the org/apache/commons/javaflow on the apache site.

Has anyone an idea ?

Thanks all

Hi,

Try to add dependency to org/apache/commons/javaflow to build.gradle.
Cuba doesn’t use JasperReports, only Reporting addon uses JasperReports. But the version is the same for cuba 6.7.x and cuba 6.10.7

Hi,
thanks for your help. Its quite mysterious. I checked, but the only thing, that was changed, was
the Cuba-Version.
In the meantime I found an old commons-javaflowxx.jar from a former project. With this
it works again.

Thank you.