From: Richard Kilmer Date: 2004-03-18T13:27:54+09:00 Subject: Re: can't logon into jabber server using jabber4r On Mar 17, 2004, at 9:40 PM, Martin Stannard wrote: > Hi, > > I'm trying to connect to an internal company jabber server using > jabber4r. > The server works (I'm connected to it by the Miranda client as are 15 > other people). When running the first example on the jabber4r page > (with > appropriate changes to server, username etc) the script hangs. By the > judicious use of puts statements I've found the script stops at the > line: > > Thread.stop > > at about line 230 of jabber4r/session.rb . > > This is on ruby 1.8.1 (2004-01-27) [i386-mswin32] Could you tell me which version of rexml you have? do: ruby -r 'rexml/document' -e 'puts REXML::Version' > > My script looks like this: > > require 'jabber4r/jabber4r' > > begin > session = Jabber::Session.bind('martin@xxx.yyy.au', 'xxx') > puts session > > session.new_message('lachie@xxx.yyy.au').set_subject('hello').set_body( > 'This > is jabber4r').send insert: sleep 10 > rescue Exception=>error > puts error > ensure > session.release if session > end > > > Ideas? > > regards, > > Martin > >