powered by Jive Software

Xmlrpc deleteRegistration problem

I have an interesting behavior of the xmlrpc deleteRegistration method. The first time I click a button in my web application i get a null pointer exception in the logs of openfire. Clicking a second time and everything works fine…

I’m not quite sure if the problem is in my code or if it is a problem with the xmlrpc? Anyone else with this problem?

Ack, what’s the NPE??

Hm:

that’s everything that I get in the “warn”-section of the log viewer:

2007.08.08 15:31:09 java.lang.NullPointerException: null

It seems like that with the first try I get disconnected from the transport and with the second try the transport will be deleted…

You act as if that’s not informative =D

Uhm. Hrm. You know, I think I might know what’s up with that and it might be fixed in my latest build. (I’m aiming to have 1.1.1 out real soon now, lots of little buggies that are fixed)

Still, is there anything at all in error.log? If you have debug.log turned on, is there anything that shows up there?

hehe, yes… i litte bit more info would be cool… just to know that it is not my fault…

ok, here is the debug stuff, I paste everything that occurs after I press the deleteTransport button the first time…:

2007.08.08 15:50:24 EOF2007.08.08 15:50:19 session 7 closed2007.08.08 15:50:19

msn: Sending packet: <presence type=“unavailable”

to=“peter_tester1@ubuntu-server7.04”

           from="xxx@msn.ubuntu-server7.04"/&gt;<span class="date">2007.08.08 15:50:19 msn: Sending packet: &lt;presence type="unavailable" to="peter_tester1@ubuntu-server7.04" from="msn.ubuntu-server7.04"/&gt;<span class="date">2007.08.08 15:50:19 Disconnecting session peter_tester1@ubuntu-server7.04 from msn.ubuntu-server7.04<span class="date">2007.08.08 15:50:19 MSN: Session messageReceived for xxx@web.de : QRY 7<span class="date">2007.08.08 15:50:19 session 7 received message QRY 7

00000010h: 34 63 34 61 31 31 31 30 64 63 34 63 34 37 34 39 ; 4c4a1110dc4c4749

00000000h: 30 39 37 65 63 37 62 34 36 31 62 34 35 34 39 61 ; 097ec7b461b4549a

====================

Binary Chunk Debug

====================

097ec7b461b4549a4c4a1110dc4c4749

====================

Chunk Debug

           ====================<span class="date">2007.08.08 15:50:19 MSN: Session messageSent for xxx@web.de : QRY 7 PROD0090YUAUV{2B 32

00000010h: 34 63 34 61 31 31 31 30 64 63 34 63 34 37 34 39 ; 4c4a1110dc4c4749

00000000h: 30 39 37 65 63 37 62 34 36 31 62 34 35 34 39 61 ; 097ec7b461b4549a

====================

Binary Chunk Debug

====================

097ec7b461b4549a4c4a1110dc4c4749

====================

Chunk Debug

           ====================<span class="date">2007.08.08 15:50:19 session 7 sent message QRY 7 PROD0090YUAUV{2B 32<span class="date">2007.08.08 15:50:19 MSN: Session messageReceived for xxx@web.de : CHL 0 21641191712771418322<span class="date">2007.08.08 15:50:19 session 7 received message CHL 0 21641191712771418322

and this is the output how it should be if i press the button a second time…

2007.08.08 15:57:34 EOF2007.08.08 15:57:32 Sending 304 for /util.js2007.08.08 15:57:32 Sending 304 for /engine.js2007.08.08 15:57:29

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04”

to=“xxx@msn.ubuntu-server7.04”

type=“unsubscribe”/>2007.08.08 15:57:29 Cleaning up roster entry xxx@msn.ubuntu-server7.042007.08.08 15:57:29

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04”

to=“xx@msn.ubuntu-server7.04” type=“unsubscribe”/>2007.08.08 15:57:29 Cleaning up roster entry xxx40web.de@msn.ubuntu-server7.042007.08.08 15:57:29

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04”

to=“xx40gmx.de@msn.ubuntu-server7.04

type=“unsubscribe”/>2007.08.08 15:57:29 Cleaning up roster entry xxx40gmx.de@msn.ubuntu-server7.042007.08.08 15:57:29

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04”

to=“xxx40hotmail.com@msn.ubuntu-server7.04” type=“unsubscribe”/>2007.08.08 15:57:29 Cleaning up roster entry xxx0hotmail.com@msn.ubuntu-server7.042007.08.08 15:57:29

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04”

to=“xxx0hotmail.com@msn.ubuntu-server7.04

type=“unsubscribe”/>2007.08.08 15:57:29 Cleaning up roster entry xxx40hotmail.com@msn.ubuntu-server7.042007.08.08 15:57:29

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04”

to=“xxx\40hotmail.com@msn.ubuntu-server7.04

type=“unsubscribe”/>2007.08.08 15:57:29 Cleaning up roster entry xxx40hotmail.com@msn.ubuntu-server7.042007.08.08 15:57:29

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04”

to=“xxxe@msn.ubuntu-server7.04”

type=“unsubscribe”/>2007.08.08 15:57:29 Cleaning up roster entry xxx@msn.ubuntu-server7.042007.08.08 15:57:29 Unable to find registration.2007.08.08 15:57:29

Received presence packet: <presence type=“unavailable”

from=“peter_tester1@ubuntu-server7.04/Smack”

to=“msn.ubuntu-server7.04”/>2007.08.08 15:57:29 Unable to find registration.2007.08.08 15:57:29

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04” to=“msn.ubuntu-server7.04”

type=“unsubscribed”/>2007.08.08 15:57:29 Unable to find registration.2007.08.08 15:57:29

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04” to=“msn.ubuntu-server7.04”

type=“unsubscribe”/>2007.08.08 15:57:34 Cleaning up roster entry msn.ubuntu-server7.042007.08.08 15:57:34

Received presence packet: <presence

from=“peter_tester1@ubuntu-server7.04”

to=“xxx@msn.ubuntu-server7.04”

type=“unsubscribe”/>2007.08.08 15:57:34 Cleaning up roster entry xxx@msn.ubuntu-server7.04

DWREngine._handleResponse(‘4286_1187144849906’, s0);2007.08.08 15:57:20 var s0=null;2007.08.08 15:57:20 Returning: id[4286_1187144849906] assign[s0] xhr[true]2007.08.08 15:57:20 --Object created, not stored. Call params () id=4286_1187144849906. Using (XHR,POST)2007.08.08 15:57:20 Exec[0]: ConnectionTester.pingSession()

After that the registration is successfully deleted!

HTH

Cheers

Would you mind trying it with the attached version? I think I might have fixed what was causing this. BTW, as an additional bonus, theres now a getActiveTransports command to get the list of activated/enabled transports. =)
gateway.jar (1173794 Bytes)

Well done… it works!!! If life would be so easy all the time :smiley:

Thx a lot! And I’m looking forward to try out the new xmlrpc function…

I’ll post feedback if it works…