org.dom4j.IllegalAddException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Daryl Herzmann,
  • 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}
    via by Daryl Herzmann,
  • 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}
    via by Daryl Herzmann,
  • dom4jѧϰ×ܽá_Îĵµ×ÊÁϹ²ÏíÍø
    via by Unknown author,
    • 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,