xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE roo t "null". : Document root element "beans", must match DOCTYPE root "null". at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX (Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unk nown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootEleme ntSpecified(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleSta rtElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElem ent(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Conten tDriver.scanRootElementHook(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog Driver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U nknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So urce) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So urce) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk nown Source) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions(XmlBeanDefinitionReader.java:222) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:173) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:148) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:68) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:56) at net.sf.jasperreports.extensions.SpringExtensionsRegistryFactory.getBe anFactory(SpringExtensionsRegistryFactory.java:101) at net.sf.jasperreports.extensions.SpringExtensionsRegistryFactory.creat eRegistry(SpringExtensionsRegistryFactory.java:73) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiate Registry(DefaultExtensionsRegistry.java:238) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistr ies(DefaultExtensionsRegistry.java:213) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistr ies(DefaultExtensionsRegistry.java:163) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistri es(DefaultExtensionsRegistry.java:133) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensio ns(DefaultExtensionsRegistry.java:105) at net.sf.jasperreports.engine.component.ComponentsEnvironment.findCompo nentBundles(ComponentsEnvironment.java:89) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCached ComponentBundles(ComponentsEnvironment.java:78) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCompon entBundles(ComponentsEnvironment.java:66) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLoc ations(JRReportSaxParserFactory.java:76) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.configureParser( BaseSaxParserFactory.java:131) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.createParser(Bas eSaxParserFactory.java:94) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRX mlDigesterFactory.java:1342) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(J RXmlDigesterFactory.java:1318) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:207 )

coderanch.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    jasperreports does not work in executable jar file (Open Source Projects forum at JavaRanch)

    coderanch.com | 1 year ago
    xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE roo t "null". : Document root element "beans", must match DOCTYPE root "null". at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX (Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unk nown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootEleme ntSpecified(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleSta rtElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElem ent(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Conten tDriver.scanRootElementHook(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog Driver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U nknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So urce) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So urce) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk nown Source) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions(XmlBeanDefinitionReader.java:222) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:173) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:148) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:68) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:56) at net.sf.jasperreports.extensions.SpringExtensionsRegistryFactory.getBe anFactory(SpringExtensionsRegistryFactory.java:101) at net.sf.jasperreports.extensions.SpringExtensionsRegistryFactory.creat eRegistry(SpringExtensionsRegistryFactory.java:73) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiate Registry(DefaultExtensionsRegistry.java:238) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistr ies(DefaultExtensionsRegistry.java:213) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistr ies(DefaultExtensionsRegistry.java:163) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistri es(DefaultExtensionsRegistry.java:133) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensio ns(DefaultExtensionsRegistry.java:105) at net.sf.jasperreports.engine.component.ComponentsEnvironment.findCompo nentBundles(ComponentsEnvironment.java:89) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCached ComponentBundles(ComponentsEnvironment.java:78) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCompon entBundles(ComponentsEnvironment.java:66) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLoc ations(JRReportSaxParserFactory.java:76) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.configureParser( BaseSaxParserFactory.java:131) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.createParser(Bas eSaxParserFactory.java:94) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRX mlDigesterFactory.java:1342) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(J RXmlDigesterFactory.java:1318) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:207 )
  2. 0

    jasperreports does not work in executable jar file (Open Source Projects forum at Coderanch)

    coderanch.com | 6 months ago
    xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE roo t "null". : Document root element "beans", must match DOCTYPE root "null". at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX (Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unk nown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootEleme ntSpecified(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleSta rtElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElem ent(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Conten tDriver.scanRootElementHook(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog Driver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U nknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So urce) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So urce) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk nown Source) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions(XmlBeanDefinitionReader.java:222) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:173) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:148) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:68) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:56) at net.sf.jasperreports.extensions.SpringExtensionsRegistryFactory.getBe anFactory(SpringExtensionsRegistryFactory.java:101) at net.sf.jasperreports.extensions.SpringExtensionsRegistryFactory.creat eRegistry(SpringExtensionsRegistryFactory.java:73) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiate Registry(DefaultExtensionsRegistry.java:238) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistr ies(DefaultExtensionsRegistry.java:213) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistr ies(DefaultExtensionsRegistry.java:163) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistri es(DefaultExtensionsRegistry.java:133) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensio ns(DefaultExtensionsRegistry.java:105) at net.sf.jasperreports.engine.component.ComponentsEnvironment.findCompo nentBundles(ComponentsEnvironment.java:89) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCached ComponentBundles(ComponentsEnvironment.java:78) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCompon entBundles(ComponentsEnvironment.java:66) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLoc ations(JRReportSaxParserFactory.java:76) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.configureParser( BaseSaxParserFactory.java:131) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.createParser(Bas eSaxParserFactory.java:94) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRX mlDigesterFactory.java:1342) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(J RXmlDigesterFactory.java:1318) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:207 )

    Root Cause Analysis

    1. xml.sax.SAXParseException

      Document root element "beans", must match DOCTYPE roo t "null". : Document root element "beans", must match DOCTYPE root "null". at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX (Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unk nown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootEleme ntSpecified(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleSta rtElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElem ent(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Conten tDriver.scanRootElementHook(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog Driver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U nknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So urce) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So urce) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk nown Source) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions(XmlBeanDefinitionReader.java:222) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:173) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:148) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:68) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFa ctory.java:56) at net.sf.jasperreports.extensions.SpringExtensionsRegistryFactory.getBe anFactory(SpringExtensionsRegistryFactory.java:101) at net.sf.jasperreports.extensions.SpringExtensionsRegistryFactory.creat eRegistry(SpringExtensionsRegistryFactory.java:73) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiate Registry(DefaultExtensionsRegistry.java:238) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistr ies(DefaultExtensionsRegistry.java:213) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistr ies(DefaultExtensionsRegistry.java:163) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistri es(DefaultExtensionsRegistry.java:133) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensio ns(DefaultExtensionsRegistry.java:105) at net.sf.jasperreports.engine.component.ComponentsEnvironment.findCompo nentBundles(ComponentsEnvironment.java:89) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCached ComponentBundles(ComponentsEnvironment.java:78) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCompon entBundles(ComponentsEnvironment.java:66) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLoc ations(JRReportSaxParserFactory.java:76) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.configureParser( BaseSaxParserFactory.java:131) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.createParser(Bas eSaxParserFactory.java:94) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRX mlDigesterFactory.java:1342) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(J RXmlDigesterFactory.java:1318) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:207 )

      at ReportTest.okActionPerformed()
    2. Unknown
      ReportTest$1.actionPerformed
      1. ReportTest.okActionPerformed(ReportTest.java:97)
      2. ReportTest.access$000(ReportTest.java:34)
      3. ReportTest$1.actionPerformed(ReportTest.java:58)
      3 frames
    3. Java RT
      DefaultButtonModel.setPressed
      1. javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      2. javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      4. javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      4 frames