Issue with Distributed Ruby and extend_object_with

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with Distributed Ruby and extend_object_with

JasonGoecke

I got this via an email message so thought I would post it here:

I'm getting the following error that I can't seem to resolve.  It
looks like adhearsion is trying to setup DRB, but there's a null
object coming from somewhere. (component_manager)

- I know that Components is a valid Module.
- Ruby can see an class variable under Components for
@@component_manager.
- It just looks like component_manager was not set along the way.

Do you have any thoughts?

Components.component_manager.extend_object_with(drb_door, :rpc)

/usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/adhearsion/
initializer/drb.rb:21:in `start': undefined method
`extend_object_with' for nil:NilClass (NoMethodError)
        from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
adhearsion/initializer.rb:271:in `init_modules'
        from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
adhearsion/initializer.rb:135:in `start'
        from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
adhearsion/initializer.rb:92:in `start'
        from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
adhearsion/cli.rb:129:in `start'
        from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
adhearsion/cli.rb:19:in `send'
        from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
adhearsion/cli.rb:19:in `execute!'
        from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/bin/ahn:28
        from /usr/bin/ahn:19:in `load'
        from /usr/bin/ahn:19
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/adhearsion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Issue with Distributed Ruby and extend_object_with

Jicksta
Administrator

Hmm, what is causing this error? Is there a particular kind of
configuration you can give me that reproduces this issue?

On Feb 16, 5:22 pm, JasonGoecke <[hidden email]> wrote:

> I got this via an email message so thought I would post it here:
>
> I'm getting the following error that I can't seem to resolve.  It
> looks like adhearsion is trying to setup DRB, but there's a null
> object coming from somewhere. (component_manager)
>
> - I know that Components is a valid Module.
> - Ruby can see an class variable under Components for
> @@component_manager.
> - It just looks like component_manager was not set along the way.
>
> Do you have any thoughts?
>
> Components.component_manager.extend_object_with(drb_door, :rpc)
>
> /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/adhearsion/
> initializer/drb.rb:21:in `start': undefined method
> `extend_object_with' for nil:NilClass (NoMethodError)
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/initializer.rb:271:in `init_modules'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/initializer.rb:135:in `start'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/initializer.rb:92:in `start'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/cli.rb:129:in `start'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/cli.rb:19:in `send'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/cli.rb:19:in `execute!'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/bin/ahn:28
>         from /usr/bin/ahn:19:in `load'
>         from /usr/bin/ahn:19
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/adhearsion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Issue with Distributed Ruby and extend_object_with

JasonGoecke
In reply to this post by JasonGoecke

Also, which version of Adhearsion are you using? Simply enter 'ahn --
version'. It is recommended to run v0.8.1+.

On Feb 16, 5:22 pm, JasonGoecke <[hidden email]> wrote:

> I got this via an email message so thought I would post it here:
>
> I'm getting the following error that I can't seem to resolve.  It
> looks like adhearsion is trying to setup DRB, but there's a null
> object coming from somewhere. (component_manager)
>
> - I know that Components is a valid Module.
> - Ruby can see an class variable under Components for
> @@component_manager.
> - It just looks like component_manager was not set along the way.
>
> Do you have any thoughts?
>
> Components.component_manager.extend_object_with(drb_door, :rpc)
>
> /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/adhearsion/
> initializer/drb.rb:21:in `start': undefined method
> `extend_object_with' for nil:NilClass (NoMethodError)
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/initializer.rb:271:in `init_modules'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/initializer.rb:135:in `start'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/initializer.rb:92:in `start'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/cli.rb:129:in `start'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/cli.rb:19:in `send'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> adhearsion/cli.rb:19:in `execute!'
>         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/bin/ahn:28
>         from /usr/bin/ahn:19:in `load'
>         from /usr/bin/ahn:19
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/adhearsion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Issue with Distributed Ruby and extend_object_with

Michael Rosario

Hey there Jason.

I think I got the issue figured out.

The adhearsion code I was trying to invoke was built under Adhearsion
v0.7.999.

I was trying to run this code using Adhearsion v0.8.1.

It appears that mixing Adhearsion versions is not a good idea.

After correcting the version match up issue, everything runs fine.

Thank you for the follow up!

On Feb 16, 8:45 pm, JasonGoecke <[hidden email]> wrote:

> Also, which version of Adhearsion are you using? Simply enter 'ahn --
> version'. It is recommended to run v0.8.1+.
>
> On Feb 16, 5:22 pm, JasonGoecke <[hidden email]> wrote:
>
> > I got this via an email message so thought I would post it here:
>
> > I'm getting the following error that I can't seem to resolve.  It
> > looks like adhearsion is trying to setup DRB, but there's a null
> > object coming from somewhere. (component_manager)
>
> > - I know that Components is a valid Module.
> > - Ruby can see an class variable under Components for
> > @@component_manager.
> > - It just looks like component_manager was not set along the way.
>
> > Do you have any thoughts?
>
> > Components.component_manager.extend_object_with(drb_door, :rpc)
>
> > /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/adhearsion/
> > initializer/drb.rb:21:in `start': undefined method
> > `extend_object_with' for nil:NilClass (NoMethodError)
> >         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> > adhearsion/initializer.rb:271:in `init_modules'
> >         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> > adhearsion/initializer.rb:135:in `start'
> >         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> > adhearsion/initializer.rb:92:in `start'
> >         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> > adhearsion/cli.rb:129:in `start'
> >         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> > adhearsion/cli.rb:19:in `send'
> >         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/lib/
> > adhearsion/cli.rb:19:in `execute!'
> >         from /usr/lib64/ruby/gems/1.8/gems/adhearsion-0.8.1/bin/ahn:28
> >         from /usr/bin/ahn:19:in `load'
> >         from /usr/bin/ahn:19
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/adhearsion?hl=en
-~----------~----~----~----~------~----~------~--~---