powered by Jive Software

Null Pointer Exception in PacketReader


Firstly I apologise if this is not the correct place to post this question or if it has been answered elsewhere on the forum. I’'ve had a big search though and couldnt find any reference to it.

My problem is this. I am creating a simple chat client, I have created a login procedure. I am using Jive Messenger as the server to login to.

After logging in I get the following printed to System.out


at org.jivesoftware.smack.PacketReader$ListenerWrapper.notifyListener


at org.jivesoftware.smack.PacketReader.processListeners(PacketReader.jav


at org.jivesoftware.smack.PacketReader.access$100(PacketReader.java:45)

at org.jivesoftware.smack.PacketReader$2.run(PacketReader.java:79)

Now I presume it has something to do with me not catching all of the possible packets that get sent to me from the server but I’'m a little lost as to which they could be.

Does anyone have any directions that they could point me in please.

If you would like any more information please just ask.

Many thanks


Hmmm I seem to have solved it !!!

As I first thought, it was just me being a tiny bit stupid and doing something lame with my listeners .