java.lang.NullPointerException

JIRA | Gaston Dombiak | 1 decade ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Trying to load a vCard of a user that does not exist will generate the following NPE. 2006.11.01 16:59:03 [org.jivesoftware.wildfire.ldap.LdapVCardProvider.getLdapAttributes(LdapVCardProvider.java:158) ] org.jivesoftware.wildfire.user.UserNotFoundException: Username admin not found at org.jivesoftware.wildfire.ldap.LdapManager.findUserDN(LdapManager.java:613) at org.jivesoftware.wildfire.ldap.LdapManager.findUserDN(LdapManager.java:541) at org.jivesoftware.wildfire.ldap.LdapVCardProvider.getLdapAttributes(LdapVCardProvider.java:137) at org.jivesoftware.wildfire.ldap.LdapVCardProvider.loadVCard(LdapVCardProvider.java:176) at org.jivesoftware.wildfire.vcard.VCardManager.getOrLoadVCard(VCardManager.java:198) at org.jivesoftware.wildfire.vcard.VCardManager.getVCard(VCardManager.java:191) at org.jivesoftware.wildfire.handler.IQvCardHandler.handleIQ(IQvCardHandler.java:107) at org.jivesoftware.wildfire.handler.IQHandler.process(IQHandler.java:48) at org.jivesoftware.wildfire.IQRouter.handle(IQRouter.java:268) at org.jivesoftware.wildfire.IQRouter.route(IQRouter.java:96) at org.jivesoftware.wildfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:67) at org.jivesoftware.wildfire.net.SocketReader.processIQ(SocketReader.java:250) at org.jivesoftware.wildfire.net.ClientSocketReader.processIQ(ClientSocketReader.java:51) at org.jivesoftware.wildfire.net.SocketReader.process(SocketReader.java:216) at org.jivesoftware.wildfire.net.BlockingReadingMode.readStream(BlockingReadingMode.java:156) at org.jivesoftware.wildfire.net.BlockingReadingMode.run(BlockingReadingMode.java:62) at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:123) at java.lang.Thread.run(Thread.java:595) 2006.11.01 16:59:03 [org.jivesoftware.wildfire.handler.IQHandler.process(IQHandler.java:68) ] Internal server error java.lang.NullPointerException at org.jivesoftware.wildfire.ldap.LdapVCardProvider$VCard.treeWalk(LdapVCardProvider.java:300) at org.jivesoftware.wildfire.ldap.LdapVCardProvider$VCard.treeWalk(LdapVCardProvider.java:305) at org.jivesoftware.wildfire.ldap.LdapVCardProvider$VCard.getVCard(LdapVCardProvider.java:282) at org.jivesoftware.wildfire.ldap.LdapVCardProvider.loadVCard(LdapVCardProvider.java:178) at org.jivesoftware.wildfire.vcard.VCardManager.getOrLoadVCard(VCardManager.java:198) at org.jivesoftware.wildfire.vcard.VCardManager.getVCard(VCardManager.java:191) at org.jivesoftware.wildfire.handler.IQvCardHandler.handleIQ(IQvCardHandler.java:107) at org.jivesoftware.wildfire.handler.IQHandler.process(IQHandler.java:48) at org.jivesoftware.wildfire.IQRouter.handle(IQRouter.java:268) at org.jivesoftware.wildfire.IQRouter.route(IQRouter.java:96) at org.jivesoftware.wildfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:67) at org.jivesoftware.wildfire.net.SocketReader.processIQ(SocketReader.java:250) at org.jivesoftware.wildfire.net.ClientSocketReader.processIQ(ClientSocketReader.java:51) at org.jivesoftware.wildfire.net.SocketReader.process(SocketReader.java:216) at org.jivesoftware.wildfire.net.BlockingReadingMode.readStream(BlockingReadingMode.java:156) at org.jivesoftware.wildfire.net.BlockingReadingMode.run(BlockingReadingMode.java:62) at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:123) at java.lang.Thread.run(Thread.java:595)

    Jive Software Open Source | 1 decade ago | Gaston Dombiak
    java.lang.NullPointerException

    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.jivesoftware.wildfire.handler.IQRosterHandler.manageRoster()
    2. org.jivesoftware.wildfire
      SocketReader.run
      1. org.jivesoftware.wildfire.handler.IQRosterHandler.manageRoster(IQRosterHandler.java:172)
      2. org.jivesoftware.wildfire.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:103)
      3. org.jivesoftware.wildfire.handler.IQHandler.process(IQHandler.java:48)
      4. org.jivesoftware.wildfire.IQRouter.handle(IQRouter.java:256)
      5. org.jivesoftware.wildfire.IQRouter.route(IQRouter.java:79)
      6. org.jivesoftware.wildfire.PacketRouter.route(PacketRouter.java:65)
      7. org.jivesoftware.wildfire.net.SocketReader.processIQ(SocketReader.java:395)
      8. org.jivesoftware.wildfire.net.ClientSocketReader.processIQ(ClientSocketReader.java:50)
      9. org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:263)
      10. org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)
      10 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame