You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "richard (Jira)" <ji...@apache.org> on 2022/10/02 15:14:00 UTC

[jira] [Commented] (MCHECKSTYLE-342) Support XML 1.1

    [ https://issues.apache.org/jira/browse/MCHECKSTYLE-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612127#comment-17612127 ] 

richard commented on MCHECKSTYLE-342:
-------------------------------------

I wish this to be re-opened as it is not fixed from our latest CI run and is still a blocker. [https://github.com/checkstyle/checkstyle/pull/12247]
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: only 1.0 is supported as <?xml version not '1.1' (position: START_DOCUMENT seen <?xml version="1.1"... @1:20) at org.codehaus.plexus.util.xml.pull.MXParser.parseXmlDeclWithVersion (MXParser.java:3358)at org.codehaus.plexus.util.xml.pull.MXParser.parseXmlDecl (MXParser.java:3345)at org.codehaus.plexus.util.xml.pull.MXParser.parsePI (MXParser.java:3197)at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog (MXParser.java:1828)at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl (MXParser.java:1757)at org.codehaus.plexus.util.xml.pull.MXParser.next (MXParser.java:1375)at org.apache.maven.plugins.checkstyle.CheckstyleViolationCheckMojo.getViolations (CheckstyleViolationCheckMojo.java:635)at org.apache.maven.plugins.checkstyle.CheckstyleViolationCheckMojo.execute (CheckstyleViolationCheckMojo.java:580)at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

> Support XML 1.1
> ---------------
>
>                 Key: MCHECKSTYLE-342
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-342
>             Project: Maven Checkstyle Plugin
>          Issue Type: New Feature
>          Components: checkstyle:check
>    Affects Versions: 2.17
>            Reporter: richard
>            Assignee: Enrico Olivelli
>            Priority: Minor
>
> Checkstyle wishes to upgrade our XML logger to print out XML 1.1 documents. We need this functionality to support escaping non-printable characters as XML 1.0 doesn't allow this and considers it an invalid document.
> > Exception in thread "main" javax.xml.stream.XMLStreamException: ParseError at [row,col]:[45615,80]
> > Message: An invalid XML character (Unicode: 0x2) was found in the value of attribute "message" and element is "error".
> Checkstyle cannot upgrade until maven-checkstyle does as we use it in alot of regression testing. If we try to give the plugin an XML 1.1 document, it fails with the following error:
> > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (default-cli) on project postgresql: Unable to read Checkstyle results xml: /pipeline/source/pgjdbc/pgjdbc/target/checkstyle-result.xml: only 1.0 is supported as <?xml version not '1.1' (position: START_DOCUMENT seen <?xml version="1.1"... @1:19) -> [Help 1]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)