Exports for reports containing HTML5 charts suddenly fails

Hi,

It has come to our attention that exports for a report containing HTML5 Charts has recently been failing.Ā  We have done some investigation and this issue is related to a process which uses chromium to render report contents.Ā  Can you please advise if there is any workaround for this issue?

Note: There are no useful logs on the server as we assume this is an internal issue for the interaction between chromium and the operating system components.Ā  Ā All we can see on the logs is something like below:

2023-03-15T02:07:57,880 ERROR SecureExceptionHandlerImpl,pool-14-thread-1288:116 - There was an error on the server. Try again or contact site administrators. (Error UID: 99892324-25f4-478f-8935-86347579abbf)

Attached sample screen below for visualization:

chris.daculan's picture
Joined: May 24 2022 - 4:14pm
Last seen: 2 months 1 week ago

3 Answers:

Chromium 111 introduced a couple of incompatibilities with the library used to connect via the DevTools Protocol.

You can workaround the problem by adding the following properties to WEB-INF/classes/jasperreports.properties:

net.sf.jasperreports.chrome.page.isolate=true
net.sf.jasperreports.chrome.argument.remote-allow-origins=*

Regards,

Lucian

lucianc's picture
77036
Joined: Jul 17 2006 - 1:10am
Last seen: 13 hours 29 min ago

This is a known issue. Please apply Lucain's solution on the server. You need to Restart the Jaspersoft tomcat service for the settings to take effect.

JRS-SE's picture
5497
Joined: Oct 30 2017 - 12:56pm
Last seen: 8 hours 24 min ago

Thanks a lot Lucian for this.Ā  Exports are now working as they were before.

chris.daculan's picture
Joined: May 24 2022 - 4:14pm
Last seen: 2 months 1 week ago
Feedback
randomness