[jdev] Net::Jabber returns empty or bogus presence from users on the roster

Bart Smit Bart.Smit at nexusmgmt.com
Thu Dec 8 08:07:30 CST 2005


I am having problems with the Net::Jabber perl module getting roster
information from both a jabber 1.x and 2.x server.
 
My script will not show presence information from the roster. I want to
make sure that the user is online/chat before I send them a message from
the script.
 
After some googling I ended up on
http://www.pipetree.com/jabber/headlines.html.
 
To make sure the problem is not with my code, I modified the headlines
script for my server particulars and registered the headlines user
manually with Exodus. I then started the script and got this error
message as soon as I signed in:
 
Can't call method "isa" without a package or object reference at
/usr/lib/perl5/site_perl/5.8.6/Net/XMPP/Stanza.pm line 252
 
I remmed out the use strict; directive on both my script and the
Stanza.pm as suggested on some pages and it gives:
 
DBUG: Presence from :
<eng47d5x9gxocxoknt2hf3kiwxkj8hen5urc7xah/>
DBUG:  available (online)
 
Did anybody get this particular script to run correctly? Are there
perhaps more recent examples of perl scripts that read the presence of
users on the roster?
 
Any pointers would be very much appreciated.
 
Thanks, 
 
Bart...



More information about the JDev mailing list