Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Modules acting up after relocating code

Reply
Thread Tools

Modules acting up after relocating code

 
 
Walle Wallen
Guest
Posts: n/a
 
      01-27-2011
Hello,

I'm having a strange problem with some of my required modules/gems.
After relocating code to new files some of the modules has started
acting strange. For example, Hpricot has started generating Exceptions
as well as net/ssh regarding NoMethodError. What could be the problem?

Some of the Exceptions:

Exception `NoMethodError' at
/Library/Ruby/Gems/1.8/gems/net-ssh-2.1.0/lib/net/ssh/buffer.rb:55 -
private method `send' called for #<Net::SSH::Buffer:0x101579908
@content="", @position=0>

Exception `NoMethodError' at
/Library/Ruby/Gems/1.8/gems/hpricot-0.8.3/lib/hpricot/elements.rb:310 -
private method `send' called for #<Hpricot::Elem:0x1005a38d0>

//Walle

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      01-28-2011
On Thu, Jan 27, 2011 at 6:55 PM, Walle Wallen <(E-Mail Removed)> wrote:
> I'm having a strange problem with some of my required modules/gems.
> After relocating code to new files some of the modules has started
> acting strange. For example, Hpricot has started generating Exceptions
> as well as net/ssh regarding NoMethodError. What could be the problem?
>
> Some of the Exceptions:
>
> Exception `NoMethodError' at
> /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.0/lib/net/ssh/buffer.rb:55 -
> private method `send' called for #<Net::SSH::Buffer:0x101579908
> @content="", @position=0>
>
> Exception `NoMethodError' at
> /Library/Ruby/Gems/1.8/gems/hpricot-0.8.3/lib/hpricot/elements.rb:310 -
> private method `send' called for #<Hpricot::Elem:0x1005a38d0>


We need more context, at least stack traces and probably also how you
use those libraries. Ruby and gem versions are probably also helpful.

Cheers

robert


--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

 
Reply With Quote
 
 
 
 
Walle Wallen
Guest
Posts: n/a
 
      01-28-2011
Robert Klemme wrote in post #978150:
> On Thu, Jan 27, 2011 at 6:55 PM, Walle Wallen <(E-Mail Removed)>
> wrote:
>> @content="", @position=0>
>>
>> Exception `NoMethodError' at
>> /Library/Ruby/Gems/1.8/gems/hpricot-0.8.3/lib/hpricot/elements.rb:310 -
>> private method `send' called for #<Hpricot::Elem:0x1005a38d0>

>
> We need more context, at least stack traces and probably also how you
> use those libraries. Ruby and gem versions are probably also helpful.
>
> Cheers
>
> robert


Hey,
I solved the problem, one of my functions superimposed send in net/http
as well as in hpricot.

Thanks.

//Walle

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relocating - need advice AntiriadElectronics VHDL 1 07-25-2005 05:51 PM
Relocating arrays using System.arraycopy - Java 6 06-02-2005 02:15 PM
Problem relocating asp.net applications Dave ASP .Net 1 02-20-2004 09:18 AM
Relocating Web page positioning =?Utf-8?B?RGF2ZQ==?= ASP .Net 1 02-12-2004 04:45 PM



Advertisments