Jump to content
We've recently updated our Privacy Statement, available here ×

p.roukens

Members
  • Posts

    4
  • Joined

  • Last visited

p.roukens's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Solved. The Jasper Studio plugin uses an old version of the library. When using the org.json library without using the iterator it works! Still curious on how to send (console) messages from my custom data classes to the Jasper Studio plugin when previewing/debugging in Eclipse!!
  2. Hi kkriplani, Thanks for your reply. I don't think this is the problem since I'm testing the report in the Eclipse environment using the Jasper Studio plugin. When I test the data source from a java app it gives me the expected results so the REST webservice isn't the source of the problem. I think the Jasper Studio plugin uses an old version of the org.json library which hasn't got the iterator() property on the JSONArray object. I will try to use another library parse the json result and see if this resolves it. Do you know how to send (console) messages to the Jasper Studio Plugin from my custom data source class? This would make it much easier for me to debug the source of the problem. Regards, Pierre
  3. Hi all, I'm trying to create a custom datasource that uses an JSON REST web service. To accompish this I've created a class which implements JRDataSource and one that implements JRDataSourceProvider. When I run the application the JSON data is retrieved and listed. I've created a new report.jrxml in Eclipse using the Jaspersoft Studio plugin. I assigned my custom data provider and the report fields are found and added to my report. But when I try to preview the report I get an error; Start Report ExecutionCompiling report......DONEStartingSetting Data Adapter...DONESetting Virtualizer...DONEFilling Report........ERRORnet.sf.jasperreports.engine.JRException: java.lang.NoSuchMethodError: org.json.JSONArray.iterator()Ljava/util/Iterator; at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:524) at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$20(ReportControler.java:499) at com.jaspersoft.studio.editor.preview.view.control.ReportControler$5.run(ReportControler.java:380) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)Caused by: java.lang.NoSuchMethodError: org.json.JSONArray.iterator()Ljava/util/Iterator; at net.pfacto.factuur.reporting.data.RelationData.getJsonData(RelationData.java:87) at net.pfacto.factuur.reporting.data.RelationData.<init>(RelationData.java:37) at net.pfacto.factuur.reporting.data.RelationData.getDataSource(RelationData.java:120) at net.pfacto.factuur.reporting.data.RelationDataProvider.create(RelationDataProvider.java:12) at net.sf.jasperreports.data.provider.DataSourceProviderDataAdapterService.contributeParameters(DataSourceProviderDataAdapterService.java:127) at net.sf.jasperreports.engine.fill.JRFillDataset.contributeParameters(JRFillDataset.java:1034) at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:634) at net.sf.jasperreports.engine.fill.BaseReportFiller.setParameters(BaseReportFiller.java:436) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:526) at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119) at java.lang.Thread.run(Unknown Source)[/code]Not sure what happens since the error indicates a NoSuchMetthod but the json library is included (maven) and the data is retrieved when testing. I tried to add some feedback to the console by using System.out.println, using logger or org.apache.commons.logging but nothing is showing when using the preview. How to log messages from my classes when using the preview? And maybe someone has an idea of what the error could be? Thanks!
  4. Hello, I've setup Jasperserver community edition 5.5.0 using the WAR installation (jasperreports-server-cp-5.5.0a-bin) on Tomcat 7. Everything works, I can login create users, connection etc. I deployed a very basic report from Jaspersoft Studio (5.5.2 final) and when I try to open it from the library the report opens, a popup is showing "Please wait - Loading" and thats it. Nothing happens, the report is not showing. And the log is completely empty, no error or warning. What can be wrong and how to debug this? Regards, Pierre
×
×
  • Create New...