Edge and 1.8.2/1.8.4 issues

I recently upgraded to 1.8.4 to try out mongrel, and so far have been in
a kind of hell where I can’t get my app working!

Currently running (or trying to run):

Ruby version 1.8.4 (i386-mswin32)
RubyGems version 0.8.11
Rails version 1.0.0
Active Record version 1.13.2
Action Pack version 1.11.2
Action Web Service version 1.0.0
Action Mailer version 1.1.5
Active Support version 1.2.5
Edge Rails revision 4023

Edge no longer works with 1.8.2 on windows for some reason, and 1.8.4
leaves me with errors which look like something to do with file encoding
issues as discussed here:

http://www.nabble.com/Problem-with-ruby-1.8.4-One-Click-Ruby-Installer-on-windows-t1296657.html#a3474082

I’m using edge as my app uses rjs etc extensively, so dropping back to
v1 isn’t an option.

Dropping back to 1.8.2 leaves me with a number of errors which didn’t
used to be there - something wrong with engines etc by the looks of it.
Currently looking into that.

Any ideas on what to try next?
Ideally I want to get 1.8.4 working, but that may not be an option if
it’s a problem with 1.8.4 itself and not my setup.

I guess this is what I get for living on the edge :o)
Really need to go out and buy a Mac one of these days.

Thanks in advance.

If you’ve got an error message relating to your problems that leads
you to believe it might be something to do with engines, send me the
log and I’ll have a look.

  • james

On 3/26/06, Richard L. [email protected] wrote:

Action Web Service version 1.0.0

[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

  • J *
    ~

Having a conversation with myself here… :o)

The fact that some pages work and some don’t means I’ve been trying to
work out what the differences are.

I made a test controller and action and called that - all works
Copied across code from a broken action - all works
Copied across view from the same action - all works

Ok, so by all intents and purposes these 2 are identical, yet one works
and the other doesnt. Consistently.

Deleted all my routes except for the default and now they both work!
Well, I get a load of errors because the named routes no longer exist
and I’m using them in the view. But at least it’s getting there!

Something to do with routes I think then!

Will probe some more and see what I can find.


R.Livsey

It gets stranger…

Narrowed it down to this line in routes.rb:

map.connect ‘:controller/service.wsdl’, :action => ‘wsdl’

One of the default routes.

If I comment it out, all works fine.
Left in and WEBrick crashes!

I have absolutely no idea why, but I don’t use web services at the
moment so it’s staying commented out!

Fingers crossed everything looks fairly stable now.

If anyone has any ideas how I can debug further and find out why that
line crashes WEBrick then I will be happy to spend some more time
looking into it and see what’s actually causing it.


R.Livsey

Hmm, I downgraded back to 1.8.2 and now I can at least get one page of
my app up (which does nothing) but as soon as I go to any other page
WEBrick crashes.

One thing after the other!

This one doesn’t look to have anything to do with engines. More like the
rails itself doing something odd. This is one of the problems I had the
other day too.

Error trace below:

#<NoMethodError: You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.[]>
[“d:/programming/ruby/lib/ruby/1.8/profiler.rb:30”
“d:/programming/ruby/lib/ruby/1.8/profiler.rb:5:in `==='”
“./script/…/config/…/vendor/rails/railties/lib/dispatcher.rb:40:in
`==='”
“./script/…/config/…/vendor/rails/railties/lib/dispatcher.rb:40:in
`dispatch’”
“./script/…/config/…/vendor/rails/railties/lib/webrick_server.rb:115:in
`handle_dispatch’”
“./script/…/config/…/vendor/rails/railties/lib/webrick_server.rb:81:in
`service’”
“d:/programming/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service’”
“d:/programming/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run’”
“d:/programming/ruby/lib/ruby/1.8/webrick/server.rb:155:in
`start_thread’”
“d:/programming/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start’”
“d:/programming/ruby/lib/ruby/1.8/webrick/server.rb:144:in
`start_thread’”
“d:/programming/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start’”
“d:/programming/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each’”
“d:/programming/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start’”
“d:/programming/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start’”
“d:/programming/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start’”
“./script/…/config/…/vendor/rails/railties/lib/webrick_server.rb:67:in
`dispatch’”
“./script/…/config/…/vendor/rails/railties/lib/commands/servers/webrick.rb:59”
“d:/programming/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'”
“d:/programming/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require’”
“./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:149:in
`require’”
“./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:34”
“d:/programming/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'”
“d:/programming/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require’”
“script/server:7”]

% cumulative self self total
time seconds seconds calls ms/call ms/call name
329.21 10.03 10.03 1 10031.00 10031.00
Profiler__.start_profile
46.54 11.45 1.42 885 1.60 2.98 Array#include?
27.17 12.28 0.83 5758 0.14 0.14 Module#==
15.46 12.75 0.47 29 16.24 161.17 IO#select
2.63 12.83 0.08 877 0.09 0.09
Module#included_modules
2.49 12.90 0.08 1 76.00 2859.00
Module#included_in_classes
1.05 12.94 0.03 1 32.00 2969.00
Breakpoint.deactivate_drb
0.53 12.95 0.02 30 0.53 0.53 Kernel.==
0.53 12.97 0.02 10 1.60 10.90 Array#each
0.53 12.98 0.02 1 16.00 16.00 Thread#kill
0.53 13.00 0.02 1 16.00 31.00
ObjectSpace.each_object
0.53 13.02 0.02 96 0.17 0.17
Module#undef_method
0.53 13.03 0.02 27 0.59 0.59 Float#>
0.49 13.05 0.02 99 0.15 0.31 Kernel.send
0.49 13.06 0.01 12 1.25 1.25 Module#===
0.49 13.08 0.01 1 15.00 2890.00
Dispatcher#reset_application!
0.00 13.08 0.00 1 0.00 0.00 Object#initialize
0.00 13.08 0.00 1 0.00 0.00
ActionController::Routing::RouteSet#recognize!
0.00 13.08 0.00 5 0.00 0.00
WEBrick::HTTPServer#run
0.00 13.08 0.00 2 0.00 0.00 Array#*
0.00 13.08 0.00 5 0.00 0.00 Array#+
0.00 13.08 0.00 13 0.00 0.00 Kernel.hash
0.00 13.08 0.00 2 0.00 0.00
Dependencies.loaded
0.00 13.08 0.00 1 0.00 0.00
Exception#initialize
0.00 13.08 0.00 1 0.00 0.00 Thread#initialize
0.00 13.08 0.00 1 0.00 3016.00
DispatchServlet#service
0.00 13.08 0.00 5 0.00 0.00
Errno::ENOTCONN#===
0.00 13.08 0.00 1 0.00 2859.00
Reloadable.reloadable_classes
0.00 13.08 0.00 8 0.00 0.00 Array#collect
0.00 13.08 0.00 2 0.00 0.00 String#downcase
0.00 13.08 0.00 1 0.00 0.00
Dependencies.rails_pre_engines_require_or_load
0.00 13.08 0.00 1 0.00 0.00
Dependencies.mechanism
0.00 13.08 0.00 2 0.00 0.00 Array#[]
0.00 13.08 0.00 12 0.00 0.00 Hash#[]
0.00 13.08 0.00 1 0.00 0.00
WEBrick::HTTPServer#service
0.00 13.08 0.00 2 0.00 0.00 Module#parent
0.00 13.08 0.00 1 0.00 0.00
Dependencies.load?
0.00 13.08 0.00 1 0.00 0.00 Array#flatten
0.00 13.08 0.00 1 0.00 3047.00 #toplevel
0.00 13.08 0.00 2 0.00 0.00 Array#empty?
0.00 13.08 0.00 1 0.00 0.00 Class#new
0.00 13.08 0.00 1 0.00 0.00 Mutex#locked?
0.00 13.08 0.00 1 0.00 0.00 NameError#to_s
0.00 13.08 0.00 1 0.00 0.00 Kernel.raise
0.00 13.08 0.00 30 0.00 0.00 String#==
0.00 13.08 0.00 4 0.00 0.00 String#split
0.00 13.08 0.00 1 0.00 0.00 Fixnum#>
0.00 13.08 0.00 1 0.00 47.00
ActiveRecord::Base#reset_subclasses
0.00 13.08 0.00 1 0.00 0.00 Array#reverse
0.00 13.08 0.00 2 0.00 0.00
WEBrick::HTTPRequest#[]
0.00 13.08 0.00 1 0.00 0.00
CGI::Session::ActiveRecordStore::Session#subclasses
0.00 13.08 0.00 1 0.00 0.00
DRb::DRbTCPSocket#close
0.00 13.08 0.00 1 0.00 0.00
Errno::ECONNRESET#===
0.00 13.08 0.00 1 0.00 0.00
#ActionController::Routing::RouteSet:0x33b66a0.recognize_path
0.00 13.08 0.00 1 0.00 0.00
Module#rake_original_const_missing
0.00 13.08 0.00 18 0.00 0.00 Array#<<
0.00 13.08 0.00 3 0.00 0.00
Exception#backtrace
0.00 13.08 0.00 1 0.00 0.00
DRb::DRbServer#main_loop
0.00 13.08 0.00 1 0.00 0.00
WEBrick::HTTPStatus::NotFound#exception
0.00 13.08 0.00 6 0.00 0.00 Thread#current
0.00 13.08 0.00 1 0.00 0.00
Dependencies.rails_1_1_require_or_load
0.00 13.08 0.00 2 0.00 0.00 Array#last
0.00 13.08 0.00 1 0.00 0.00 Class#superclass
0.00 13.08 0.00 3 0.00 0.00 Hash#[]=
0.00 13.08 0.00 1 0.00 0.00
WEBrick::GenericServer#start
0.00 13.08 0.00 1 0.00 0.00 ThreadGroup#add
0.00 13.08 0.00 1 0.00 0.00
DRb::DRbServer#kill_sub_thread
0.00 13.08 0.00 5 0.00 0.00 Hash#default
0.00 13.08 0.00 1 0.00 0.00
Dependencies.require_or_load
0.00 13.08 0.00 1 0.00 0.00
Enumerable.member?
0.00 13.08 0.00 1 0.00 0.00
WEBrick::HTTPRequest#fixup
0.00 13.08 0.00 1 0.00 0.00
ActionController::Routing::ControllerComponent#traverse_to_controller
0.00 13.08 0.00 1 0.00 0.00
WEBrick::SimpleServer#start
0.00 13.08 0.00 1 0.00 0.00
Kernel.remove_instance_variable
0.00 13.08 0.00 2 0.00 0.00
Kernel.respond_to?
0.00 13.08 0.00 1 0.00 0.00
Module#const_missing
0.00 13.08 0.00 25 0.00 0.00 String#inspect
0.00 13.08 0.00 2 0.00 0.00 Module#const_get
0.00 13.08 0.00 2 0.00 0.00 Kernel.require
0.00 13.08 0.00 1 0.00 0.00 Thread#new
0.00 13.08 0.00 4 0.00 0.00 IO#write
0.00 13.08 0.00 1 0.00 0.00
DispatchServlet#handle_dispatch
0.00 13.08 0.00 1 0.00 0.00 Exception#inspect
0.00 13.08 0.00 1 0.00 0.00
Dependencies.clear
0.00 13.08 0.00 1 0.00 0.00
WEBrick::HTTPRequest#body
0.00 13.08 0.00 1 0.00 0.00
Exception#set_backtrace
0.00 13.08 0.00 1 0.00 0.00 Array#inspect
0.00 13.08 0.00 1 0.00 0.00 Array#size
0.00 13.08 0.00 2 0.00 0.00 Module#name
0.00 13.08 0.00 1 0.00 0.00
Module#instance_methods
0.00 13.08 0.00 1 0.00 2969.00
Dispatcher#reset_after_dispatch
0.00 13.08 0.00 1 0.00 0.00
ActiveRecord::Base#subclasses
0.00 13.08 0.00 1 0.00 0.00 Kernel.p
0.00 13.08 0.00 27 0.00 0.00 Float#-
0.00 13.08 0.00 1 0.00 0.00
Class#const_missing
0.00 13.08 0.00 1 0.00 0.00 Array#shift
0.00 13.08 0.00 1 0.00 0.00
WEBrick::HTTPRequest#read_body
0.00 13.08 0.00 1 0.00 0.00 Mutex#unlock
0.00 13.08 0.00 38 0.00 0.00 Module#to_s
0.00 13.08 0.00 1 0.00 0.00 User#subclasses
0.00 13.08 0.00 2 0.00 0.00
Module#remove_const
0.00 13.08 0.00 96 0.00 0.00
Module#method_undefined
0.00 13.08 0.00 1 0.00 0.00 Hash#clear
0.00 13.08 0.00 1 0.00 0.00 Object#require
0.00 13.08 0.00 1 0.00 0.00 Array#select
0.00 13.08 0.00 2 0.00 0.00
CGI::Session::ActiveRecordStore::Session#reloadable?
0.00 13.08 0.00 1 0.00 2969.00
Dispatcher#dispatch
0.00 13.08 0.00 2 0.00 0.00 Thread#critical=
0.00 13.08 0.00 4 0.00 3.75 Enumerable.inject
0.00 13.08 0.00 1 0.00 0.00
Kernel.instance_variables
0.00 13.08 0.00 1 0.00 0.00 IO#close
0.00 13.08 0.00 1 0.00 0.00 Kernel.nil?
0.00 13.08 0.00 1 0.00 2937.00
DRb::DRbServer#stop_service
0.00 13.08 0.00 1 0.00 0.00
DispatchServlet#dispatch
0.00 13.08 0.00 3 0.00 0.00 String#empty?
0.00 13.08 0.00 1 0.00 0.00
Dependencies.depend_on
0.00 13.08 0.00 1 0.00 0.00
DRb::DRbTCPSocket#accept
0.00 13.08 0.00 1 0.00 0.00 Set#clear
0.00 13.08 0.00 1 0.00 0.00 ThreadGroup#list
0.00 13.08 0.00 1 0.00 0.00
ActionController::Base#allow_concurrency
0.00 13.08 0.00 1 0.00 0.00
Class#remove_class
0.00 13.08 0.00 2 0.00 0.00
Module#const_defined?
0.00 13.08 0.00 1 0.00 10031.00 Object#load
d:/programming/ruby/lib/ruby/1.8/profiler.rb:27: You have a nil object
when you
didn’t expect it! (NoMethodError)
You might have expected an instance of Array.
The error occured while evaluating nil.[] from
d:/programming/ruby/lib/rub
y/1.8/profiler.rb:5:in require' from script/server:7:in require’
from script/server:7


R.Livsey