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