java.lang.NullPointerException

JIRA | Daniel Henninger | 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.gateway.BaseTransport.handleIQRegister()
    2. org.jivesoftware.wildfire
      SocketReader.run
      1. org.jivesoftware.wildfire.gateway.BaseTransport.handleIQRegister(BaseTransport.java:592)
      2. org.jivesoftware.wildfire.gateway.BaseTransport.processPacket(BaseTransport.java:394)
      3. org.jivesoftware.wildfire.gateway.BaseTransport.processPacket(BaseTransport.java:129)
      4. org.jivesoftware.wildfire.component.InternalComponentManager$RoutableComponent.process(InternalComponentManager.java:439)
      5. org.jivesoftware.wildfire.IQRouter.handle(IQRouter.java:218)
      6. org.jivesoftware.wildfire.IQRouter.route(IQRouter.java:96)
      7. org.jivesoftware.wildfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:67)
      8. org.jivesoftware.wildfire.net.SocketReader.processIQ(SocketReader.java:250)
      9. org.jivesoftware.wildfire.net.ClientSocketReader.processIQ(ClientSocketReader.java:51)
      10. org.jivesoftware.wildfire.net.SocketReader.process(SocketReader.java:216)
      11. org.jivesoftware.wildfire.net.BlockingReadingMode.readStream(BlockingReadingMode.java:156)
      12. org.jivesoftware.wildfire.net.BlockingReadingMode.run(BlockingReadingMode.java:62)
      13. org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:123)
      13 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame