I’m using IronRuby 1.0 to run rake jobs:work (i.e. delayed_jobs). The
job worker is supposed to send out email (via ActionMailer, of course).
When this runs, I get the following error:
[Worker(host:InfowitDev2 pid:16496)] EmailHelper::CalEventRemind failed
with NameError: uninitialized constant Net::InternetMessageIO::TCPsocket
- 0 failed attempts
I’ve run this with both rails 2.3.5 and 2.3.8, both with the same
effect. Other uninitialized constant issues have been resolved by
changing versions of gems I’m using…however I don’t see where/how to
do that here (other than changing rails version, hence the above).
Any suggestions here?
Win XP-pro SP3
IronRuby 1.0 (installed by ironruby-1.0v4.msi)
igem install rails --version=2.3.8 --no-ri --no-rdoc (used 2.3.5 as
igem install rake --no-ri --no-rdoc
igem install delayed_job --version=2.0.5 --no-ri --no-rdoc
igem install activerecord-sqlserver-adapter --version=2.3.8 --no-ri
–no-rdoc (used 2.3.5 as well)
I’ve uninstalled everything and reinstalled and had the same problem.
Also, I tried installing the actionmailer-ironruby gem, hoping this
would avoid this issue, but it had no effect. This surprised
me…shouldn’t actionmailer-ironruby take over prior to actionmailer
getting to the smtp layer? I assume I’m not supposed to uninstall
actionmailer for actionmailer-ironruby to work…rails has a dependency
The stack trace for the above error is:
const_missing'' C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/net/protocol.rb:206:inold_open’’
timeout'' C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/timeout.rb:105:intimeout’’
old_open'' C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/net/smtp.rb:392:indo_start’’
start'' C:/Program Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:682:inperform_d
__send__' ' C:/Program Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:523:indeliver!’
method_mi ssing'' D:/Perforce/Eric/Main2/Common/Rails/iwBatch/app/helpers/email_helper.rb:35:inperform’’
invoke_jo b'' C:/Program Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/delayed_job-2.0.5/lib/delayed/worker.rb:122:inrun’’
timeout'' C:/Program Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/delayed_job-2.0.5/lib/delayed/worker.rb:122:inrun’’