Jasper connector generating empty report

Hello,

I am trying to use Jasper connector to generate report in Bonita 6.3.7 version. But the generated report is empty. I went through the Bonita Jasper connector code and found the following bug which was causing the empty report. The following is just logical representation of the code.

If(PDF) { ....export to stream... byte[] content = outStream.toByteArray(); ......... } else if(HTML) { ....export to stream... byte[] content = outStream.toByteArray(); ......... } else if(.....some type...) { ............. } byte[] content; ......create DocumentValue with the byte content...... ......set outputparameter..........

So, the DocumentValue is initialized with null content variable.

Thanks,
Hari Alla

Hello,

Any help on this would be appreciated.

Hello,

The issue is with the report. The report has property selected as “when no data no pages”. Now it is working.

Thanks for all help.

Hi,
I don’t understand where you see a bug in the code.
When I use the jasper connector, I don’t obtain empty report. It depends of the jrxml file that you use.

The bug is in code line 12 and 13 in the above code snippets that i have pasted. The “content” variable is declared and initialized inside the if statements which have statement scope. The actual DocumentValue object is created with content variable which is just declared and not initialized.

I don’t see this is the sources on github.
https://github.com/bonitasoft/bonita-connector-jasper/blob/master/bonita-connector-jasper-impl/src/main/java/org/bonitasoft/connectors/jasper/CreateReportFromDataBase.java
In the function createJasperReportFromDataBase() I don’t find the equivalent of your line 12.

Hello,
I am looking into the Jasper connector code that i have got with Bonita6.3.7 community edition. The version is “bonita-connector-jasper-impl-1.0.0.jar”. As i am not sure that which release build pushed into the connector code, i did decompile the jar and looked into the code.

Is there any repository place from where i can download the connector jar?

Thanks for your quick response.

Hello,

Any help on this would be appreciated.

Hi I could indicate the passes as getting display or download a report in the portal, first generate my studio jrxml jasper file. The version I use is Bonita 6.3.7 community