How can I solve “No report compiler set for language : null” error?

吃可爱长大的小学妹 提交于 2019-12-12 04:34:45

问题


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



来源:https://stackoverflow.com/questions/19380439/how-can-i-solve-no-report-compiler-set-for-language-null-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!