Got 'java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory` in code using JasperReports API

梦想的初衷 提交于 2019-12-05 21:12:32

Your exception is not related with the Parameter issue, which apparently looks good.

It looks like you are missing Apache Commons Logging in your classpath. It runs in preview mode because your IDE does have the correct classpath.

Pradeep

Yeah that's right. "The document has no pages" means there are no records in the datasource, thus no report is generated.

You can set the property in which the report will still display the blank pages even when the data is not present in the report.

When NO Data property will allow you to choose different values and different way of showing the report in case the dataset returns zero rows or the report has not data to print.

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