Bad HTML tags issue - The file is damaged and could not be repaired

Options
Dharmendra
edited February 11, 2022 in Analytics #1
<p><span>Hi All,

In one of my report we are using dynamic text to show text in report.

In my database data is stored in below format,

<span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0">Test Data</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>

I am generating report in PDF format.

When i generate report, i am getting null pointer exception with below trace,

Please find attached error trace for the same,

, But when I replace display:block with null in onRender event of dynamic text, it is working fine.

Please let me know, if there is any exact solution to it, and if there are some other tags which when exist alone, or in nested format can cause this type of exception.</span></p>

Comments

  • <div>Use a Text item and set the formatting to HTML.  In the contents of the text item I used the following and it works fine for me.</div><div> </div><div><VALUE-OF format="HTML">row["htmldata"]</VALUE-OF></div><div> </div><div>row["htmldata"] contains the data exactly as it is in your post.  See attached rptdesign I created using BIRT Designer Pro from Actuate. The design uses a static data set that contains the HTML data from your post.</div>
  • Dharmendra
    edited March 20, 2014 #3
    Options
    <p>Hi Murphy,

    Thanks for your reply.

    I tried with the rptdesign file sent by you. But is is giving me same error.

    I tried it with birt version 4.2.2.

    Attaching the screenshot(Errors.jpg) of the errors i am getting.

    I created new report with the steps followed by you, in your report.

    PFA, the sample report(new_report.rptdesign).

    But, still i am getting the same errors, which we used to get earlier, with the data in first post.

    Please let me know, if there is anything i am missing here?</p>