Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the problem of the junit-report.xml #17

Closed
chwoyaofei opened this issue Feb 19, 2013 · 2 comments
Closed

the problem of the junit-report.xml #17

chwoyaofei opened this issue Feb 19, 2013 · 2 comments

Comments

@chwoyaofei
Copy link

when so many errors occured in the junitTests it will generate a result named junit-report.xml with error as follows:
Caused by: org.dom4j.DocumentException: Error on line 493 of document file:///////junit-report.xml : XML document structures must start and end within the same entity. Nested exception: XML document structures must start and end within the same entity.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:264)
at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:88)
at hudson.tasks.junit.TestResult.parse(TestResult.java:187)
the file content is:


without match end tag

@jsankey
Copy link
Owner

jsankey commented Feb 23, 2013

The error message says the problem is on line 493, but you have only included the first line? Note that the prolog does not have a matching end tag. However, everything else needs to be balanced for it to be valid XML. Do you see any errors in the logs when you run the tests? One possibility is a native crash in the code under test, which takes out the whole process and leaves the runner unable to complete the XML. It's also possible there was an exception in the running itself that caused the problem, but without more details I couldn't say.

@jsankey
Copy link
Owner

jsankey commented Apr 2, 2013

Closing unless/until further information is forthcoming.

@jsankey jsankey closed this as completed Apr 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants