Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Null pointer exception when group heading in detail row and detail row over 1 page long
Null pointer exception when group heading in detail row and detail row over 1 page long [message #1698422] Mon, 15 June 2015 13:43 Go to next message
Andreas Pleuss is currently offline Andreas PleussFriend
Messages: 18
Registered: June 2015
Junior Member
Hi,

I get a null pointer exception during PDF output when the group heading is in the detail row (i.e., drop="detail") and the content of a detail row is so long that it does not fit on one page (e.g., because it contains very long content such as sub-table).

I have created a simple sample report that shows the issue based on the sample data base (see attachment). The exception occurs only for PDF generation; HTML works fine. The exception stack trace is shown below.

Is this a known bug? Is there any workaround (while still having the group header displayed in the details row)?

Many thanks for any hints.

-------------------
Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2363)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:191)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:937)
... 38 more
Caused by: java.lang.NullPointerException
at org.eclipse.birt.report.engine.nLayout.area.impl.TableLayout.createDummyCell(TableLayout.java:1052)
at org.eclipse.birt.report.engine.nLayout.area.impl.TableLayout.updateRow(TableLayout.java:882)
at org.eclipse.birt.report.engine.nLayout.area.impl.TableLayout.addRow(TableLayout.java:737)
at org.eclipse.birt.report.engine.nLayout.area.impl.TableArea.addRow(TableArea.java:79)
at org.eclipse.birt.report.engine.nLayout.area.impl.RowArea.close(RowArea.java:141)
at org.eclipse.birt.report.engine.nLayout.LayoutEngine.closeContainer(LayoutEngine.java:376)
at org.eclipse.birt.report.engine.nLayout.LayoutEngine.endTableContainer(LayoutEngine.java:646)
at org.eclipse.birt.report.engine.nLayout.LayoutEngine.endRow(LayoutEngine.java:657)
at org.eclipse.birt.report.engine.emitter.CompositeContentEmitter.endRow(CompositeContentEmitter.java:179)
at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.flushRow(HTMLTableLayoutEmitter.java:365)
at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.flush(HTMLTableLayoutEmitter.java:312)
at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.endTableGroup(HTMLTableLayoutEmitter.java:492)
at org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.endContent(ContentEmitterUtil.java:133)
at org.eclipse.birt.report.engine.layout.html.buffer.AbstractNode.end(AbstractNode.java:69)
at org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBuffer._endContainer(HTMLPageBuffer.java:158)
at org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBuffer.endContainer(HTMLPageBuffer.java:146)
at org.eclipse.birt.report.engine.layout.html.buffer.TableBreakBuffer.endContainer(TableBreakBuffer.java:360)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.end(HTMLStackingLM.java:42)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:141)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
at org.eclipse.birt.report.engine.layout.html.HTMLRepeatHeaderLM.layoutChildren(HTMLRepeatHeaderLM.java:46)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:181)
Re: Null pointer exception when group heading in detail row and detail row over 1 page long [message #1722959 is a reply to message #1698422] Wed, 10 February 2016 14:21 Go to previous messageGo to next message
John Palof is currently offline John PalofFriend
Messages: 18
Registered: July 2009
Junior Member
I am seeing the same issue. Was this issue reported as a bug or a solution found?
Re: Null pointer exception when group heading in detail row and detail row over 1 page long [message #1752592 is a reply to message #1722959] Wed, 25 January 2017 13:16 Go to previous message
RWIL Mising name is currently offline RWIL Mising nameFriend
Messages: 30
Registered: February 2011
Member
I've got the exact same issue and I've filled a birt bug report here : https://bugs.eclipse.org/bugs/show_bug.cgi?id=503365

But in our case, the problem occurs whatever the output is (html or pdf).

thanks for the sample report, I was not able to exact a very simple scenario in our big report.

[Updated on: Wed, 25 January 2017 13:17]

Report message to a moderator

Previous Topic:how to set default value with 'A' or 'B' for a parameter of Data set?
Next Topic:Deploying BIRT reports that use DB2
Goto Forum:
  


Current Time: Sat Aug 17 14:44:35 GMT 2019

Powered by FUDForum. Page generated in 0.01454 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top