Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66269

jenkinsci/pipeline-build-step-plugin#57 precludes usage of the API

XMLWordPrintable

    • 2.15

      After upgrading to jenkinsci/pipeline-build-step-plugin#57, we started seeing HTTP 500 errors in the XML API with the following stack trace being printed to the Jenkins log:

      WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://example.com/job/test/api/xml
      org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2145; An invalid XML character (Unicode: 0x1b) was found in the element content of the document.
      	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
      	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
      	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
      	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
      	at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1473)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
      	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
      	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
      	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
      	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
      	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
      	at org.dom4j.io.SAXReader.read(SAXReader.java:494)
      Caused: org.dom4j.DocumentException: Error on line 1 of document  : An invalid XML character (Unicode: 0x1b) was found in the element content of the document.
      	at org.dom4j.io.SAXReader.read(SAXReader.java:511)
      	at org.dom4j.io.SAXReader.read(SAXReader.java:408)
      	at hudson.model.Api.doXml(Api.java:118)
      Caused: java.io.IOException: Failed to do XPath/wrapper handling. Turn on FINER logging to view XML.
      	at hudson.model.Api.doXml(Api.java:176)
      	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
      

            basil Basil Crow
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: