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 <[email protected]> wrote:
> On Fri, May 15, 2009 at 9:40 PM, pranav <[email protected]> wrote:
>
> > I tried the singlecon.rb athttp://gist.github.com/112174
> > I tried to use it as is.. It had some errors such as
>
> > uninitialized class variable @@connection in
> > OpenWFE::Extras::SingleConnectionMixin
>
> > With my limited Ruby knowledge I tried a few things to do away with
> > this error..
> > Once I was through
>
> Too bad you're not explaining me how you "went through" :( That would
> have helped.
>
> > I again received the same error of
>
> > ActiveRecord::ConnectionNotEstablished in ProcessesController#show
>
> > Also on the console
> > It dumps this infinite times--------
>
> > [1, #<ActiveRecord::ConnectionAdapters::JdbcAdapter:0x1304a7c
> > @connection=#<ActiveRecord::ConnectionAdapters::JdbcConnection:
> > 0x1e1b0e7 @adapter=#<ActiveRecord::ConnectionAdapters::JdbcAdapter:
> > 0x1304a7c ...>, @connection=#<Java::ComMysqlJdbc::Connection:0x2516dc
> > @java_object=#<Java::JavaObject:0x1000323>>
>
> I have updated the gist :
>
> http://gist.github.com/112174
>
> Could you please try with that new version ?
>
> When you hit the launch button, could you please tell how it behaves ?
> I'm interested in output that look like :
>
> [1, Ruote::ProcessError, ...
>
> Best regards,
>
> --
> John Mettraux - http://jmettraux.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---