Jasper connector generating empty report

1
0
-1

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

Comments

Submitted by yannick.lombardi on Thu, 10/30/2014 - 15:41

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.

Submitted by halla1 on Thu, 10/30/2014 - 15:48

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.

Submitted by yannick.lombardi on Fri, 10/31/2014 - 11:37

I don't see this is the sources on github. https://github.com/bonitasoft/bonita-connector-jasper/blob/master/bonita...

In the function createJasperReportFromDataBase() I don't find the equivalent of your line 12.

Submitted by halla1 on Fri, 10/31/2014 - 13:16

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.

2 answers

1
0
-1
This one is the BEST answer!

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.

Comments

Submitted by vguzman.ch on Tue, 11/04/2014 - 04:33

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

1
0
-1

Hello,

Any help on this would be appreciated.

Comments

Submitted by halla1 on Mon, 11/03/2014 - 13:05

Hello,

Any help on this would be appreciated.

Notifications