tirsen / activemessaging

ActiveMessaging is an attempt to bring the simplicity and elegance of Rails development to the world of messaging. Messaging, (or event-driven architecture) is widely used for enterprise integration, with frameworks such as Java's JMS, and products such as ActiveMQ, Tibco, IBM MQSeries etc
0 stars 0 forks source link

activemessaging gem 0.6.1 fails upn message pick up (rails 2.3.2) #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Seems like a similar issue to described for other rails version. A
'vanilla' poller starts up ok 'script/poller run' but as soon as there is a
message to pick up and action it fails miserably as below:

Starting thread default to finish processing last message...
Dispatch exception: undefined method `prepare_application_for_dispatch' for
ActionController::Dispatcher:Class
/usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb
:192:in
`prepare_application'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:205:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:203:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:203:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:95:in `stop'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:92:in `start'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:92:in `stop'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:82:in `each'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:82:in `stop'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:69:in `start'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging.rb:114:in `start'
    /home/martin/apps/vid2/lib/poller.rb:24
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `start_load'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:253:in `start'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/controller.rb:72:in
`run'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:139:in `run'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in
`call'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in
`catch_exceptions'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:138:in `run'
    script/poller:26
Starting thread default to finish processing last message...
Dispatch exception: undefined method `prepare_application_for_dispatch' for
ActionController::Dispatcher:Class
/usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb
:192:in
`prepare_application'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:205:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:203:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:203:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:95:in `stop'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:92:in `start'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:92:in `stop'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:82:in `each'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:82:in `stop'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:69:in `start'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging.rb:114:in `start'
    /home/martin/apps/vid2/lib/poller.rb:24
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `start_load'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:253:in `start'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/controller.rb:72:in
`run'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:139:in `run'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in
`call'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in
`catch_exceptions'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:138:in `run'
    script/poller:26
Starting thread default to finish processing last message...
Dispatch exception: undefined method `prepare_application_for_dispatch' for
ActionController::Dispatcher:Class
/usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb
:192:in
`prepare_application'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:205:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:203:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:203:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:95:in `stop'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:92:in `start'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:92:in `stop'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:82:in `each'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:82:in `stop'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb:69:in `start'
    /usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging.rb:114:in `start'
    /home/martin/apps/vid2/lib/poller.rb:24
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `start_load'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:253:in `start'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/controller.rb:72:in
`run'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:139:in `run'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in
`call'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in
`catch_exceptions'
    /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:138:in `run'
    script/poller:26
/usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb
:105:in
`sleep': Interrupt
    from
/usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb
:105:in
`stop'
    from
/usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging/gateway.rb
:69:in
`start'
    from
/usr/lib/ruby/gems/1.8/gems/activemessaging-0.6.1/lib/activemessaging.rb:114:in
`start'
    from /home/martin/apps/vid2/lib/poller.rb:24
    from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.
rb:145:in
`load_without_new_constant_marking'
    from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.
rb:145:in
`load'
    from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.
rb:521:in
`new_constants_in'
    from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.
rb:145:in
`load'
    from
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:176:in 
`start_load'
    from
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:253:in 
`start'
    from
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/controller.rb:72:in
`run'
    from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:139:in `run'
    from
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `call'
    from
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in
`catch_exceptions'
    from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:138:in `run'
    from script/poller:26

Original issue reported on code.google.com by martin.s...@gmail.com on 13 Jul 2009 at 12:31

GoogleCodeExporter commented 9 years ago
The same thing. And it's 07 Jan 2010 now. Seems like nobody cares anymore

Original comment by chiko...@gmail.com on 7 Feb 2010 at 8:43

GoogleCodeExporter commented 9 years ago
This issue got fixed in the src, but a new gem version was not yet released.
This defect is related to a change in Rails, so the trick is fixing it and being
backwards compatible.  

Original comment by kooks...@gmail.com on 7 Feb 2010 at 8:57

GoogleCodeExporter commented 9 years ago
really suggest not using the gem version until it is updated.
I am working on a new version now, will release soon.

Original comment by kooks...@gmail.com on 29 Mar 2010 at 10:13

GoogleCodeExporter commented 9 years ago
hi, i am a new user of activemessaging, have installed the gem 0.6.1 and rails 
2.3.5.
 Will you post on this ticket when you have released a new gem that fixes this issue?

Original comment by comp_...@slingshot.co.nz on 30 Mar 2010 at 3:32