elharo commented on PR #242: URL: https://github.com/apache/maven-invoker-plugin/pull/242#issuecomment-2119018051
> output: > > ``` > Exception in thread "main" java.lang.IllegalStateException: character 0 is not allowed in output > at org.codehaus.plexus.util.xml.pull.MXSerializer.writeElementContent(MXSerializer.java:947) > at org.codehaus.plexus.util.xml.pull.MXSerializer.text(MXSerializer.java:780) > at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.main(DefaultSiteRenderer.java:955) > ``` . Character 0, i,e. ASCII NUL, and a few others are deeply problematic as they can neither be included in XML documents nor escaped. If you're really trying to wrap arbitrary binary data into XML then you have to Base 64 encode it, though in this case we shouldn't be seeing those characters in the strings. Otherwise you need some sort of application specific convention for how you'll encode the disallowed C0 controls. E.g. writing each one as an element like `<c0 value="00"> or something like that. However you need to come up with that yourself. The XML parser/serializer won't help you there. ` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org