org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.

Jenkins JIRA | jeffolson | 8 years ago
  1. 0

    When a TFS changeset has an ampersand (&) character in the comment, the TFS plugin gets a "Parse Fatal Error" resulting from a SAXParseException. The result of this is that no changes are shown for the build in the Hudson UI, even though TFS changesets were found. Here is an example stacktrace: SEVERE: Parse Fatal Error at line 6 column 54: The entity name must immediately follow the '&' in the entity reference. org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1685) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:54) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:31) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:25) at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:429) at hudson.model.AbstractBuild.access$500(AbstractBuild.java:78) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:320) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:927) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1685) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:54) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:31) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:25) at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:429) at hudson.model.AbstractBuild.access$500(AbstractBuild.java:78) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:320) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:927) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Here is an example changeset: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changeset: 803980 User: U0026729 Date: Tuesday, May 26, 2009 3:35:24 PM Comment: Just testing what happens when I use the & character...Hudson does not seem to like it! Items: add $/Checkpoint/CheckpointWebApp/main/etc/dummy.txt Check-in Notes: Code Reviewer: Performance Reviewer: Security Reviewer: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I'm running Hudson 1.307 with TFS plugin 1.4, on a Windows 2003 SP2 server.

    Jenkins JIRA | 8 years ago | jeffolson
    org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
  2. 0

    When a TFS changeset has an ampersand (&) character in the comment, the TFS plugin gets a "Parse Fatal Error" resulting from a SAXParseException. The result of this is that no changes are shown for the build in the Hudson UI, even though TFS changesets were found. Here is an example stacktrace: SEVERE: Parse Fatal Error at line 6 column 54: The entity name must immediately follow the '&' in the entity reference. org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1685) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:54) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:31) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:25) at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:429) at hudson.model.AbstractBuild.access$500(AbstractBuild.java:78) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:320) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:927) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1685) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:54) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:31) at hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:25) at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:429) at hudson.model.AbstractBuild.access$500(AbstractBuild.java:78) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:320) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:927) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Here is an example changeset: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changeset: 803980 User: U0026729 Date: Tuesday, May 26, 2009 3:35:24 PM Comment: Just testing what happens when I use the & character...Hudson does not seem to like it! Items: add $/Checkpoint/CheckpointWebApp/main/etc/dummy.txt Check-in Notes: Code Reviewer: Performance Reviewer: Security Reviewer: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I'm running Hudson 1.307 with TFS plugin 1.4, on a Windows 2003 SP2 server.

    Jenkins JIRA | 8 years ago | jeffolson
    org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
  3. 0

    css + icefaces problem

    Oracle Community | 9 years ago | 843844
    javax.faces.FacesException: Can't parse stream for /css/admission/admission.css Content is not allowed in prolog.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unexpected SAXParseException

    Icesoft | 9 years ago | kito99
    org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
  6. 0

    css problem

    Icesoft | 9 years ago | ronald.manlapao
    javax.faces.FacesException: Can't parse stream for /css/admission/admission.css Content is not allowed in prolog.

    8 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.xml.sax.SAXParseException

      The entity name must immediately follow the '&' in the entity reference.

      at org.apache.xerces.parsers.AbstractSAXParser.parse()
    2. Xerces2-j
      SAXParserImpl$JAXPSAXParser.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      2. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      2 frames
    3. Commons Digester
      Digester.parse
      1. org.apache.commons.digester.Digester.parse(Digester.java:1685)
      1 frame
    4. hudson.plugins.tfs
      ChangeSetReader.parse
      1. hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:54)
      2. hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:31)
      3. hudson.plugins.tfs.ChangeSetReader.parse(ChangeSetReader.java:25)
      3 frames
    5. Hudson
      Executor.run
      1. hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:429)
      2. hudson.model.AbstractBuild.access$500(AbstractBuild.java:78)
      3. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:320)
      4. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266)
      5. hudson.model.Run.run(Run.java:927)
      6. hudson.model.Build.run(Build.java:112)
      7. hudson.model.ResourceController.execute(ResourceController.java:93)
      8. hudson.model.Executor.run(Executor.java:119)
      8 frames