NullPointerException in Openfire 3.5.1

Could you please fix it? Developers, please indicate that you acknowledged this problem.

2008.04.25 13:49:15 org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:160 ) Could not close socket

org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection@1d74bb1

java.lang.NullPointerException

at org.jivesoftware.openfire.http.HttpSession$Deliverable.getPackets(HttpSession.j ava:809)

at org.jivesoftware.openfire.http.HttpSession.failDelivery(HttpSession.java:682)

at org.jivesoftware.openfire.http.HttpSession.closeConnection(HttpSession.java:671 )

at org.jivesoftware.openfire.http.HttpSession.access$200(HttpSession.java:52)

at org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection.closeVirtualCo nnection(HttpSession.java:740)

at org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:15 6)

at org.jivesoftware.openfire.http.HttpSession.close(HttpSession.java:161)

at org.jivesoftware.openfire.handler.IQBindHandler.handleIQ(IQBindHandler.java:118 )

at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:49)

at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:349)

at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:101)

at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:68)

at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:10 0)

at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:61 )

at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets(HttpSession.java: 460)

at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.run(HttpSess ionManager.java:319)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

2008.04.25 15:53:44 org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:160 ) Could not close socket

org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection@108bef4

java.lang.NullPointerException

at org.jivesoftware.openfire.http.HttpSession$Deliverable.getPackets(HttpSession.j ava:809)

at org.jivesoftware.openfire.http.HttpSession.failDelivery(HttpSession.java:682)

at org.jivesoftware.openfire.http.HttpSession.closeConnection(HttpSession.java:671 )

at org.jivesoftware.openfire.http.HttpSession.access$200(HttpSession.java:52)

at org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection.closeVirtualCo nnection(HttpSession.java:740)

at org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:15 6)

at org.jivesoftware.openfire.http.HttpSession.close(HttpSession.java:161)

at org.jivesoftware.openfire.handler.IQBindHandler.handleIQ(IQBindHandler.java:118 )

at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:49)

at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:349)

at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:101)

at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:68)

at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:10 0)

at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:61 )

at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets(HttpSession.java: 460)

at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.run(HttpSess ionManager.java:319)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

2008.04.25 15:53:58 org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:160 ) Could not close socket

org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection@133ef6a

java.lang.NullPointerException

at org.jivesoftware.openfire.http.HttpSession$Deliverable.getPackets(HttpSession.j ava:809)

at org.jivesoftware.openfire.http.HttpSession.failDelivery(HttpSession.java:682)

at org.jivesoftware.openfire.http.HttpSession.closeConnection(HttpSession.java:671 )

at org.jivesoftware.openfire.http.HttpSession.access$200(HttpSession.java:52)

at org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection.closeVirtualCo nnection(HttpSession.java:740)

at org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:15 6)

at org.jivesoftware.openfire.http.HttpSession.close(HttpSession.java:161)

at org.jivesoftware.openfire.handler.IQBindHandler.handleIQ(IQBindHandler.java:118 )

at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:49)

at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:349)

at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:101)

at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:68)

at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:10 0)

at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:61 )

at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets(HttpSession.java: 460)

at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.run(HttpSess ionManager.java:319)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Hey Attila,

Hmm, that problem should have been fixed for 3.5.1. Are you certain that you correctly updated to 3.5.1? What version do you see in the admin console or in the info log file? If you are using 3.5.1 then I would like to know if there is a way we can reproduce this problem.

Thanks,

– Gato

Never mind, I think I see what is going on. I will let you know when this is fixed.

Thanks,

– Gato

Thanks in advance.

Hello,

Please, please, please fix this problem! I thought that this NullPointerException would be a strong enough bug report, and it would get fixed in 3.5.2, but apparently it did not get fixed. This causes problems (instability) using Openfire with HTTP binding, and we don’t even know what’s wrong. I attach two different stack traces (using 3.5.2) when this problem happens. These exceptions happen several times. I guess that HttpBindServlet.sendError() wants to send back some error message but I am not sure if it ever gets to the client, although it would be perhaps useful information for the development of the client application.

Is there a bug ticket already assigned for this?

Thanks in advance,

Attila

2008.06.25 14:20:05 org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:160 ) Could not close socket

org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection@b5e7f3

java.lang.NullPointerException

at org.jivesoftware.openfire.http.HttpSession$Deliverable.getPackets(HttpSession.j ava:809)

at org.jivesoftware.openfire.http.HttpSession.failDelivery(HttpSession.java:682)

at org.jivesoftware.openfire.http.HttpSession.closeConnection(HttpSession.java:671 )

at org.jivesoftware.openfire.http.HttpSession.access$200(HttpSession.java:52)

at org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection.closeVirtualCo nnection(HttpSession.java:740)

at org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:15 6)

at org.jivesoftware.openfire.http.HttpSession.close(HttpSession.java:161)

at org.jivesoftware.openfire.http.HttpBindServlet.sendError(HttpBindServlet.java:1 88)

at org.jivesoftware.openfire.http.HttpBindServlet.isContinuation(HttpBindServlet.j ava:167)

at org.jivesoftware.openfire.http.HttpBindServlet.doPost(HttpBindServlet.java:116)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollect ion.java:206)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

at org.mortbay.jetty.Server.handle(Server.java:324)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:374)

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

at org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(SelectChanne lConnector.java:506)

at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

2008.06.25 14:21:24 org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:160 ) Could not close socket

org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection@1c2a51c

java.lang.NullPointerException

at org.jivesoftware.openfire.http.HttpSession$Deliverable.getPackets(HttpSession.j ava:809)

at org.jivesoftware.openfire.http.HttpSession.failDelivery(HttpSession.java:682)

at org.jivesoftware.openfire.http.HttpSession.closeConnection(HttpSession.java:671 )

at org.jivesoftware.openfire.http.HttpSession.access$200(HttpSession.java:52)

at org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection.closeVirtualCo nnection(HttpSession.java:740)

at org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:15 6)

at org.jivesoftware.openfire.http.HttpSession.close(HttpSession.java:161)

at org.jivesoftware.openfire.handler.IQBindHandler.handleIQ(IQBindHandler.java:126 )

at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:49)

at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:349)

at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:101)

at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:68)

at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:10 0)

at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:61 )

at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets(HttpSession.java: 460)

at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.run(HttpSess ionManager.java:318)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

Hi Attila,

I filed a Jira ticket as I didn’t see one already for it: JM-1404

daryl

Thanks. Can you please give any estimate on when this will be fixed?