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

NoMethodError (undefined method `strip_namespaces?' for Nori:Class): #351

Closed
forky opened this issue Dec 27, 2012 · 4 comments
Closed

NoMethodError (undefined method `strip_namespaces?' for Nori:Class): #351

forky opened this issue Dec 27, 2012 · 4 comments

Comments

@forky
Copy link

forky commented Dec 27, 2012

hi
i have a problem whit call POST to webservice generated with washout.

stacktrace:

Started POST "/service/action" for 127.0.0.1 at 2012-12-27 22:19:59 +0100
Processing by ServiceController#send_request as */*
  Parameters: {"Envelope"=>{"xmlns:xsd"=>"http://www.w3.org/2001/XMLSchema", "xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance", "xmlns:
tns"=>"urn:WashOut", "xmlns:env"=>"http://schemas.xmlsoap.org/soap/envelope/", "Body"=>{"send_request"=>{"ragioneSociale"=>"wed", "emailMercha
nt"=>"wedew", "altezza"=>"10.0", "larghezza"=>"10.0", "peso"=>"15.0", "lunghezza"=>"10.0", "numeroPacchi"=>"1", "tipoImballo"=>"fragile",
 "volume"=>"10.0", "addressShipping"=>"wedwed", "capShipping"=>wedwe", "localitaShipping"=>"wedwe", "provinciaShipping"=>"wedwed", "
addressStore"=>"wedwed", "capStore"=>"wedwed", "localitaStore"=>"wedewe", "provinciaStore"=>"rawedwedwed", "cognomeUser"=>"eefdwe", "nomeUser
"=>"sdcdscsdc", "emailUser"=>"wdcdcssd"}}}}
WARNING: Can't verify CSRF token authenticity
Completed 500 Internal Server Error in 0ms

NoMethodError (undefined method `strip_namespaces?' for Nori:Class):
  wash_out (0.5.4) lib/wash_out/dispatcher.rb:16:in `_parse_soap_parameters'
  activesupport (3.2.9) lib/active_support/callbacks.rb:418:in `_run__491327746__process_action__514340335__callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
  actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
  actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
  activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
  activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
  actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
  actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
  activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  actionpack (3.2.9) lib/abstract_controller/base.rb:121:in `process'
  actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in `process'
  actionpack (3.2.9) lib/action_controller/metal.rb:203:in `dispatch'
  actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
  actionpack (3.2.9) lib/action_controller/metal.rb:246:in `block in action'
  wash_out (0.5.4) lib/wash_out/router.rb:29:in `call'
  wash_out (0.5.4) lib/wash_out/router.rb:29:in `call'
  journey (1.0.4) lib/journey/router.rb:68:in `block in call'
  journey (1.0.4) lib/journey/router.rb:56:in `each'
  journey (1.0.4) lib/journey/router.rb:56:in `call'
  actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  rack (1.4.1) lib/rack/etag.rb:23:in `call'
  rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
  rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
  rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
  activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
  activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__3200860__call__1034346901__callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
  activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
  railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.1) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.1) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
  railties (3.2.9) lib/rails/engine.rb:479:in `call'
  railties (3.2.9) lib/rails/application.rb:223:in `call'
  rack (1.4.1) lib/rack/content_length.rb:14:in `call'
  railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
  rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
  c:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
  c:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
  c:/Ruby193/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

  Rendered c:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (12.0ms)
  Rendered c:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.
0ms)
  Rendered c:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescue
s/layout (37.0ms)

GEMLIST:

*** LOCAL GEMS ***

actionmailer (3.2.9, 3.2.8, 3.1.0)
actionpack (3.2.9, 3.2.8, 3.1.0, 1.13.6)
actionwebservice (1.2.6)
activemodel (3.2.9, 3.2.8, 3.1.0)
activerecord (3.2.9, 3.2.8, 3.1.0, 1.15.6)
activeresource (3.2.9, 3.2.8, 3.1.0)
activesupport (3.2.9, 3.2.8, 3.1.0, 1.4.4)
akami (1.2.0)
arel (3.0.2, 2.2.3)
authlogic (3.1.3)
bcrypt-ruby (3.0.1 x86-mingw32)
bigdecimal (1.1.0)
builder (3.0.4)
bundler (1.2.1)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.4.0)
composite_primary_keys (5.0.10)
datanoise-actionwebservice (2.3.5)
devise (2.1.2, 1.1.rc1)
erubis (2.7.0)
execjs (1.4.0)
gyoku (1.0.0, 0.4.6)
hike (1.2.1)
httparty (0.9.0)
httpclient (2.3.0.1)
httpi (2.0.0, 1.1.1)
i18n (0.6.1)
io-console (0.3)
journey (1.0.4)
jquery-rails (2.1.4, 2.1.3)
json (1.7.5, 1.5.4)
mail (2.4.4, 2.3.3)
meta_search (1.1.3)
mime-types (1.19)
minitest (2.5.1)
multi_json (1.5.0, 1.3.7, 1.3.6)
multi_xml (0.5.1)
nokogiri (1.5.5 x86-mingw32)
nori (2.0.0)
orm_adapter (0.4.0)
polyamorous (0.5.0)
polyglot (0.3.3)
prototype-rails (3.2.1)
rack (1.4.1, 1.3.6)
rack-cache (1.2, 1.0.3)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.9, 3.2.8, 3.1.0)
rails3-jquery-autocomplete (1.0.10)
railties (3.2.9, 3.2.8, 3.1.0)
rake (10.0.3, 10.0.2, 0.9.2.2)
rbx-require-relative (0.0.9)
rdoc (3.12, 3.9.4)
rubysspi (1.3.1)
sass (3.2.4, 3.2.3, 3.2.2, 3.2.1)
sass-rails (3.2.5)
savon (1.2.0)
soap4r (1.5.8)
sprockets (2.2.2, 2.2.1, 2.1.3, 2.0.4)
sqlite3 (1.3.6 x86-mingw32)
sqlite3-ruby (1.3.3)
thor (0.16.0, 0.14.6)
tilt (1.3.3)
treetop (1.4.12)
tzinfo (0.3.35, 0.3.34)
uglifier (1.3.0)
validates_existence (0.8.0)
warden (1.2.1, 0.10.7)
wasabi (3.0.0, 2.5.1)
wash_out (0.5.4)
will_paginate (3.0.3, 3.0.pre2)
@rubiii
Copy link
Contributor

rubiii commented Dec 27, 2012

the problem here seems to be that washout doesn't specify which nori version it needs (it depends on nori >= 0 as you can see on its rubygems page). the recent release of nori 2.0 changes the public api and unfortunately breaks washout. please add nori to your gemfile and pin the version to 1.x for now:

gem "nori", "~> 1.0"

i'll open an issue with washout so we can get this fixed.

@rubiii
Copy link
Contributor

rubiii commented Dec 27, 2012

fyi: gem list doesn't help with finding out which gem versions you're using. it just lists all gems installed on your system. for an exact list of gem versions loaded by your app, please consider posting your Gemfile.lock next time.

@forky
Copy link
Author

forky commented Dec 27, 2012

problem solved! tnx

@rubiii
Copy link
Contributor

rubiii commented Dec 27, 2012

you're welcome.

@rubiii rubiii closed this as completed Dec 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants