org.xml.sax.SAXParseException: Character reference "&#1a" is an invalid XML character.

Atlassian JIRA | Tim Pettersen | 10 years ago
  1. 0

    Lehman Brothers are developing an application which uses jira REST styled service to download jira RSS feed and parse it. However, we find the RSS feed having invalid XML characters in some of the queries, which causes the xml parser to fail. We see the following exception in log when we try to parse xml: org.xml.sax.SAXParseException: Character reference "&#1a" is an invalid XML character. at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189) at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135) at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:143) at org.codehaus.swizzle.jira.JiraRss.<init>(JiraRss.java:63) at org.codehaus.swizzle.jira.JiraRss.<init>(JiraRss.java:53) at org.codehaus.swizzle.jira.JiraRss.<init>(JiraRss.java:49) at com.lehman.jira.nugget.viewFilterServlet.printJiraIssues(viewFilterServlet.java:219) at com.lehman.jira.nugget.viewFilterServlet.doGet(viewFilterServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

    Atlassian JIRA | 10 years ago | Tim Pettersen [Atlassian]
    org.xml.sax.SAXParseException: Character reference "&#1a" is an invalid XML character.
  2. 0

    Lehman Brothers are developing an application which uses jira REST styled service to download jira RSS feed and parse it. However, we find the RSS feed having invalid XML characters in some of the queries, which causes the xml parser to fail. We see the following exception in log when we try to parse xml: org.xml.sax.SAXParseException: Character reference "&#1a" is an invalid XML character. at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189) at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135) at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:143) at org.codehaus.swizzle.jira.JiraRss.<init>(JiraRss.java:63) at org.codehaus.swizzle.jira.JiraRss.<init>(JiraRss.java:53) at org.codehaus.swizzle.jira.JiraRss.<init>(JiraRss.java:49) at com.lehman.jira.nugget.viewFilterServlet.printJiraIssues(viewFilterServlet.java:219) at com.lehman.jira.nugget.viewFilterServlet.doGet(viewFilterServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

    Atlassian JIRA | 10 years ago | Tim Pettersen
    org.xml.sax.SAXParseException: Character reference "&#1a" is an invalid XML character.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    db:: 4.66::The markup must be well-formed. z3

    hivmr.com | 8 months ago
    org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
  5. 0

    org.xml.sax.SAXParseException: The markup in the document preceding the roo

    Oracle Community | 1 decade ago | 666705
    org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.

    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

      Character reference "&#1a" is an invalid XML character.

      at weblogic.apache.xerces.parsers.AbstractSAXParser.parse()
    2. weblogic.apache.xerces
      AbstractSAXParser.parse
      1. weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
      1 frame
    3. weblogic.xml.jaxp
      RegistryXMLReader.parse
      1. weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
      2. weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152)
      2 frames
    4. Java RT
      SAXParser.parse
      1. javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
      2. javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
      2 frames
    5. Swizzle :: Jira
      JiraRss.<init>
      1. org.codehaus.swizzle.jira.JiraRss.<init>(JiraRss.java:63)
      2. org.codehaus.swizzle.jira.JiraRss.<init>(JiraRss.java:53)
      3. org.codehaus.swizzle.jira.JiraRss.<init>(JiraRss.java:49)
      3 frames
    6. com.lehman.jira
      viewFilterServlet.doGet
      1. com.lehman.jira.nugget.viewFilterServlet.printJiraIssues(viewFilterServlet.java:219)
      2. com.lehman.jira.nugget.viewFilterServlet.doGet(viewFilterServlet.java:156)
      2 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      2 frames
    8. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
      2. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
      3. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
      4. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)
      4 frames
    9. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    10. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      1 frame
    11. Atmosphere weblogic
      ServletRequestImpl.execute
      1. weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
      2. weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
      2 frames
    12. weblogic.kernel
      ExecuteThread.run
      1. weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
      2. weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
      2 frames