org.xml.sax.SAXParseException: The string "--" is not permitted within comments.

Atlassian JIRA | Zhen Yueh, Lean [Atlassian] | 8 years ago
  1. 0

    In JIRA 3.13, the JIRA system information is added as a comment in the JIRA XML backup, [JRA-14466]. This information is very useful for support. However, this will cause JIRA to fail. JIRA will not be able to parse the data if the data contains the information of Regex Comment Handler with parameter "splitregex=/-----\s*Original Message\s*-----/". For example: {code:xml} <!-- ... ___ Services _____________________ Comment Service : com.atlassian.jira.service.services.imap.ImapService Service Delay : 60000ms Last Run : 10/9/08 11:46 AM handler : admin.service.common.handler.regex popserver : mypop handler.params : splitregex=/-----\s*Original Message\s*-----/ ... --> {code} This is the error in the log: {noformat} 15:10:08,016 INFO [STDOUT] 2008-10-10 15:10:08,016 http-127.0.0.1-8080-2 INFO [jira.action.admin.DataImport] Start parsing XML with SAX Parser 15:10:08,028 INFO [STDOUT] 2008-10-10 15:10:08,026 http-127.0.0.1-8080-2 ERROR [jira.action.admin.DataImport] Error parsing export file: org.xml.sax.SAXParseException: The string "--" is not permitted within comments. org.xml.sax.SAXParseException: The string "--" is not permitted within comments. 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.XMLScanner.scanComment(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanComment(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.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 javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at com.atlassian.jira.action.admin.DataImport.doExecute(DataImport.java:143) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) {noformat}

    Atlassian JIRA | 8 years ago | Zhen Yueh, Lean [Atlassian]
    org.xml.sax.SAXParseException: The string "--" is not permitted within comments.
  2. 0

    In JIRA 3.13, the JIRA system information is added as a comment in the JIRA XML backup, [JRA-14466]. This information is very useful for support. However, this will cause JIRA to fail. JIRA will not be able to parse the data if the data contains the information of Regex Comment Handler with parameter "splitregex=/-----\s*Original Message\s*-----/". For example: {code:xml} <!-- ... ___ Services _____________________ Comment Service : com.atlassian.jira.service.services.imap.ImapService Service Delay : 60000ms Last Run : 10/9/08 11:46 AM handler : admin.service.common.handler.regex popserver : mypop handler.params : splitregex=/-----\s*Original Message\s*-----/ ... --> {code} This is the error in the log: {noformat} 15:10:08,016 INFO [STDOUT] 2008-10-10 15:10:08,016 http-127.0.0.1-8080-2 INFO [jira.action.admin.DataImport] Start parsing XML with SAX Parser 15:10:08,028 INFO [STDOUT] 2008-10-10 15:10:08,026 http-127.0.0.1-8080-2 ERROR [jira.action.admin.DataImport] Error parsing export file: org.xml.sax.SAXParseException: The string "--" is not permitted within comments. org.xml.sax.SAXParseException: The string "--" is not permitted within comments. 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.XMLScanner.scanComment(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanComment(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.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 javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at com.atlassian.jira.action.admin.DataImport.doExecute(DataImport.java:143) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) {noformat}

    Atlassian JIRA | 8 years ago | Zhen Yueh, Lean [Atlassian]
    org.xml.sax.SAXParseException: The string "--" is not permitted within comments.
  3. 0

    Content is not allowed in Prolog SAXParserException

    Stack Overflow | 6 years ago | Umesh Awasthi
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins users - cobertura plugin issue

    nabble.com | 1 year ago
    hudson.util.IOException2: Cannot parse coverage results
  6. 0

    Mantis Plugin - hudson - Hudson Wiki

    hudson-ci.org | 1 year ago
    hudson.plugins.mantis.MantisHandlingException: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.

    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 string "--" is not permitted within comments.

      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException()
    2. Xerces2-j
      SAXParserImpl$JAXPSAXParser.parse
      1. org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
      2. org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
      3. org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      4. org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      5. org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
      6. org.apache.xerces.impl.XMLScanner.scanComment(Unknown Source)
      7. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanComment(Unknown Source)
      8. org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
      9. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      10. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      11. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      12. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      13. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      14. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      14 frames
    3. Java RT
      SAXParser.parse
      1. javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
      1 frame
    4. com.atlassian.jira
      DataImport.doExecute
      1. com.atlassian.jira.action.admin.DataImport.doExecute(DataImport.java:143)
      1 frame
    5. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:153)
      1 frame
    6. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54)
      1 frame