java.lang.NullPointerException

Jive Software Open Source | Daryl Herzmann | 2 years 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

    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 | 2 years ago | Daryl Herzmann
    java.lang.NullPointerException
  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 | 2 years ago | Daryl Herzmann
    java.lang.NullPointerException
  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 | 2 years ago | Daryl Herzmann
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    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. java.lang.NullPointerException

      No message provided

      at org.dom4j.tree.AbstractBranch.appendContent()
    2. dom4j
      AbstractElement.createCopy
      1. org.dom4j.tree.AbstractBranch.appendContent(AbstractBranch.java:290)
      2. org.dom4j.tree.AbstractElement.createCopy(AbstractElement.java:1275)
      2 frames
    3. org.xmpp.packet
      Presence.createCopy
      1. org.xmpp.packet.Presence.<init>(Presence.java:85)
      2. org.xmpp.packet.Presence.createCopy(Presence.java:309)
      2 frames
    4. org.jivesoftware.openfire
      ServerSocketReader$2.run
      1. org.jivesoftware.openfire.muc.spi.LocalMUCRoom.presenceUpdated(LocalMUCRoom.java:1814)
      2. org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:566)
      3. org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:197)
      4. org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiUserChatServiceImpl.java:331)
      5. org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:591)
      6. org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImpl.java:401)
      7. org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:243)
      8. org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:135)
      9. org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84)
      10. org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84)
      11. org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284)
      12. org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60)
      13. org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122)
      13 frames
    5. 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