过去几天我在工作jasperserver。我想使用webservice(SOAP)将jasper报告导出到HTML页面。如果我运行客户端代码,我得到以下异常:
com.jaspersoft.jasperreports.license.LicenseException: No license provider found
at com.jaspersoft.jasperreports.license.LicenseManager.requireProvider(LicenseManager.java:94)
at com.jaspersoft.jasperreports.license.LicenseManager.requireFeature(LicenseManager.java:112)
at com.jaspersoft.jasperreports.fusion.FusionUtils.requireFusionFeature(FusionUtils.java:50)
at com.jaspersoft.jasperreports.fusion.BaseHtmlHandler.getHtmlFragment(BaseHtmlHandler.java:48)
at net.sf.jasperreports.engine.export.HtmlExporter.writeGenericElement(HtmlExporter.java:1414)
at net.sf.jasperreports.engine.export.HtmlExporter$CellElementVisitor.visit(HtmlExporter.java:2595)
at net.sf.jasperreports.engine.export.HtmlExporter$CellElementVisitor.visit(HtmlExporter.java:2513)
at net.sf.jasperreports.engine.fill.JRTemplateGenericPrintElement.accept(JRTemplateGenericPrintElement.java:164)
at net.sf.jasperreports.engine.export.HtmlExporter$TableVisitor.visit(HtmlExporter.java:2484)
at net.sf.jasperreports.engine.export.HtmlExporter$TableVisitor.visit(HtmlExporter.java:2468)
at net.sf.jasperreports.engine.export.tabulator.ElementCell.accept(ElementCell.java:57)
at net.sf.jasperreports.engine.export.HtmlExporter.exportTable(HtmlExporter.java:583)
at net.sf.jasperreports.engine.export.HtmlExporter.writeLayers(HtmlExporter.java:1461)
at net.sf.jasperreports.engine.export.HtmlExporter$TableVisitor.visit(HtmlExporter.java:2508)
at net.sf.jasperreports.engine.export.HtmlExporter$TableVisitor.visit(HtmlExporter.java:2468)
at net.sf.jasperreports.engine.export.tabulator.LayeredCell.accept(LayeredCell.java:65)
at net.sf.jasperreports.engine.export.HtmlExporter.exportTable(HtmlExporter.java:583)
at net.sf.jasperreports.engine.export.HtmlExporter.writeLayers(HtmlExporter.java:1461)
at net.sf.jasperreports.engine.export.HtmlExporter$TableVisitor.visit(HtmlExporter.java:2508)
at net.sf.jasperreports.engine.export.HtmlExporter$TableVisitor.visit(HtmlExporter.java:2468)
at net.sf.jasperreports.engine.export.tabulator.LayeredCell.accept(LayeredCell.java:65)
at net.sf.jasperreports.engine.export.HtmlExporter.exportTable(HtmlExporter.java:583)
at net.sf.jasperreports.engine.export.HtmlExporter.exportPage(HtmlExporter.java:486)
at net.sf.jasperreports.engine.export.HtmlExporter.exportReportToWriter(HtmlExporter.java:378)
at net.sf.jasperreports.engine.export.HtmlExporter.exportReport(HtmlExporter.java:236)
at flying.JSClientTest.main(JSClientTest.java:87)
我只是谷歌这个错误并得到了jasper社区的参考。他们说要传递一个名为TRANSFORMER_KEY
的参数,其中net.sf.jasperreports.transformer.html
为值。
参考链接: http://community.jaspersoft.com/wiki/jasperreports-server-license-issue-when-invoked-web-service
http://community.jaspersoft.com/wiki/how-execute-reports-containing-fusion-charts-web-services
但我不知道如何在我的客户端代码中传递此参数。