Hi, I created a class extending IQHandler, then in my initializePlugin method I have the following code:
listener = new MyIQListener(“My own IQ”);
IQRouter iqRouter = XMPPServer.getInstance().getIQRouter();
iqRouter.addHandler(listener) // this line causes the error
System.out.println(“Plugin correctly initialized”);
Strangely, if the 3rd line is not present everything works correctly and I got the “Plugin correctly initialized” on server console, if I add that line (I add my listener to IQRouter) plugin does not start!!!
I think problem could be in the IQListener constructor…I really do pass the string “My own IQ”, maybe you have to pass some special kind of string?