Java Error while Preview a Java Report


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: 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(
    at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportGenericElement(
    at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportElement(
    at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportPage(
    at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportReportToStream(
    at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportReport(
Caused by: 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.render.ChromeSVGProducer.getChartSvg(
    at com.jaspersoft.jasperreports.highcharts.charts.render.DefaultChartSvgProducer.getChartSvg(
    at com.jaspersoft.jasperreports.highcharts.charts.render.ChartSvgImageProducer.createRenderable(
    at com.jaspersoft.jasperreports.highcharts.charts.render.ChartSvgImageProducer.getChartImage(
    at com.jaspersoft.jasperreports.highcharts.charts.ChartPptxHandler.exportElement(
    ... 9 more




matthias.bauer_1's picture
Joined: Nov 30 2018 - 3:47am
Last seen: 1 week 1 day ago

Thanks a lot, this solved my problem!

matthias.bauer_1 - 1 week 6 days ago

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?

gootjemar - 1 week 3 days ago

Hi, I have added this 2 properties in, restart server, still did not help. Where exactly we need to have these properties ?

ramakanta.biswal - 1 day 1 hour ago

1 Answer:

Set the following two properties under Settings/Jaspersoft Studio/Properties:*

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.



lucianc's picture
Joined: Jul 17 2006 - 1:10am
Last seen: 27 min 53 sec ago