Maximum execution time exceeded

Hi all,

I have a Jasperreport which is very simple ( listening of entities ) for 500 entities.

This was running all the time and is still running on my developer machine ( with the same database ) but when I execute it from the production machine i get

image

I was checking if there is any log indicating, which execution time is exceeded, but no luck.

			uiReportRunner.byReportEntity(report)
					.withOutputType(ReportOutputType.PDF)
					.withParametersDialogShowMode(ParametersDialogShowMode.NO)
					.addParam("Account", account) //  Parameter alias
					.addParam("dateFrom", dateFrom)
					.addParam("dateTo", dateTo)
					.addParam(JRParameter.REPORT_LOCALE, getLocale())
					.inBackground(this)
					.runAndShow();

Any idea ?

Regards

Felix

Hello,

I have a few ideas, yes.

  • please tell us which Jmix version it is, 2.4.x I presume

  • Can you estimate how long it takes for the error message to appear once you start the report?

  • what are your JVM memory arguments when you start the app?

  • what happens when you execute this report in Reports add-on UI interface - like create report, define template and all, and then run report?

  • is the report template same as on the dev?

  • I presume you are following Running Reports :: Jmix Documentation
    Did you try Click Code Snippets in the actions panel to generate code for running a report using the UiReportRunner interface.
    I just don’t like somehow that you don’t have .withTemplateCode()

Kind regards,
Mladen