Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Exception while generating report with report design using report library master page
bitisony
While use report engine to generate report, I got an exception, the report design references to simple master page that defined in the library.
The exception message is:
Caused by: java.lang.AssertionError
at org.eclipse.birt.report.model.parser.OverriddenValuesState.<init>(OverriddenValuesState.java:62)
at org.eclipse.birt.report.model.parser.ReportElementState.startElement(ReportElementState.java:746)
at org.eclipse.birt.report.model.parser.SimpleMasterPageState.startElement(SimpleMasterPageState.java:66)
at org.eclipse.birt.report.model.parser.ModuleParserHandler.startElement(ModuleParserHandler.java:228)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.eclipse.birt.report.model.parser.ModuleReader.readModule(ModuleReader.java:94)
at org.eclipse.birt.report.model.parser.DesignReader.read(DesignReader.java:88)
at org.eclipse.birt.report.model.core.DesignSession.openDesign(DesignSession.java:321)
at org.eclipse.birt.report.model.api.SessionHandle.openDesign(SessionHandle.java:294)
at org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java:158)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:253)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:181)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:158)
at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java:388)
=======================================
Would you like to give me some suggestions about this issue?
Find more posts tagged with
Comments
mwilliams
Hi bitisony,
Can you recreate this issue with the sample database, so I can run the report? Thanks.
bitisony
OK.
Let me try.
I use xml as data source currently.
Thank you very much for your reply.
mwilliams
bitisony,
As long as you pass along the xml source file, that would be fine too. Just as long as I can run the report.
bitisony
I have tried using BIRT default DB, I got the same exception.
My test report library and report design are at attached.
Please help me to check them.
Thank you very much!
mwilliams
bitisony,
Sorry, I forgot to ask... What version of BIRT are you using?
bitisony
The birt version is birt-runtime-2_3_2
mwilliams
bitisony,
I ran the sample report you posted on Tomcat with the 2.3.2 viewer and received no errors. Where are you placing your library file?
bitisony
Thank you very much for your time.
My report design is at <project>/com/trpz/rm/server/reports.
and library is at <project>/com/trpz/shared/common/reports.
I know how to fix this problem by setting the resource path.
What I think is that why BIRT does not support use class url resource loader to load library?
Thanks!