[typo] Jabber notification

Scott Laird scott at sigkill.org
Tue Dec 6 18:55:57 EST 2005


I swear, this all stuff all worked for me.  Sigh.  Can you file a  
bug?  I'll look at it as soon as I can.


Scott

On Dec 6, 2005, at 3:48 PM, Trejkaz wrote:

> Okay, it didn't take much to get me interested in this one. ;-)
>
> I turned on Jabber notification and messages weren't sending.  No big
> deal, I assumed that some error was going on so as always, into the
> console.
>
>>> me = User.find_all[0]
> => (cut)
>>> JabberNotify.send_message(me, "test", "Test body", "")
> ** Sending Test body to trejkaz at trypticon.org via jabber.
> NameError: undefined local variable or method `logger' for  
> JabberNotify:Class
>         from ./lib/jabber.rb:17:in `send_message'
>         from (irb):16
>
> Okay... but luckily there is an easy way to reproduce the error by  
> itself:
>
>>> JabberNotify.session
> TypeError: can't convert nil into String
>         from ./vendor/jabber4r/lib/jabber4r/protocol.rb:225:in `+'
>         from ./vendor/jabber4r/lib/jabber4r/protocol.rb:225:in
> `gen_open_stream'
>         from ./vendor/jabber4r/lib/jabber4r/session.rb:213:in  
> `initialize'
>         from ./vendor/jabber4r/lib/jabber4r/session.rb:140:in `bind'
>         from ./lib/jabber.rb:30:in `session'
>         from (irb):18
>
> Any idea what's going on?  The line it's pointing at concatenates some
> strings, the only variable one seems to be the host.  So the host  
> is nil,
> but why?
>
> TX
>
>
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list



More information about the Typo-list mailing list