HTTP 500 in user-summary.jsp

Hello Ignite community,

I am running Openfire 3.11 on an AWS EC2 instance. I know this isn’t a released version of Openfire, I slightly modified the “latest” source code when we starting using Openfire in our environment. The code I modified is unrelated to the problem I’m experiencing here, as far as I can tell. I am seeing a strange error when I try to view the list of users in the admin console. I get a stack trace that looks like this:


Problem accessing /user-summary.jsp. Reason:

> > Server Error

Caused by:


at org.jivesoftware.openfire.spi.PresenceManagerImpl.getPresence(PresenceManagerIm

at org.jivesoftware.openfire.admin.user_002dsummary_jsp._jspService(user_002dsumma

at org.apache.jasper.runtime.HttpJspBase.service(

at javax.servlet.http.HttpServlet.service(

at org.eclipse.jetty.servlet.ServletHolder.handle(

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1669)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage( 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.util.LocaleFilter.doFilter(

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.admin.PluginFilter.doFilter(

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(

at org.eclipse.jetty.server.handler.ScopedHandler.handle(


at org.eclipse.jetty.server.session.SessionHandler.doHandle( 3)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle( 27)

at org.eclipse.jetty.servlet.ServletHandler.doScope(

at org.eclipse.jetty.server.session.SessionHandler.doScope( )

at org.eclipse.jetty.server.handler.ContextHandler.doScope( 1)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:110)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(

at org.eclipse.jetty.server.Server.handle(

at org.eclipse.jetty.server.HttpChannel.handle(

at org.eclipse.jetty.server.HttpConnection.onFillable(


at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob( )

at org.eclipse.jetty.util.thread.QueuedThreadPool$


This isn’t the first time this has happened, but it goes away temporarily when I restart the server. I observed this error yesterday, restarted the server, and less than 24 hours later it was back. Obviously this isn’t something I want to do every day, but I don’t understand what the problem is. Can anyone help me track down the problem? Here’s the code that appears in my version of, surrounding the offending line 109:

public Presence getPresence(User user) {
        if (user == null) {
            return null;
        Presence presence = null;         for (ClientSession session : sessionManager.getSessions(user.getUsername())) {
            if (presence == null) {
                presence = session.getPresence(); // <<< This is line 109
            else {
                // Get the ordinals of the presences to compare. If no ordinal is available then
                // assume a value of -1
                int o1 = presence.getShow() != null ? presence.getShow().ordinal() : -1;
                int o2 = session.getPresence().getShow() != null ?
                        session.getPresence().getShow().ordinal() : -1;
                // Compare the presences' show ordinals
                if (o1 > o2) {
                    presence = session.getPresence();
        return presence;     }

This error hasn’t caused any problems with the actual functioning of Openfire as a chat server, but I would really like to be able to see and work with the user list. Thanks for your help!

Message was edited by: Chris. Fixed Java syntax highlighting