On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
[2.3.1] Run / RunAnRender - Not the same behaviour
Erwan
Junior Member
Hi,<br />
<br />
First of all, i would like to apologize for my poor english.<br />
<br />
I have noticed a different behaviour between the Run and the RunAnRender tasks. <br />
<br />
My reports use libraries, external js,css and properties.<br />
<br />
When i generate a report with the RunAndRender task in pdf format, i have no error, but a script dataset doesn't work correctly. This dataset is a jdbc dataset which returns a list of authors. In the "onFetch" script function, i denormalized the query in order to store the authors in one string. This variable is used in the footer of the master page. This worked in the 2.2.2, but in the 2.3.1 the string contains only the first author ! Also, when i generate a report with the Run task i get the whole list of authors !<br />
<br />
When i generate a report with the Run task, i get the following error :<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>org.eclipse.birt.report.engine.api.impl.ReportDocumentWriter saveDesign
GRAVE: Failed to save design!
java.lang.NullPointerException
at org.eclipse.birt.report.model.util.ReportDesignSerializer.addExternalElement(ReportDesignSerializer.java:418)
at org.eclipse.birt.report.model.util.ReportDesignSerializer.addExternalElement(ReportDesignSerializer.java:372)
at org.eclipse.birt.report.model.util.ReportDesignSerializer.addExternalElement(ReportDesignSerializer.java:372)
at org.eclipse.birt.report.model.util.ReportDesignSerializer.addExternalElements(ReportDesignSerializer.java:329)
at org.eclipse.birt.report.model.util.ReportDesignSerializer.visitReportDesign(ReportDesignSerializer.java:208)
at org.eclipse.birt.report.model.elements.ReportDesign.apply(ReportDesign.java:89)
at org.eclipse.birt.report.model.api.util.DocumentUtil.localizeDesign(DocumentUtil.java:90)
at org.eclipse.birt.report.model.api.util.DocumentUtil.serialize(DocumentUtil.java:67)
at org.eclipse.birt.report.engine.api.impl.ReportDocumentWriter.saveDesign(ReportDocumentWriter.java:201)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:201)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:90)
at fr.ifremer.birt.product.engine.logic.ReportEngine.generateDocument(ReportEngine.java:223)
at fr.ifremer.birt.product.engine.service.TestReportEngine.main(TestReportEngine.java:54)
</pre>
<br />
I have tried to split my report in order to test where this error comes. This error appears in only some pages of my report. The pages in error use crosstabs. If i remove crosstab it works !<br />
<br />
With this erros, i can't generate any report from rptdocument !<br />
<br />
have you any idea ?
<br />
First of all, i would like to apologize for my poor english.<br />
<br />
I have noticed a different behaviour between the Run and the RunAnRender tasks. <br />
<br />
My reports use libraries, external js,css and properties.<br />
<br />
When i generate a report with the RunAndRender task in pdf format, i have no error, but a script dataset doesn't work correctly. This dataset is a jdbc dataset which returns a list of authors. In the "onFetch" script function, i denormalized the query in order to store the authors in one string. This variable is used in the footer of the master page. This worked in the 2.2.2, but in the 2.3.1 the string contains only the first author ! Also, when i generate a report with the Run task i get the whole list of authors !<br />
<br />
When i generate a report with the Run task, i get the following error :<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>org.eclipse.birt.report.engine.api.impl.ReportDocumentWriter saveDesign
GRAVE: Failed to save design!
java.lang.NullPointerException
at org.eclipse.birt.report.model.util.ReportDesignSerializer.addExternalElement(ReportDesignSerializer.java:418)
at org.eclipse.birt.report.model.util.ReportDesignSerializer.addExternalElement(ReportDesignSerializer.java:372)
at org.eclipse.birt.report.model.util.ReportDesignSerializer.addExternalElement(ReportDesignSerializer.java:372)
at org.eclipse.birt.report.model.util.ReportDesignSerializer.addExternalElements(ReportDesignSerializer.java:329)
at org.eclipse.birt.report.model.util.ReportDesignSerializer.visitReportDesign(ReportDesignSerializer.java:208)
at org.eclipse.birt.report.model.elements.ReportDesign.apply(ReportDesign.java:89)
at org.eclipse.birt.report.model.api.util.DocumentUtil.localizeDesign(DocumentUtil.java:90)
at org.eclipse.birt.report.model.api.util.DocumentUtil.serialize(DocumentUtil.java:67)
at org.eclipse.birt.report.engine.api.impl.ReportDocumentWriter.saveDesign(ReportDocumentWriter.java:201)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:201)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:90)
at fr.ifremer.birt.product.engine.logic.ReportEngine.generateDocument(ReportEngine.java:223)
at fr.ifremer.birt.product.engine.service.TestReportEngine.main(TestReportEngine.java:54)
</pre>
<br />
I have tried to split my report in order to test where this error comes. This error appears in only some pages of my report. The pages in error use crosstabs. If i remove crosstab it works !<br />
<br />
With this erros, i can't generate any report from rptdocument !<br />
<br />
have you any idea ?
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax