Error message help


#1

My program is hitting an error and showing me:
c:/ruby/lib/ruby/1.8/drb/drb.rb:743:in +': can't convert nil into String (TypeError) from c:/ruby/lib/ruby/1.8/drb/drb.rb:743:inopen’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:741:in open' from c:/ruby/lib/ruby/1.8/drb/drb.rb:1189:ininitialize’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:in new' from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:inopen’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1085:in method_missing' from c:/ruby/lib/ruby/1.8/drb/drb.rb:1103:inwith_friend’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1084:in method_missing' ... 12 levels... from stclient.rb:30:inrun’
from stclient.rb:30:in initialize' from stclient.rb:36:innew’
from stclient.rb:36

How do I get ruby to show me the middle 12 levels? The problem is
probably in the middle there, but I don’t know what method.

Raj


#2

can you send the full source?

Raj S. removed_email_address@domain.invalid wrote: My program is hitting an error and
showing me:
c:/ruby/lib/ruby/1.8/drb/drb.rb:743:in +': can't convert nil into String (TypeError) from c:/ruby/lib/ruby/1.8/drb/drb.rb:743:inopen’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:741:in open' from c:/ruby/lib/ruby/1.8/drb/drb.rb:1189:ininitialize’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:in new' from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:inopen’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1085:in method_missing' from c:/ruby/lib/ruby/1.8/drb/drb.rb:1103:inwith_friend’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1084:in method_missing' ... 12 levels... from stclient.rb:30:inrun’
from stclient.rb:30:in initialize' from stclient.rb:36:innew’
from stclient.rb:36

How do I get ruby to show me the middle 12 levels? The problem is
probably in the middle there, but I don’t know what method.

Raj


#3

Raj S. wrote:

My program is hitting an error and showing me:
c:/ruby/lib/ruby/1.8/drb/drb.rb:743:in +': can't convert nil into String (TypeError) from c:/ruby/lib/ruby/1.8/drb/drb.rb:743:inopen’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:741:in open' from c:/ruby/lib/ruby/1.8/drb/drb.rb:1189:ininitialize’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:in new' from c:/ruby/lib/ruby/1.8/drb/drb.rb:1169:inopen’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1085:in method_missing' from c:/ruby/lib/ruby/1.8/drb/drb.rb:1103:inwith_friend’
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1084:in method_missing' ... 12 levels... from stclient.rb:30:inrun’
from stclient.rb:30:in initialize' from stclient.rb:36:innew’
from stclient.rb:36

How do I get ruby to show me the middle 12 levels? The problem is
probably in the middle there, but I don’t know what method.

Raj

try something like:

try
blah
catch( Exception => e)
puts e.backtrace
end