We're updating the issue view to help you get more done. 

NPE on Admin Console (client sessions listing)

Description

Using a 19 Feb build of Openfire on Ignite, the following NPE was seen attempting to view active client sessions on the Admin console

Environment

None

Acceptance Test - Entry

None

Activity

Show:
Daryl Herzmann
May 26, 2015, 7:53 PM

Updated trace with Guus's commit

Daryl Herzmann
June 10, 2015, 6:56 PM

Moving this to a blocker as it is currently reproducible by Andi and with current dev code.

Rui Simoes
July 10, 2015, 8:16 AM
Edited

Unfortunately still have the same problem.

Server: Ubuntu Server 14.04.2
Openfire 3.11.0 Alfa (with last build "1558")

the log:

2015.07.10 07:50:34 org.jivesoftware.openfire.nio.NIOConnection - Failed to deliver packet: <iq type="set" id="120-53892" to="tondela@10.3.0.2/centrauto"><query xmlns="jabber:iq:roster"><item jid="clobos1@10.3.0.2" name="Camara de Lobos - Pedidos Lojas (Octavio R)" subscription="to"><group>Lojas JPLR</group></item></query></iq>
2015.07.10 07:50:34 org.jivesoftware.openfire.session.LocalSession - Internal server error
java.lang.IllegalStateException: Connection closed
at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:318)
at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857)
at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:290)
at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354)
at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239)
at org.jivesoftware.openfire.SessionManager.userBroadcast(SessionManager.java:1068)
at org.jivesoftware.openfire.roster.Roster.broadcast(Roster.java:685)
at org.jivesoftware.openfire.roster.Roster.broadcast(Roster.java:718)
at org.jivesoftware.openfire.roster.Roster.<init>(Roster.java:163)
at org.jivesoftware.openfire.roster.RosterManager.getRoster(RosterManager.java:116)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.broadcastUpdate(PresenceUpdateHandler.java:307)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:162)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:137)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:201)
at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:148)
at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84)
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84)
at org.jivesoftware.openfire.SessionManager$ClientSessionListener.onConnectionClose(SessionManager.java:1242)
at org.jivesoftware.openfire.nio.NIOConnection.notifyCloseListeners(NIOConnection.java:294)
at org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:277)
at org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:226)
at org.jivesoftware.openfire.nio.NIOConnection.deliverRawText(NIOConnection.java:398)
at org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:248)
at org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:226)
at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:355)
at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857)
at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:290)
at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354)
at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239)
at org.jivesoftware.openfire.SessionManager.userBroadcast(SessionManager.java:1068)
at org.jivesoftware.openfire.roster.Roster.broadcast(Roster.java:685)
at org.jivesoftware.openfire.roster.Roster.broadcast(Roster.java:718)
at org.jivesoftware.openfire.roster.Roster.<init>(Roster.java:163)
at org.jivesoftware.openfire.roster.RosterManager.getRoster(RosterManager.java:116)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.broadcastUpdate(PresenceUpdateHandler.java:307)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:149)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:137)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:201)
at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:148)
at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84)
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84)
at org.jivesoftware.openfire.net.StanzaHandler.processPresence(StanzaHandler.java:348)
at org.jivesoftware.openfire.net.ClientStanzaHandler.processPresence(ClientStanzaHandler.java:101)
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:265)
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:187)
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:177)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:407)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:236)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769)
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761)
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703)
at java.lang.Thread.run(Thread.java:745)

end of log ----------------------------------------------------------------------------------------------------------------------
the openfire stop some times and I need to restart but i dont know if it because of this problem.

Thanks.

Maxim Ivaschenko
August 11, 2015, 8:33 AM

Still gave this issue:

CentOS 7
OpenFire: openfire-3.10.2 (updated from 3.10.1)

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Jeremy C
October 2, 2015, 3:56 PM

it has been stated that the issue has been resolved on this issue, yet I do not see how the issue was fixed or what I do to fix it

Today I was reinstalling openfire on different server and had the same issue as reported on this case while installing it on Windows 2012 server with openfire_3_10_2 and I’m having current error while connecting the new server to active directory. All individual test have passed, yet I get the error when I click on save & continue on step 3 of 3

Can you please inform me on how to solve this problem or if that is only fixed on the linux version?

Please advise.

http://127.0.0.1:9090/setup/setup-admin-settings.jsp?ldap=true (IE)

HTTP ERROR 500
Problem accessing /setup/setup-admin-settings.jsp. Reason:
Server Error
Caused by:
java.lang.NullPointerException
at org.jivesoftware.openfire.admin.setup.setup_002dadmin_002dsettings_jsp._jspService(setup_002dadmin_002dsettings_jsp.java:99)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:74)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:50)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:78)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:159)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Unknown Source)
________________________________________
Powered by Jetty://
________________________________________

Assignee

Dave Cridland

Reporter

Daryl Herzmann

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Blocker
Configure