G'Day!
I hope you can help us out here... we've been using ruote for a while
now and recently switched to the redis backend (thanks for both libs
BTW, well done!). Shortly after we made the switch, we started getting
exceptions:
undefined method `+' for nil:NilClass
ruote (2.2.0) lib/ruote/id/wfid_generator.rb:50:in `get_raw'
ruote (2.2.0) lib/ruote/id/wfid_generator.rb:70:in `get_raw'
ruote (2.2.0) lib/ruote/id/mnemo_wfid_generator.rb:35:in `generate'
ruote (2.2.0) lib/ruote/receiver/base.rb:68:in `launch'
lexical error: invalid char in json text.
OK
(right here) ------^
rufus-json (0.2.5) lib/rufus/json.rb:148:in `rescue in decode'
rufus-json (0.2.5) lib/rufus/json.rb:145:in `decode'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:355:in `from_json'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:350:in `do_get'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:124:in `block in put'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:331:in `call'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:331:in `lock'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:122:in `put'
ruote (2.2.0) lib/ruote/id/wfid_generator.rb:57:in `get_raw'
input must be a string or IO
rufus-json (0.2.5) lib/rufus/json.rb:148:in `rescue in decode'
rufus-json (0.2.5) lib/rufus/json.rb:148:in `rescue in decode'
rufus-json (0.2.5) lib/rufus/json.rb:145:in `decode'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:355:in `from_json'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:350:in `do_get'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:124:in `block in put'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:331:in `call'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:331:in `lock'
ruote-redis (2.2.0) lib/ruote/redis/storage.rb:122:in `put'
ruote (2.2.0) lib/ruote/id/wfid_generator.rb:57:in `get_raw'
The weird thing is, that this only seems to happen, if we call the
launch method (and therefore the ID generator) often within a short
interval - for example, in this case, we're trying to launch ~15 items
at the same time...
Hope you can help us or give us some hints at least...
Thanks,
Tom
--
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