How can I solve “No report compiler set for langua

2019-08-30 03:01发布

问题:

My project is using jasper ireport v(2.5) and I made a report using jasper ireport v(4.5), when I am integrating with java application it throws following error.

I did everything "like:- jar files, and edited language=java in xml" but still it shows error.

net.sf.jasperreports.engine.JRException: No report compiler set for language : null
11:00:15,593 ERROR [STDERR]     at net.sf.jasperreports.engine.JasperCompileManager.getCompiler(JasperCompileManager.java:508)
11:00:15,593 ERROR [STDERR]     at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:219)
11:00:15,593 ERROR [STDERR]     at com.Utilities.JasperReport.getReport(Unknown Source)
11:00:15,593 ERROR [STDERR]     at com.Report.Payment.ChequedebitAction.Submit(Unknown Source)
11:00:15,593 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:00:15,593 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:00:15,594 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:00:15,594 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)

回答1:

With reference to this link, i have set my language and now my report is working fine.

The link states

Make sure 'Language' is included within the XMLXS header (check the XML tab, it commonly defaults to Groovy) though for creating report for the purpose on uploading them into OIA, the language needs to be java. I don't know what it continues to resets itself even after I make the saves though it seems to default to groovy