NullPointerException in SessionManager


I have detected this error during loadtesting of wildfire (2.6.2 and 3.0.1) with tsung 1.2

  • in warn.log :

2006.08.22 08:42:23 No SessionMap found for session

org.jivesoftware.wildfire.ClientSession@76a29a7 status: -1 address: user4009@IP/tsung id: 8e670f8d presence:

  • in tomcat log (wildfire is running in tomcat):

Internal server error. Triggered by packet:


at org.jivesoftware.wildfire.SessionManager.sessionAvailable( 27)

at org.jivesoftware.wildfire.ClientSession.setPresence(

at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateH

at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateH

at org.jivesoftware.wildfire.PresenceRouter.handle(

at org.jivesoftware.wildfire.PresenceRouter.route(

at org.jivesoftware.wildfire.spi.PacketRouterImpl.route(

at 6)




at 62)



in org.jivesoftware.wildfire.SessionManager.sessionAvailable:

SessionMap sessionMap = sessions.get(session.getUsername());

if (sessionMap == null) {

Log.warn(“No SessionMap found for session” + “\n” + session);


// Update the order of the sessions based on the new presence of this session


so if sessionMap is null , it will always throw a NPE

I think , there is a so big load in wildfire , that the server tries to send a presence packet from a user which has just closed its connection after having sent the presence packet …

Is it normal ? or is it a bug ?

Does anyone meet this problem before ?

Message was edited by: usermich