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

Samebug tips

  1. ,

    The persistence_2_0.xsd enforces the order of the elements in the xml. Re-ordering them makes then error go away.

Solutions on the web

via Jenkins JIRA by Mat Lowery, 1 year ago
Document root element "pmd-cpd", must match DOCTYPE root "null".
via Jenkins JIRA by Mat Lowery, 2 years ago
Document root element "pmd-cpd", must match DOCTYPE root "null".
via Stack Overflow by Mohit Mehral
, 1 year ago
Document root element "jasperReport", must match DOCTYPE root "null".
via verydemo.com by Unknown author, 2 years ago
Document root element "taglib", must match DOCTYPE root "null".
via Coderanch by Wendy Huang, 1 year ago
Document root element "beans", must match DOCTYPE root "null".
via Google Groups by Mark Mandel, 2 years ago
Document root element "id", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "pmd-cpd", must match DOCTYPE root "null".	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	at org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown Source)	at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(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.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)	at org.apache.commons.digester3.Digester.parse(Digester.java:1642)	at org.apache.commons.digester3.Digester.parse(Digester.java:1701)	at hudson.plugins.dry.parser.cpd.CpdParser.accepts(CpdParser.java:48)	at hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:77)	at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:261)	at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:220)	at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:169)	at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31)	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196)	at hudson.remoting.UserRequest.perform(UserRequest.java:118)	at hudson.remoting.UserRequest.perform(UserRequest.java:48)	at hudson.remoting.Request$2.run(Request.java:326)	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)	at java.util.concurrent.FutureTask.run(FutureTask.java:138)	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)	at java.lang.Thread.run(Thread.java:662)