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 )

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via coderanch.com by Unknown author, 1 year ago
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
via coderanch.com by Unknown author, 2 years ago
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
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 undefined.ReportTest.okActionPerformed(ReportTest.java:97)
at undefined.ReportTest.access$000(ReportTest.java:34)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.