org.dom4j.DocumentException: Error on line 1 of document : Character reference "&#19" is an invalid XML character. Nested exception: Character reference "&#19" is an invalid XML character.

JIRA | Gaston Dombiak | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Offline messages sent by XMPP clients usually send valid XML characters. However, XMPP libs may allow clients to send invalid XML characters. Something like this: Chat chat = getConnection(0).createChat(getBareJID(1)); chat.sendMessage("Test \f 1"); will produce the following exception: [org.jivesoftware.wildfire.OfflineMessageStore.getMessages(OfflineMessageStore.java:190)] Error retrieving offline messages of username: agent org.dom4j.DocumentException: Error on line 1 of document : Character reference "&#19" is an invalid XML character. Nested exception: Character reference "&#19" is an invalid XML character. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:365) at org.jivesoftware.wildfire.OfflineMessageStore.getMessages(OfflineMessageStore.java:168) at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.initSession(PresenceUpdateHandler.java:212) at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:100) at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:153) at org.jivesoftware.wildfire.PresenceRouter.handle(PresenceRouter.java:92) at org.jivesoftware.wildfire.PresenceRouter.route(PresenceRouter.java:61) at org.jivesoftware.wildfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:75) at org.jivesoftware.wildfire.net.SocketReader.processPresence(SocketReader.java:296) at org.jivesoftware.wildfire.net.ClientSocketReader.processPresence(ClientSocketReader.java:57)

    Jive Software Open Source | 1 decade ago | Gaston Dombiak
    org.dom4j.DocumentException: Error on line 1 of document : Character reference "&#19" is an invalid XML character. Nested exception: Character reference "&#19" is an invalid XML character.
  2. 0

    Offline messages sent by XMPP clients usually send valid XML characters. However, XMPP libs may allow clients to send invalid XML characters. Something like this: Chat chat = getConnection(0).createChat(getBareJID(1)); chat.sendMessage("Test \f 1"); will produce the following exception: [org.jivesoftware.wildfire.OfflineMessageStore.getMessages(OfflineMessageStore.java:190)] Error retrieving offline messages of username: agent org.dom4j.DocumentException: Error on line 1 of document : Character reference "&#19" is an invalid XML character. Nested exception: Character reference "&#19" is an invalid XML character. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:365) at org.jivesoftware.wildfire.OfflineMessageStore.getMessages(OfflineMessageStore.java:168) at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.initSession(PresenceUpdateHandler.java:212) at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:100) at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:153) at org.jivesoftware.wildfire.PresenceRouter.handle(PresenceRouter.java:92) at org.jivesoftware.wildfire.PresenceRouter.route(PresenceRouter.java:61) at org.jivesoftware.wildfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:75) at org.jivesoftware.wildfire.net.SocketReader.processPresence(SocketReader.java:296) at org.jivesoftware.wildfire.net.ClientSocketReader.processPresence(ClientSocketReader.java:57)

    JIRA | 1 decade ago | Gaston Dombiak
    org.dom4j.DocumentException: Error on line 1 of document : Character reference "&#19" is an invalid XML character. Nested exception: Character reference "&#19" is an invalid XML character.
  3. 0

    Offline messages sent by XMPP clients usually send valid XML characters. However, XMPP libs may allow clients to send invalid XML characters. Something like this: Chat chat = getConnection(0).createChat(getBareJID(1)); chat.sendMessage("Test \f 1"); will produce the following exception: [org.jivesoftware.wildfire.OfflineMessageStore.getMessages(OfflineMessageStore.java:190)] Error retrieving offline messages of username: agent org.dom4j.DocumentException: Error on line 1 of document : Character reference "&#19" is an invalid XML character. Nested exception: Character reference "&#19" is an invalid XML character. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:365) at org.jivesoftware.wildfire.OfflineMessageStore.getMessages(OfflineMessageStore.java:168) at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.initSession(PresenceUpdateHandler.java:212) at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:100) at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:153) at org.jivesoftware.wildfire.PresenceRouter.handle(PresenceRouter.java:92) at org.jivesoftware.wildfire.PresenceRouter.route(PresenceRouter.java:61) at org.jivesoftware.wildfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:75) at org.jivesoftware.wildfire.net.SocketReader.processPresence(SocketReader.java:296) at org.jivesoftware.wildfire.net.ClientSocketReader.processPresence(ClientSocketReader.java:57)

    Jive Software Open Source | 1 decade ago | Gaston Dombiak
    org.dom4j.DocumentException: Error on line 1 of document : Character reference "&#19" is an invalid XML character. Nested exception: Character reference "&#19" is an invalid XML character.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    xml-parsing error in liferay 6.1.1

    Stack Overflow | 5 years ago | dmitrievanthony
    com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The value following "version" in the XML declaration must be a quoted string. Nested exception: The value following "version" in the XML declaration must be a quoted string.
  6. 0

    xml api broken in 1.399?

    Google Groups | 6 years ago | Brian J. Murrell
    hudson.util.IOException2: Error on line 1 of document : Element type "origin" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "origin" must be followed by either attribute specifications, ">" or "/>".

    41 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.dom4j.DocumentException

      Error on line 1 of document : Character reference "&#19" is an invalid XML character. Nested exception: Character reference "&#19" is an invalid XML character.

      at org.dom4j.io.SAXReader.read()
    2. dom4j
      SAXReader.read
      1. org.dom4j.io.SAXReader.read(SAXReader.java:482)
      2. org.dom4j.io.SAXReader.read(SAXReader.java:365)
      2 frames
    3. org.jivesoftware.wildfire
      ClientSocketReader.processPresence
      1. org.jivesoftware.wildfire.OfflineMessageStore.getMessages(OfflineMessageStore.java:168)
      2. org.jivesoftware.wildfire.handler.PresenceUpdateHandler.initSession(PresenceUpdateHandler.java:212)
      3. org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:100)
      4. org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:153)
      5. org.jivesoftware.wildfire.PresenceRouter.handle(PresenceRouter.java:92)
      6. org.jivesoftware.wildfire.PresenceRouter.route(PresenceRouter.java:61)
      7. org.jivesoftware.wildfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:75)
      8. org.jivesoftware.wildfire.net.SocketReader.processPresence(SocketReader.java:296)
      9. org.jivesoftware.wildfire.net.ClientSocketReader.processPresence(ClientSocketReader.java:57)
      9 frames