powered by Jive Software

Help with error log message Java Null Pointer

Since we moved to 2.5.0, we have consistently been getting this message. Can someone shed some light on this?

2006.03.07 08:20:35 [org.jivesoftware.wildfire.handler.PresenceSubscribeHandler.process(PresenceSub scribeHandler.java:171)

] Internal server error

java.lang.NullPointerException

at org.jivesoftware.wildfire.roster.Roster.isRosterItem(Roster.java:165)

at org.jivesoftware.wildfire.handler.PresenceSubscribeHandler.manageSub(PresenceSu bscribeHandler.java:221)

at org.jivesoftware.wildfire.handler.PresenceSubscribeHandler.process(PresenceSubs cribeHandler.java:96)

at org.jivesoftware.wildfire.PresenceRouter.handle(PresenceRouter.java:116)

at org.jivesoftware.wildfire.PresenceRouter.route(PresenceRouter.java:61)

at org.jivesoftware.wildfire.plugin.SubscriptionPlugin.interceptPacket(Subscriptio nPlugin.java:102)

at org.jivesoftware.wildfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:222)

at org.jivesoftware.wildfire.net.SocketConnection.deliver(SocketConnection.java:44 7)

at org.jivesoftware.wildfire.ClientSession.deliver(ClientSession.java:754)

at org.jivesoftware.wildfire.ClientSession.process(ClientSession.java:748)

at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.initSession(PresenceUpd ateHandler.java:194)

at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateH andler.java:98)

at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateH andler.java:151)

at org.jivesoftware.wildfire.PresenceRouter.handle(PresenceRouter.java:92)

at org.jivesoftware.wildfire.PresenceRouter.route(PresenceRouter.java:61)

at org.jivesoftware.wildfire.PacketRouter.route(PacketRouter.java:73)

at org.jivesoftware.wildfire.net.SocketReader.processPresence(SocketReader.java:44 3)

at org.jivesoftware.wildfire.net.ClientSocketReader.processPresence(ClientSocketRe ader.java:56)

at org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:240)

at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)

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

Message was edited by: jase700

Hey Jason,

That looks like a client is sending a subscribe/unsubscribe/subscribed/unsubscribed presence packet with no TO attribute. Could you open the debugger window in the client that is sending the presence packet that is causing that exception in the server and post the corrupt packet? Even though we can fix the server to not generate that exception I would recommend contacting the client developers to fix the invalid presence packet that is being sent.

Regards,

– Gato

How do I figure out who is sending that packet request?

our error log was quiet for a little while after the upgrade to 2.5.1, but now the same error message is back…

2006.03.20 17:02:40 [org.jivesoftware.wildfire.handler.PresenceSubscribeHandler.process(PresenceSub scribeHandler.java:173)

] Internal server error

java.lang.NullPointerException

at org.jivesoftware.wildfire.roster.Roster.isRosterItem(Roster.java:162)

at org.jivesoftware.wildfire.handler.PresenceSubscribeHandler.manageSub(PresenceSu bscribeHandler.java:222)

at org.jivesoftware.wildfire.handler.PresenceSubscribeHandler.process(PresenceSubs cribeHandler.java:103)

at org.jivesoftware.wildfire.PresenceRouter.handle(PresenceRouter.java:116)

at org.jivesoftware.wildfire.PresenceRouter.route(PresenceRouter.java:61)

at org.jivesoftware.wildfire.plugin.SubscriptionPlugin.interceptPacket(Subscriptio nPlugin.java:106)

at org.jivesoftware.wildfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:227)

at org.jivesoftware.wildfire.net.SocketConnection.deliver(SocketConnection.java:46 8)

at org.jivesoftware.wildfire.ClientSession.deliver(ClientSession.java:756)

at org.jivesoftware.wildfire.ClientSession.process(ClientSession.java:750)

at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.initSession(PresenceUpd ateHandler.java:199)

at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateH andler.java:100)

at org.jivesoftware.wildfire.handler.PresenceUpdateHandler.process(PresenceUpdateH andler.java:153)

at org.jivesoftware.wildfire.PresenceRouter.handle(PresenceRouter.java:92)

at org.jivesoftware.wildfire.PresenceRouter.route(PresenceRouter.java:61)

at org.jivesoftware.wildfire.PacketRouter.route(PacketRouter.java:73)

at org.jivesoftware.wildfire.net.SocketReader.processPresence(SocketReader.java:44 5)

at org.jivesoftware.wildfire.net.ClientSocketReader.processPresence(ClientSocketRe ader.java:56)

at org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:242)

at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)

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

2006.03.21 07:30:44 [org.jivesoftware.wildfire.handler.IQvCardHandler.handleIQ(IQvCardHandler.java: 86)

]