org.dom4j.IllegalAddException: The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence"

JIRA | Daryl Herzmann | 1 year ago
  1. 0

    Ignite's Openfire is currently logging these tracebacks, I am unsure if the two are related but am including them both as they have the same timestamp. {code} 2015.07.02 14:02:36 org.jivesoftware.openfire.muc.cluster.MUCRoomTask - The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence" org.dom4j.IllegalAddException: The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence" at org.dom4j.tree.AbstractElement.addNode(AbstractElement.java:1521) at org.dom4j.tree.AbstractElement.add(AbstractElement.java:1002) at org.jivesoftware.openfire.muc.spi.LocalMUCRole.setPresence(LocalMUCRole.java:165) at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1828) at org.jivesoftware.openfire.muc.cluster.UpdatePresence$1.run(UpdatePresence.java:69) at org.jivesoftware.openfire.muc.cluster.MUCRoomTask.execute(MUCRoomTask.java:85) at org.jivesoftware.openfire.muc.cluster.UpdatePresence.run(UpdatePresence.java:67) at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1811) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:566) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:197) at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiUserChatServiceImpl.java:331) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:591) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImpl.java:401) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:243) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:135) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} {code} 2015.07.02 14:02:36 org.jivesoftware.openfire.muc.spi.LocalMUCUser - Internal server error java.lang.NullPointerException at org.dom4j.tree.AbstractBranch.appendContent(AbstractBranch.java:290) at org.dom4j.tree.AbstractElement.createCopy(AbstractElement.java:1275) at org.xmpp.packet.Presence.<init>(Presence.java:85) at org.xmpp.packet.Presence.createCopy(Presence.java:309) at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1814) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:566) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:197) at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiUserChatServiceImpl.java:331) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:591) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImpl.java:401) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:243) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:135) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    Jive Software Open Source | 1 year ago | Daryl Herzmann
    org.dom4j.IllegalAddException: The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence"
  2. 0

    Ignite's Openfire is currently logging these tracebacks, I am unsure if the two are related but am including them both as they have the same timestamp. {code} 2015.07.02 14:02:36 org.jivesoftware.openfire.muc.cluster.MUCRoomTask - The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence" org.dom4j.IllegalAddException: The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence" at org.dom4j.tree.AbstractElement.addNode(AbstractElement.java:1521) at org.dom4j.tree.AbstractElement.add(AbstractElement.java:1002) at org.jivesoftware.openfire.muc.spi.LocalMUCRole.setPresence(LocalMUCRole.java:165) at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1828) at org.jivesoftware.openfire.muc.cluster.UpdatePresence$1.run(UpdatePresence.java:69) at org.jivesoftware.openfire.muc.cluster.MUCRoomTask.execute(MUCRoomTask.java:85) at org.jivesoftware.openfire.muc.cluster.UpdatePresence.run(UpdatePresence.java:67) at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1811) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:566) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:197) at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiUserChatServiceImpl.java:331) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:591) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImpl.java:401) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:243) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:135) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} {code} 2015.07.02 14:02:36 org.jivesoftware.openfire.muc.spi.LocalMUCUser - Internal server error java.lang.NullPointerException at org.dom4j.tree.AbstractBranch.appendContent(AbstractBranch.java:290) at org.dom4j.tree.AbstractElement.createCopy(AbstractElement.java:1275) at org.xmpp.packet.Presence.<init>(Presence.java:85) at org.xmpp.packet.Presence.createCopy(Presence.java:309) at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1814) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:566) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:197) at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiUserChatServiceImpl.java:331) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:591) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImpl.java:401) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:243) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:135) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    JIRA | 1 year ago | Daryl Herzmann
    org.dom4j.IllegalAddException: The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence"
  3. 0

    Ignite's Openfire is currently logging these tracebacks, I am unsure if the two are related but am including them both as they have the same timestamp. {code} 2015.07.02 14:02:36 org.jivesoftware.openfire.muc.cluster.MUCRoomTask - The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence" org.dom4j.IllegalAddException: The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence" at org.dom4j.tree.AbstractElement.addNode(AbstractElement.java:1521) at org.dom4j.tree.AbstractElement.add(AbstractElement.java:1002) at org.jivesoftware.openfire.muc.spi.LocalMUCRole.setPresence(LocalMUCRole.java:165) at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1828) at org.jivesoftware.openfire.muc.cluster.UpdatePresence$1.run(UpdatePresence.java:69) at org.jivesoftware.openfire.muc.cluster.MUCRoomTask.execute(MUCRoomTask.java:85) at org.jivesoftware.openfire.muc.cluster.UpdatePresence.run(UpdatePresence.java:67) at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1811) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:566) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:197) at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiUserChatServiceImpl.java:331) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:591) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImpl.java:401) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:243) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:135) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} {code} 2015.07.02 14:02:36 org.jivesoftware.openfire.muc.spi.LocalMUCUser - Internal server error java.lang.NullPointerException at org.dom4j.tree.AbstractBranch.appendContent(AbstractBranch.java:290) at org.dom4j.tree.AbstractElement.createCopy(AbstractElement.java:1275) at org.xmpp.packet.Presence.<init>(Presence.java:85) at org.xmpp.packet.Presence.createCopy(Presence.java:309) at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1814) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:566) at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:197) at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiUserChatServiceImpl.java:331) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:591) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImpl.java:401) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:243) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:135) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    Jive Software Open Source | 1 year ago | Daryl Herzmann
    org.dom4j.IllegalAddException: The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Community • View topic - Basic Use Case: Parent Child + composite PK + Dynamic Sess

    hibernate.org | 5 months ago
    org.dom4j.IllegalAddException: The node "org.dom4j.tree.DefaultElement@18b3364 [Element: <parent attributes: []/>]" could not be added to the element "Parents" because: The Node already has an existing parent of "Child"
  6. 0

    dom4j学习总结(二)_Java_第七城市

    th7.cn | 5 months ago
    org.dom4j.IllegalAddException: The node"[email protected] [Element: ]"could not be added to the element"root"because: The Node already has an existing parent of"root"

    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.IllegalAddException

      The node "org.dom4j.tree.DefaultElement@7c2bd8b [Element: <x uri: http://jabber.org/protocol/muc#user attributes: []/>]" could not be added to the element "presence" because: The Node already has an existing parent of "presence"

      at org.dom4j.tree.AbstractElement.addNode()
    2. dom4j
      AbstractElement.add
      1. org.dom4j.tree.AbstractElement.addNode(AbstractElement.java:1521)
      2. org.dom4j.tree.AbstractElement.add(AbstractElement.java:1002)
      2 frames
    3. org.jivesoftware.openfire
      ServerSocketReader$2.run
      1. org.jivesoftware.openfire.muc.spi.LocalMUCRole.setPresence(LocalMUCRole.java:165)
      2. org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1828)
      3. org.jivesoftware.openfire.muc.cluster.UpdatePresence$1.run(UpdatePresence.java:69)
      4. org.jivesoftware.openfire.muc.cluster.MUCRoomTask.execute(MUCRoomTask.java:85)
      5. org.jivesoftware.openfire.muc.cluster.UpdatePresence.run(UpdatePresence.java:67)
      6. org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1811)
      7. org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:566)
      8. org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:197)
      9. org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiUserChatServiceImpl.java:331)
      10. org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:591)
      11. org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImpl.java:401)
      12. org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:243)
      13. org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:135)
      14. org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84)
      15. org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84)
      16. org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284)
      17. org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60)
      18. org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122)
      18 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames