US and Worldwide: +1 (866) 660-7555
Results 1 to 2 of 2

Thread: Parser Exception using Extended XML Definition

  1. #1
    Join Date
    Mar 2003
    Posts
    4,947

    Default Parser Exception using Extended XML Definition

    Hello,

    I am getting the below exception when trying to parse the report.
    This is the definition I am using in the xml
    <!DOCTYPE report-definition
    PUBLIC "-//JFreeReport//DTD report definition//EN//extended/version 0.8.5"
    "http://jfreereport.sourceforge.net/extreport-085.dtd">
    I am not sure what is that I am missing which caused to throw the below exception. Can anyone help me out please??


    ParentExceptionrg.xml.sax.SAXException: No handler registered for the tag 'report-definition'
    at org.jfree.report.modules.parser.base.InitialReportHandler.startElement(InitialReportHandler.java:192)
    at org.jfree.xml.parser.RootXmlReadHandler.startElement(RootXmlReadHandler.java:445)
    at org.jfree.report.modules.parser.base.ReportParser.startElement(ReportParser.java:178)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(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.jfree.xml.ParserFrontend.parse(ParserFrontend.java:230)
    at org.jfree.xml.ParserFrontend.parse(ParserFrontend.java:287)
    at org.jfree.report.modules.parser.base.ReportGenerator.parseReport(ReportGenerator.java:189)
    at org.jfree.report.modules.parser.base.ReportGenerator.parseReport(ReportGenerator.java:168)

    Thanks in advance.

  2. #2
    Join Date
    Mar 2003
    Posts
    7,592

    Default

    Hi,

    You did not initialize JFreeReport, and therefore the parser had not been initialized correctly.

    You have to boot JFreeReport before you can use any of its components. Booting is done using 'JFreeReportBoot.getInstance().start()'.

    Regards,
    Thomas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •