Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gorillib serialization fails when not explicitly requiring gorillib/serialization and gorrillib/serialization/to_wire #7

Open
joshbronson opened this issue Nov 8, 2012 · 0 comments

Comments

@joshbronson
Copy link
Contributor

I'm not going to dive in too deep, but I am getting nasty stack traces from deep within multi json when calling to_wire on models without having required 'gorillib/serialization/to_wire'. Flip seems to understand what is going on.

Here's the stacktrace. Ignore anything in /usr/local/flume/infomart/{app,src}, because the code was all fixed before being committed.

NoMethodError: undefined method `delete' for #JSON::Ext::Generator::State:0x22426f2d
current_adapter at /usr/local/flume/infomart/bundle/jruby/1.9/gems/multi_json-1.3.7/lib/multi_json.rb:105
dump at /usr/local/flume/infomart/bundle/jruby/1.9/gems/multi_json-1.3.7/lib/multi_json.rb:114
to_json at /usr/local/flume/infomart/bundle/jruby/1.9/gems/gorillib-0.4.2/lib/gorillib/model/serialization.rb:18
to_json at json/ext/GeneratorMethods.java:71
dump at /usr/local/flume/infomart/bundle/jruby/1.9/gems/multi_json-1.3.7/lib/multi_json/adapters/json_common.rb:11
dump at /usr/local/flume/infomart/bundle/jruby/1.9/gems/multi_json-1.3.7/lib/multi_json.rb:115
to_json at /usr/local/flume/infomart/bundle/jruby/1.9/gems/gorillib-0.4.2/lib/gorillib/model/serialization.rb:18
emit at /usr/local/flume/infomart/src/main/ruby/base_processor.rb:43
process at /usr/local/flume/infomart/app/processors/entry_funnel.rb:119
_append at /wukong-flume/framework.rb:86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant