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

NPE with bad application identifier #13

Closed
bradh opened this issue Aug 30, 2016 · 2 comments
Closed

NPE with bad application identifier #13

bradh opened this issue Aug 30, 2016 · 2 comments
Labels
Milestone

Comments

@bradh
Copy link
Contributor

bradh commented Aug 30, 2016

bradh@marginata:~/ets-gpkg10$ java -jar target/ets-gpkg10-0.3-SNAPSHOT-aio.jar 
[Fatal Error] testng-results.xml:103:145: An invalid XML character (Unicode: 0x0) was found in the CDATA section.
Aug 30, 2016 7:40:54 PM com.occamlab.te.spi.executors.testng.TestNGExecutor execute
SEVERE: Failed to parse test results.
org.xml.sax.SAXParseException; systemId: file:/home/bradh/testng/286de377-b5e5-4729-8ae2-84677017bb12/testng-results.xml; lineNumber: 103; columnNumber: 145; An invalid XML character (Unicode: 0x0) was found in the CDATA section.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
        at com.occamlab.te.spi.executors.testng.TestNGExecutor.parseResultsDoc(TestNGExecutor.java:133)
        at com.occamlab.te.spi.executors.testng.TestNGExecutor.execute(TestNGExecutor.java:118)
        at org.opengis.cite.gpkg10.TestNGController.doTestRun(TestNGController.java:122)
        at org.opengis.cite.gpkg10.TestNGController.main(TestNGController.java:70)

Exception in thread "main" java.lang.NullPointerException
        at com.occamlab.te.spi.executors.testng.TestNGExecutor.execute(TestNGExecutor.java:122)
        at org.opengis.cite.gpkg10.TestNGController.doTestRun(TestNGController.java:122)
        at org.opengis.cite.gpkg10.TestNGController.main(TestNGController.java:70)

Looks like that needs to be escaped or converted to hex...

@moran0013
Copy link
Contributor

can you post the xml in question, or possibly the data used to create this?

moran0013 added a commit that referenced this issue Sep 6, 2016
@moran0013 moran0013 mentioned this issue Sep 6, 2016
@moran0013
Copy link
Contributor

actually, found out how to repeat. updated code to simply print out the array of values rather than an encoded string.

@bermud bermud added the bug label Sep 8, 2016
@bermud bermud modified the milestone: 0.3 Sep 8, 2016
@bermud bermud closed this as completed Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants