Hi John,
I tried the new version of singlecon.rb.. The behavior is really
interesting..
When I try to launch the process for the first time it throws the
following error ( I think it is related to mongrel)
----------------------------------------------------------------------------------------------------------------------------------
Sat May 16 21:01:46 +0530 2009: Read error: #<NameError: uninitialized
constant ActionController::Dispatcher::FLAG>
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:105:in `const_missing'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/lock.rb:13:in `call'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
rack/static.rb:31:in `call'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/urlmap.rb:48:in `call'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/urlmap.rb:40:in `each'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/urlmap.rb:40:in `call'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
rack/log_tailer.rb:17:in `call'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/content_length.rb:13:in `call'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/chunked.rb:15:in `call'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/handler/mongrel.rb:61:in
`process'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/
mongrel.rb:159:in `process_client'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/
mongrel.rb:158:in `each'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/
mongrel.rb:158:in `process_client'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/
mongrel.rb:285:in `run'
:1:in `initialize'
Sat May 16 21:01:46 +0530 2009: Client error: #<NoMethodError:
undefined method `close' for #<NameError:0x876d42>>
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/
mongrel.rb:196:in `run'
:1:in `initialize'
Exception in thread "Thread-28"
java.lang.ArrayIndexOutOfBoundsException: -1
at org.jruby.runtime.ThreadContext.popRubyClass
(ThreadContext.java:517)
at org.jruby.runtime.ThreadContext.postYield
(ThreadContext.java:1304)
at
org.jruby.runtime.InterpretedBlock.post
(InterpretedBlock.java:113)
at org.jruby.runtime.InterpretedBlock.yield
(InterpretedBlock.java:184)
at org.jruby.runtime.BlockBody.call(BlockBody.java:65)
at org.jruby.runtime.BlockBody.call(BlockBody.java:71)
at org.jruby.runtime.Block.call(Block.java:80)
at org.jruby.RubyProc.call(RubyProc.java:204)
at org.jruby.RubyProc.call(RubyProc.java:187)
at org.jruby.internal.runtime.RubyRunnable.run
(RubyRunnable.java:90)
at java.lang.Thread.run(Thread.java:619)
----------------------------------------------------------------------------------------------------------------------------------
but the second time (with and w/o restarting mongrel) it throws the
following error -
----------------------------------------------------------------------------------------------------------------------------------
SystemStackError in ProcessesController#show ---- stack level too
deep
dump -
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1991:in `all_attributes_exists?'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1991:in `each'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1991:in `all?'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1991:in `all_attributes_exists?'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1847:in `method_missing'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
extras/expool/db_errorjournal.rb:106:in `get_error_log'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
engine/status_methods.rb:324:in `process_statuses'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
engine/status_methods.rb:320:in `each'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
engine/status_methods.rb:320:in `process_statuses'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
engine/status_methods.rb:369:in `process_status'
----------------------------------------------------------------------------------------------------------------------------------
Unfortunately I am not getting any output/dump related to
[1, Ruote::ProcessError, ...
Above mentioned is all that I get..
Please suggest..
Thanks,
Pranav
On May 15, 6:10 pm, John Mettraux <
jmettr...@openwfe.org> wrote:
> On Fri, May 15, 2009 at 9:40 PM, pranav <
rprana...@gmail.com> wrote:
>
> > I tried the singlecon.rb athttp://
gist.github.com/112174