created an attachment (id=162942)
report

description:
exported pdf file can't be open when the report has a table with group 

build:
2.6.0.v20100325-0630

steps to reproduce:
1. new a table "customers"
2. add a group
3. preview in web viewer and export as pdf

actual result:
can't open exported pdf file.

expect result:
exported pdf file can be open
npe when print such report with group.
errorlog:
org.eclipse.birt.report.service.api.reportserviceexception: error happened while running the report

axisfault

 faultcode: {http://schemas.xmlsoap.org/soap/envelope/}server.userexception

 faultsubcode: 

 faultstring: org.eclipse.birt.report.service.api.reportserviceexception: error happened while running the report

 faultactor: 

 faultnode: 

 faultdetail: 

	{http://xml.apache.org/axis/}stacktrace:org.eclipse.birt.report.service.api.reportserviceexception: error happened while running the report

	at org.eclipse.birt.report.service.reportengineservice.throwdummyexception(reportengineservice.java:1097)

	at org.eclipse.birt.report.service.reportengineservice.renderreport(reportengineservice.java:1543)

	at org.eclipse.birt.report.service.birtviewerreportservice.renderreport(birtviewerreportservice.java:369)

	at org.eclipse.birt.report.service.actionhandler.birtrenderreportactionhandler.__execute(birtrenderreportactionhandler.java:65)

	at org.eclipse.birt.report.service.actionhandler.abstractbaseactionhandler.execute(abstractbaseactionhandler.java:90)

	at org.eclipse.birt.report.presentation.aggregation.layout.enginefragment.doservice(enginefragment.java:312)

	at org.eclipse.birt.report.presentation.aggregation.abstractbasefragment.service(abstractbasefragment.java:76)

	at org.eclipse.birt.report.servlet.birtengineservlet.__doget(birtengineservlet.java:120)

	at org.eclipse.birt.report.servlet.basereportengineservlet.doget(basereportengineservlet.java:185)

	at org.eclipse.birt.report.servlet.basereportengineservlet.dopost(basereportengineservlet.java:224)

	at javax.servlet.http.httpservlet.service(httpservlet.java:727)

	at org.apache.axis.transport.http.axisservletbase.service(axisservletbase.java:327)

	at javax.servlet.http.httpservlet.service(httpservlet.java:820)

	at org.eclipse.birt.report.servlet.basereportengineservlet.service(basereportengineservlet.java:116)

	at org.eclipse.equinox.http.registry.internal.servletmanager$servletwrapper.service(servletmanager.java:180)

	at org.eclipse.equinox.http.servlet.internal.servletregistration.service(servletregistration.java:61)

	at org.eclipse.equinox.http.servlet.internal.proxyservlet.processalias(proxyservlet.java:126)

	at org.eclipse.equinox.http.servlet.internal.proxyservlet.service(proxyservlet.java:60)

	at javax.servlet.http.httpservlet.service(httpservlet.java:820)

	at org.eclipse.equinox.http.jetty.internal.httpservermanager$internalhttpserviceservlet.service(httpservermanager.java:318)

	at org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:502)

	at org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:380)

	at org.mortbay.jetty.servlet.sessionhandler.handle(sessionhandler.java:181)

	at org.mortbay.jetty.handler.contexthandler.handle(contexthandler.java:765)

	at org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152)

	at org.mortbay.jetty.server.handle(server.java:324)

	at org.mortbay.jetty.httpconnection.handlerequest(httpconnection.java:535)

	at org.mortbay.jetty.httpconnection$requesthandler.content(httpconnection.java:880)

	at org.mortbay.jetty.httpparser.parsenext(httpparser.java:748)

	at org.mortbay.jetty.httpparser.parseavailable(httpparser.java:219)

	at org.mortbay.jetty.httpconnection.handle(httpconnection.java:404)

	at org.mortbay.io.nio.selectchannelendpoint.run(selectchannelendpoint.java:409)

	at org.mortbay.thread.queuedthreadpool$poolthread.run(queuedthreadpool.java:520)

caused by: org.eclipse.birt.report.engine.api.engineexception: error happened while running the report

	at org.eclipse.birt.report.engine.api.impl.rendertask.render(rendertask.java:251)

	at org.eclipse.birt.report.service.reportengineservice.renderreport(reportengineservice.java:1537)

	... 31 more

caused by: java.lang.nullpointerexception

	at org.eclipse.birt.core.archive.compound.archiveentryinputstream.seek(archiveentryinputstream.java:216)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3.readnode(tocreaderv3.java:88)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3.access$0(tocreaderv3.java:84)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3$nodecollection$nodecollectioniterator.next(tocreaderv3.java:158)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3$nodecollection$nodecollectioniterator.next(tocreaderv3.java:1)

	at org.eclipse.birt.report.engine.toc.viewnodelist$viewnodeiterator.getnextnode(viewnodelist.java:136)

	at org.eclipse.birt.report.engine.toc.viewnodelist$viewnodeiterator.&lt;init&gt;(viewnodelist.java:110)

	at org.eclipse.birt.report.engine.toc.viewnodelist.calculatelistsize(viewnodelist.java:91)

	at org.eclipse.birt.report.engine.toc.viewnodelist.size(viewnodelist.java:84)

	at java.util.abstractcollection.isempty(abstractcollection.java:78)

	at org.eclipse.birt.report.engine.emitter.pdf.pdfpagedevice.createtoc(pdfpagedevice.java:205)

	at org.eclipse.birt.report.engine.emitter.pdf.pdfrender.createtoc(pdfrender.java:262)

	at org.eclipse.birt.report.engine.emitter.pdf.pdfrender.end(pdfrender.java:142)

	at org.eclipse.birt.report.engine.layout.emitter.pageemitter.end(pageemitter.java:63)

	at org.eclipse.birt.report.engine.nlayout.layoutengine.end(layoutengine.java:337)

	at org.eclipse.birt.report.engine.api.impl.rendertask$pagerangerender.render(rendertask.java:631)

	at org.eclipse.birt.report.engine.api.impl.rendertask.render(rendertask.java:239)

	... 32 more



	{http://xml.apache.org/axis/}hostname:xumindan

	{}:org.eclipse.birt.report.service.api.reportserviceexception: error happened while running the report

	at org.eclipse.birt.report.service.reportengineservice.throwdummyexception(reportengineservice.java:1097)

	at org.eclipse.birt.report.service.reportengineservice.renderreport(reportengineservice.java:1543)

	at org.eclipse.birt.report.service.birtviewerreportservice.renderreport(birtviewerreportservice.java:369)

	at org.eclipse.birt.report.service.actionhandler.birtrenderreportactionhandler.__execute(birtrenderreportactionhandler.java:65)

	at org.eclipse.birt.report.service.actionhandler.abstractbaseactionhandler.execute(abstractbaseactionhandler.java:90)

	at org.eclipse.birt.report.presentation.aggregation.layout.enginefragment.doservice(enginefragment.java:312)

	at org.eclipse.birt.report.presentation.aggregation.abstractbasefragment.service(abstractbasefragment.java:76)

	at org.eclipse.birt.report.servlet.birtengineservlet.__doget(birtengineservlet.java:120)

	at org.eclipse.birt.report.servlet.basereportengineservlet.doget(basereportengineservlet.java:185)

	at org.eclipse.birt.report.servlet.basereportengineservlet.dopost(basereportengineservlet.java:224)

	at javax.servlet.http.httpservlet.service(httpservlet.java:727)

	at org.apache.axis.transport.http.axisservletbase.service(axisservletbase.java:327)

	at javax.servlet.http.httpservlet.service(httpservlet.java:820)

	at org.eclipse.birt.report.servlet.basereportengineservlet.service(basereportengineservlet.java:116)

	at org.eclipse.equinox.http.registry.internal.servletmanager$servletwrapper.service(servletmanager.java:180)

	at org.eclipse.equinox.http.servlet.internal.servletregistration.service(servletregistration.java:61)

	at org.eclipse.equinox.http.servlet.internal.proxyservlet.processalias(proxyservlet.java:126)

	at org.eclipse.equinox.http.servlet.internal.proxyservlet.service(proxyservlet.java:60)

	at javax.servlet.http.httpservlet.service(httpservlet.java:820)

	at org.eclipse.equinox.http.jetty.internal.httpservermanager$internalhttpserviceservlet.service(httpservermanager.java:318)

	at org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:502)

	at org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:380)

	at org.mortbay.jetty.servlet.sessionhandler.handle(sessionhandler.java:181)

	at org.mortbay.jetty.handler.contexthandler.handle(contexthandler.java:765)

	at org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152)

	at org.mortbay.jetty.server.handle(server.java:324)

	at org.mortbay.jetty.httpconnection.handlerequest(httpconnection.java:535)

	at org.mortbay.jetty.httpconnection$requesthandler.content(httpconnection.java:880)

	at org.mortbay.jetty.httpparser.parsenext(httpparser.java:748)

	at org.mortbay.jetty.httpparser.parseavailable(httpparser.java:219)

	at org.mortbay.jetty.httpconnection.handle(httpconnection.java:404)

	at org.mortbay.io.nio.selectchannelendpoint.run(selectchannelendpoint.java:409)

	at org.mortbay.thread.queuedthreadpool$poolthread.run(queuedthreadpool.java:520)

caused by: org.eclipse.birt.report.engine.api.engineexception: error happened while running the report

	at org.eclipse.birt.report.engine.api.impl.rendertask.render(rendertask.java:251)

	at org.eclipse.birt.report.service.reportengineservice.renderreport(reportengineservice.java:1537)

	... 31 more

caused by: java.lang.nullpointerexception

	at org.eclipse.birt.core.archive.compound.archiveentryinputstream.seek(archiveentryinputstream.java:216)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3.readnode(tocreaderv3.java:88)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3.access$0(tocreaderv3.java:84)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3$nodecollection$nodecollectioniterator.next(tocreaderv3.java:158)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3$nodecollection$nodecollectioniterator.next(tocreaderv3.java:1)

	at org.eclipse.birt.report.engine.toc.viewnodelist$viewnodeiterator.getnextnode(viewnodelist.java:136)

	at org.eclipse.birt.report.engine.toc.viewnodelist$viewnodeiterator.&lt;init&gt;(viewnodelist.java:110)

	at org.eclipse.birt.report.engine.toc.viewnodelist.calculatelistsize(viewnodelist.java:91)

	at org.eclipse.birt.report.engine.toc.viewnodelist.size(viewnodelist.java:84)

	at java.util.abstractcollection.isempty(abstractcollection.java:78)

	at org.eclipse.birt.report.engine.emitter.pdf.pdfpagedevice.createtoc(pdfpagedevice.java:205)

	at org.eclipse.birt.report.engine.emitter.pdf.pdfrender.createtoc(pdfrender.java:262)

	at org.eclipse.birt.report.engine.emitter.pdf.pdfrender.end(pdfrender.java:142)

	at org.eclipse.birt.report.engine.layout.emitter.pageemitter.end(pageemitter.java:63)

	at org.eclipse.birt.report.engine.nlayout.layoutengine.end(layoutengine.java:337)

	at org.eclipse.birt.report.engine.api.impl.rendertask$pagerangerender.render(rendertask.java:631)

	at org.eclipse.birt.report.engine.api.impl.rendertask.render(rendertask.java:239)

	... 32 more





org.eclipse.birt.report.service.api.reportserviceexception: error happened while running the report

	at org.apache.axis.axisfault.makefault(axisfault.java:101)

	at org.eclipse.birt.report.utility.birtutility.makeaxisfault(birtutility.java:748)

	at org.eclipse.birt.report.service.actionhandler.abstractbaseactionhandler.execute(abstractbaseactionhandler.java:94)

	at org.eclipse.birt.report.presentation.aggregation.layout.enginefragment.doservice(enginefragment.java:312)

	at org.eclipse.birt.report.presentation.aggregation.abstractbasefragment.service(abstractbasefragment.java:76)

	at org.eclipse.birt.report.servlet.birtengineservlet.__doget(birtengineservlet.java:120)

	at org.eclipse.birt.report.servlet.basereportengineservlet.doget(basereportengineservlet.java:185)

	at org.eclipse.birt.report.servlet.basereportengineservlet.dopost(basereportengineservlet.java:224)

	at javax.servlet.http.httpservlet.service(httpservlet.java:727)

	at org.apache.axis.transport.http.axisservletbase.service(axisservletbase.java:327)

	at javax.servlet.http.httpservlet.service(httpservlet.java:820)

	at org.eclipse.birt.report.servlet.basereportengineservlet.service(basereportengineservlet.java:116)

	at org.eclipse.equinox.http.registry.internal.servletmanager$servletwrapper.service(servletmanager.java:180)

	at org.eclipse.equinox.http.servlet.internal.servletregistration.service(servletregistration.java:61)

	at org.eclipse.equinox.http.servlet.internal.proxyservlet.processalias(proxyservlet.java:126)

	at org.eclipse.equinox.http.servlet.internal.proxyservlet.service(proxyservlet.java:60)

	at javax.servlet.http.httpservlet.service(httpservlet.java:820)

	at org.eclipse.equinox.http.jetty.internal.httpservermanager$internalhttpserviceservlet.service(httpservermanager.java:318)

	at org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:502)

	at org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:380)

	at org.mortbay.jetty.servlet.sessionhandler.handle(sessionhandler.java:181)

	at org.mortbay.jetty.handler.contexthandler.handle(contexthandler.java:765)

	at org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152)

	at org.mortbay.jetty.server.handle(server.java:324)

	at org.mortbay.jetty.httpconnection.handlerequest(httpconnection.java:535)

	at org.mortbay.jetty.httpconnection$requesthandler.content(httpconnection.java:880)

	at org.mortbay.jetty.httpparser.parsenext(httpparser.java:748)

	at org.mortbay.jetty.httpparser.parseavailable(httpparser.java:219)

	at org.mortbay.jetty.httpconnection.handle(httpconnection.java:404)

	at org.mortbay.io.nio.selectchannelendpoint.run(selectchannelendpoint.java:409)

	at org.mortbay.thread.queuedthreadpool$poolthread.run(queuedthreadpool.java:520)

caused by: org.eclipse.birt.report.service.api.reportserviceexception: error happened while running the report

	at org.eclipse.birt.report.service.reportengineservice.throwdummyexception(reportengineservice.java:1097)

	at org.eclipse.birt.report.service.reportengineservice.renderreport(reportengineservice.java:1543)

	at org.eclipse.birt.report.service.birtviewerreportservice.renderreport(birtviewerreportservice.java:369)

	at org.eclipse.birt.report.service.actionhandler.birtrenderreportactionhandler.__execute(birtrenderreportactionhandler.java:65)

	at org.eclipse.birt.report.service.actionhandler.abstractbaseactionhandler.execute(abstractbaseactionhandler.java:90)

	... 28 more

caused by: org.eclipse.birt.report.engine.api.engineexception: error happened while running the report

	at org.eclipse.birt.report.engine.api.impl.rendertask.render(rendertask.java:251)

	at org.eclipse.birt.report.service.reportengineservice.renderreport(reportengineservice.java:1537)

	... 31 more

caused by: java.lang.nullpointerexception

	at org.eclipse.birt.core.archive.compound.archiveentryinputstream.seek(archiveentryinputstream.java:216)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3.readnode(tocreaderv3.java:88)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3.access$0(tocreaderv3.java:84)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3$nodecollection$nodecollectioniterator.next(tocreaderv3.java:158)

	at org.eclipse.birt.report.engine.toc.document.tocreaderv3$nodecollection$nodecollectioniterator.next(tocreaderv3.java:1)

	at org.eclipse.birt.report.engine.toc.viewnodelist$viewnodeiterator.getnextnode(viewnodelist.java:136)

	at org.eclipse.birt.report.engine.toc.viewnodelist$viewnodeiterator.<init>(viewnodelist.java:110)

	at org.eclipse.birt.report.engine.toc.viewnodelist.calculatelistsize(viewnodelist.java:91)

	at org.eclipse.birt.report.engine.toc.viewnodelist.size(viewnodelist.java:84)

	at java.util.abstractcollection.isempty(abstractcollection.java:78)

	at org.eclipse.birt.report.engine.emitter.pdf.pdfpagedevice.createtoc(pdfpagedevice.java:205)

	at org.eclipse.birt.report.engine.emitter.pdf.pdfrender.createtoc(pdfrender.java:262)

	at org.eclipse.birt.report.engine.emitter.pdf.pdfrender.end(pdfrender.java:142)

	at org.eclipse.birt.report.engine.layout.emitter.pageemitter.end(pageemitter.java:63)

	at org.eclipse.birt.report.engine.nlayout.layoutengine.end(layoutengine.java:337)

	at org.eclipse.birt.report.engine.api.impl.rendertask$pagerangerender.render(rendertask.java:631)

	at org.eclipse.birt.report.engine.api.impl.rendertask.render(rendertask.java:239)

	... 32 more
print npe steps:
1. preview in web viewer
2. print as pdf

