matthias.bauer_1 Posted March 15, 2023 Share Posted March 15, 2023 Hello,I have tried to preview a designed pixel report, build on Jasperoft Studio 7.9.My report contains a HTM5 chart. The report does not work as excepted and i got an error.Reports without theese charts will be shown as usual and run without exceptions.Is there anybody who can help or have the same issue?I have got the following error message since 01.03.2023 on reports working with HTML5 Charts:net.sf.jasperreports.engine.JRRuntimeException: com.github.kklisura.cdt.services.exceptions.ChromeServiceException: Server responded with non-200 code: 405 - Method Not Allowed. Using unsafe HTTP verb GET to invoke /json/new. This action supports only PUT verb. at com.jaspersoft.jasperreports.highcharts.charts.ChartPptxHandler.exportElement(ChartPptxHandler.java:45) at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportGenericElement(JRPptxExporter.java:2066) at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportElement(JRPptxExporter.java:737) at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportPage(JRPptxExporter.java:618) at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportReportToStream(JRPptxExporter.java:514) at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportReport(JRPptxExporter.java:311) at com.jaspersoft.studio.editor.preview.actions.export.AExportAction.exportWithProgress(AExportAction.java:223) at com.jaspersoft.studio.editor.preview.actions.export.AExportAction.doPreview(AExportAction.java:346) at com.jaspersoft.studio.editor.preview.actions.export.AExportAction$3.run(AExportAction.java:194) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)Caused by: com.github.kklisura.cdt.services.exceptions.ChromeServiceException: Server responded with non-200 code: 405 - Method Not Allowed. Using unsafe HTTP verb GET to invoke /json/new. This action supports only PUT verb. at com.github.kklisura.cdt.services.impl.ChromeServiceImpl.request(ChromeServiceImpl.java:290) at com.github.kklisura.cdt.services.impl.ChromeServiceImpl.createTab(ChromeServiceImpl.java:137) at com.github.kklisura.cdt.services.impl.ChromeServiceImpl.createTab(ChromeServiceImpl.java:132) at net.sf.jasperreports.chrome.StandardPageCreator.lambda$runInPage$0(StandardPageCreator.java:57) at net.sf.jasperreports.chrome.ChromeInstance.runWithChromeInstance(ChromeInstance.java:92) at net.sf.jasperreports.chrome.StandardPageCreator.runInPage(StandardPageCreator.java:52) at net.sf.jasperreports.chrome.BrowserService.evaluateInPage(BrowserService.java:98) at com.jaspersoft.jasperreports.highcharts.charts.render.ChromeSVGProducer.getChartSvg(ChromeSVGProducer.java:155) at com.jaspersoft.jasperreports.highcharts.charts.render.DefaultChartSvgProducer.getChartSvg(DefaultChartSvgProducer.java:31) at com.jaspersoft.jasperreports.highcharts.charts.render.ChartSvgImageProducer.createRenderable(ChartSvgImageProducer.java:99) at com.jaspersoft.jasperreports.highcharts.charts.render.ChartSvgImageProducer.getChartImage(ChartSvgImageProducer.java:52) at com.jaspersoft.jasperreports.highcharts.charts.ChartPptxHandler.exportElement(ChartPptxHandler.java:41) ... 9 more BRMatze Link to comment Share on other sites More sharing options...
Solution lucianc Posted March 16, 2023 Solution Share Posted March 16, 2023 Set the following two properties under Settings/Jaspersoft Studio/Properties:net.sf.jasperreports.chrome.page.isolate=truenet.sf.jasperreports.chrome.argument.remote-allow-origins=*[/code]A background, the problem is caused by Chrome/Chromium 111 introducing changes that makes it incompatible with the library used to connect to the Devtools Protocol. The two properties above are workarounds for the incompatibilities.Regards,Lucian Link to comment Share on other sites More sharing options...
matthias.bauer_1 Posted March 16, 2023 Author Share Posted March 16, 2023 Thanks a lot, this solved my problem! Link to comment Share on other sites More sharing options...
gootjemar Posted March 20, 2023 Share Posted March 20, 2023 I've got the same issue and added the 2 properties (well, the isolate one was an edit from false to true), but I still got the same error message. Even after restarting it shows the same.Is there another way of avoiding this? Does it need to use Chrome? Link to comment Share on other sites More sharing options...
ramakanta.biswal Posted March 29, 2023 Share Posted March 29, 2023 Hi, I have added this 2 properties in jasperreports.properties, restart server, still did not help. Where exactly we need to have these properties ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now